What this is about
ComfyUI is a free program for making pictures with AI models. Instead of a single "make picture" button, it shows you boxes on a canvas, joined by wires. Each box does one small job. Together they form a recipe for a picture.
This article walks through the boxes in a basic recipe, shows how we keep recipes that run the same way every time, and lists the traps we hit where ComfyUI said "success" and the result was wrong.
Why it matters
A recipe you can see is a recipe you can fix. If a picture comes out too soft, you can look at the boxes and ask which one to change. And a recipe saved as a file can be run again next week by you, a friend, or a script. That matters to us because we make many pictures, such as blog covers, textures and 3D props, and we want each batch to behave like the last.
How it works: the boxes
Here is the plain recipe for a text-to-picture job. Read it left to right.
- Load the model. One box opens the model file from disk. Models are big. The main part of our picture model, Z-Image Turbo, is a 12.3 GB file at full precision, and 6.3 GB when we shrink it to int8.
- Read the prompt. A text box takes your words, and a second box (the text encoder) turns them into numbers the model can use. A second text box holds the negative prompt: what you do not want.
- Make an empty starting picture. This box sets the size, such as 768 by 768 pixels, and fills it with noise. The seed lives here or in the next box.
- Draw. The sampler box is the heart of the recipe. It cleans the noise in steps, guided by your prompt. How this works is in How AI makes a picture from words.
- Unpack. The VAE box turns the packed working picture into real pixels.
- Save. The last box writes the file.
That is six jobs. The wires carry results from one box to the next. A box only runs when something downstream needs its answer.
Keeping recipes that run the same every time
A recipe is only useful if it is repeatable. These are the habits that gave us that.
Save the graph as a file, and run that file. In our pipeline a picture job is a saved graph plus a small list of settings. We do not click around the canvas for production work.
Fix the seed when you want the same picture, change it when you want a different one. The seed picks the starting noise. If you want to compare two recipes, give both the same seed.
Know that ComfyUI remembers. ComfyUI keeps the output of each box and reuses it when nothing before it has changed. That is useful, and it can fool you. In one test a 2-second repeat run looked like a speed record. It was not speed: ComfyUI returned cached pictures because the runs used the same seed. Our guard is a different seed for every repetition, or a fresh server for every test arm.
Change one thing at a time. When we tuned the launch settings for speed, our first attempt stacked many flags in one run, and that hid that one of them was a loss. Each test arm now changes one thing on top of the current best. The story is in A Z-Image picture in 1.7 seconds.
Update with a safety net. Before moving ComfyUI from one version to another we set a git tag as a rollback point. We also copied the Python environment with a cheap copy command, so the update took seconds instead of a long download.
The traps: success that is wrong
ComfyUI reports "success" for jobs that did not do what you meant. From our post Eight ways a ComfyUI job succeeds and is wrong, three that a beginner can hit:
- A strength set too high. A speed-up add-on, a LoRA, wanted strength 0.125. At 1.0 the job finished fastest and every picture was static. The job exited cleanly and wrote a file.
- A typo that deletes part of the recipe. We typed
"lora"where one box wanted"LoRA". When one box has a bad setting, ComfyUI drops that whole branch of the graph and runs what is left. Our script saw "success", copied plain pictures and printed DONE. The training had never happened. - A file that is not from this run. In a 3D script, a graph the server rejected let the previous run's file be picked up as the new result.
Each trap has a cheap guard:
- After every job, check that the expected output file exists and is new.
- After a new graph, search the server log for the words
Failed to validate prompt. - Look at the picture. A simple number helps too: static has a pixel variance about five times higher than any real picture we rendered.
Words you may meet
- Node or box: one job in the recipe.
- Graph or workflow: the whole recipe, boxes plus wires.
- Sampler: the box that cleans the noise step by step.
- Checkpoint: the model file.
- LoRA: a small add-on file that changes a model's style.
- Seed: the number that picks the starting noise.
- Cache: saved results that ComfyUI reuses.
Try it
- Install ComfyUI and load its default text-to-picture recipe. Name each box out loud by the six jobs above.
- Run it twice with the same seed and the same words. Compare the two files. They should match.
- Change only the seed. Compare again.
- Look at what we do with such recipes: the cover pictures on this blog, the article pictures on doar.bio and the generated textures in the 3D shop at aiazic.com.
What we do not claim
The numbers here come from ComfyUI v0.43.0 on one AMD card. We have since moved to v0.45.5, and our upgrade check gave the same pictures bit for bit on our test chain. Names of boxes and their settings change between versions, so check your own menus. And "repeatable" here means the same graph, model and seed on our machine. We have not tested whether a different graphics card gives bit-for-bit the same picture.

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