A vision model as a frame checker: what it caught and what it let through
Image models write fake words on signs, add watermarks and give people too many fingers. A bad frame found after the render costs a re-render; found before, it costs one redraw. So every picture Studio draws is shown to a vision model first. How the check works Each frame is scaled down to a JPEG of at most 1,024 pixels on its long side and sent with one instruction: answer only with JSON, ok…
Image models sometimes add unwanted elements to pictures, like text, watermarks, or altered body parts. To catch these issues, Studio runs a vision model check on every picture before it's published. The check works by scaling down the image to a maximum of 1,024 pixels on its longest side and sending it to the model with the instruction to return only JSON data: either "ok true" if the image is clean, or "false" followed by a list of problems.
Problems include written text, numbers, watermarks, logos, or distorted figures. A frame that is a solid color or the black square produced by safety filters is rejected right away, without the model's input. The test involved four pictures created by Studio's image model: a coffee cup on a wooden table, an apple on a white background, a person on the phone near a bookshelf, and the coffee picture with a "SALE 50% OFF" tag.
The clean pictures passed the check, but the slogan-laden image was rejected due to the presence of "written text." Each check took between 3 to 14 seconds, depending on the workload of the model at the time. While a vision model acts as an additional pair of eyes, it is not a guarantee. It may overlook minor imperfections, and strict instructions can sometimes reject images that should have been accepted, resulting in unnecessary redraws.
The four pictures used for testing represent a basic check of the system's wiring, rather than a statistical analysis. It's crucial to manually review the first few videos generated by the system and adjust the redraw limit accordingly based on the observed results. Studio can run this check with any model exposed via an image input interface; disabling the vision setting altogether will turn off the check.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to