AI Image Tool Gets a Behind-the-Scenes Fix to Prevent Glitches
This update stops weird image errors that could ruin your AI-generated pictures.
The mtmd update enforces no_realloc in mtmd init, lifts TAG_MTMD_NO_REALLOC, and shows a warning if the default is less than the max supported by the model. It also adds a better default value for UX and fixes CI.
For zero padding and img_break rows, it builds them without uninitialized tensors: a ggml_new_tensor scaled by 0 is not zero because the buffer is never written, so a NaN left by a previous graph can come out as NaN; the change uses ggml_pad_ext for the paddings and ggml_repeat_4d for img_break. Tests pin the tiny_voca F0 in test-mtmd-model, since the pulse train turns a small F0 difference between backends into a phase drift—CUDA vs CPU gave NMSE 5.7e-2—and only the F0 bias is set so F0 clamps the same everywhere while voicing and energy stay random. Nits: VOXTRAL removed from audio_has_avgpool(), nemotron_omni now calls set_default_max_patches(), and drama3 tower attention is fixed, along with CI fixes.
- The update fixes a bug that could cause random noise or distortions in AI-generated images.
- It enforces a rule to prevent memory errors during image processing, making results more consistent.
- Developers will benefit from better testing tools, leading to more reliable apps for everyone.
Why It Matters
Fewer glitches in AI image apps mean you spend less time fixing and more time creating.