What this is about
When an AI picture job finishes, the program usually says "success". That word means the program ran to the end. It does not mean the picture is right. This article lists the checks we run, from the simplest to the most careful, and the real mistakes that taught us each one.
Why it matters
A wrong picture that nobody checked is worse than no picture. It can end up on a website, in a shop or in a post. And the wrong ones are often the quiet kind: a soft picture, one with a dropped detail, one that is just a little off.
The checks, simplest first
1. Is the file there, and is it new?
In one run, a typo in one box of our recipe made ComfyUI drop that whole part of the recipe and run only the rest. Our script saw success, copied the plain renders and printed DONE. A training job that never happened had reported 18 seconds. In another case, a rejected 3D job let the previous run's file be picked up as the new one.
Check: after every job, the script confirms every expected output file exists and is newer than the start of the job. It fails if not. An "is there an output file" check is weaker than "did this run make it".
2. Does the log complain?
We read the server log for the words Failed to validate prompt after any new recipe. A node pack that failed to register also hid a box. The check: ask the server what boxes it has, and fail if ours is missing.
3. Is it just noise?
A speed-up add-on at the wrong strength gave us pictures that were pure static. They came out fastest and the job reported success. A cheap number caught it: the variance of the pixels in static was about five times higher than in any real render. Run it on every unattended batch.
4. Does a tile really tile?
For textures we run a script with three gates: the seam score (we fail above 1.6), the light check (a standard deviation of luminance of at most 0.14 after a heavy blur), and the surface-angle check (average normal z of at least 0.6). We tested it on 24 free textures. 23 passed, and the one that failed had a real seam. A FAIL is a real defect. A PASS is necessary, not sufficient. See Textures that repeat without seams.
5. Is it sharp at the size it will be used?
Two of our cover pictures came back soft across the frame. Judge at the size the viewer sees. In one 3D batch, five of fifteen redone renders passed our review and were then rejected by the owner: warped crate walls, a torn stack, a blur patch, a chrome keg. We had judged them at the wrong size. See How the cover pictures on this blog are made.
6. Is the number right and the picture still wrong?
In a replay of a game scene, a cheaper render turned out to be missing rooms. The sky showed through a hospital window where the walls should be. On our sky measure, the frame scored 90.7 percent sky. After the fix it scored 0. The right render cost more: 8.42 seconds and about 980 MB went up to 12.48 seconds and about 1.2 GB. A person also looked at the frame, because a number can pass while the picture is wrong. See What the hospital sky cost.
7. Does the check itself work?
A check that cannot fail is no check. For a flicker measure in video we tried known cases: exposure flicker scored 13.5 and smooth motion scored 0.06, so it separates them. A second measure scored 1.57 for smooth and 1.73 for noise, so we dropped it. Every check of ours gets a positive control that must pass and a negative control that must fail.
8. Checking a whole library
For thousands of images, a person cannot look at every one, so we use the pictures' own numbers. On store previews, four signals separated bad from good: the share of flat pixels, of inner edges, the color saturation and the Laplacian share (a measure of fine detail). A model on three of them (saturation, edge and flat share) found bad ones on a held-out half with 0.956 precision and 0.877 recall. Our computer-vision library, mojo-cv, supplies checks of this kind, and each of its operations is checked row by row against OpenCV or numpy on the same input.
The short list to copy
- Count the files. Compare with your list.
- Search the log for errors a "success" hides.
- Measure something simple about the pixels.
- Check the property you need, such as the seam.
- Test your check on a known good and a known bad.
- Look at it, at the size it will be used.
Words you may meet
- Guard: a cheap check that stops a bad result.
- Control: a case where you know the answer, to test your check.
- Variance: how spread out the pixel values are.
- Precision and recall: of those flagged bad, how many really were; of the truly bad, how many you flagged.
- Seam: a visible line where a tile's edges meet.
Try it
- Next time you make a batch of pictures, write down how many you asked for and how many you received.
- Open each picture at the size you will use it. Not at full screen.
- See what a library does with checks like these at aiazic.com: its shop items went through mojo-cv, which rejected 27 before 80 items were kept.
- Browse the code at github.com/amarbaro/mojo-cv.
What we do not claim
These checks catch what we thought of. The classifier numbers come from one held-out half of one library, and we have not checked whether a bad preview comes from a render fault or from the model itself.

Comentarios
Aún no hay comentarios.
Iniciar sesión para comentar.