Rebuilding AUTOMATIC1111 with Gradio Workflow
Workflow1111项目使用Gradio重建了AUTOMATIC1111的大部分功能,将其整合为一个单一的工作流画布。它包含类似AUTOMATIC1111的“Interrogate”按钮功能,利用VLM(Qwen2.5-VL)从图像生成提示,并使用ViT分类器进行图像标签识别。构建过程涉及使用bind=将函数转换为节点,通过edges=连接它们,并使用.launch()在浏览器中打开画布。完成后的整个工作流可以通过gradio deploy部署到Space上。
该项目首次将AUTOMATIC1111的大部分功能重建为单一Gradio工作流画布,不同于此前仅关注单个组件的做法。
时间与来源
时间显示为 UTC
显示时区:UTC
本地时区尚不可用,暂时显示 UTC。
发布当时偏移:UTC+02026年9月10日 00:00 UTC
收录当时偏移:UTC+02026年9月12日 16:01 UTC
- 发布
- 2026年9月10日 00:00
- 收录
- 2026年9月12日 16:01
- 来源类型
- 官方发布
- 档位
- 当事方
- 信源状态
- 正常
档位是按信源手工设定的编辑判断,不是逐条打分。
讨论趋势
百分比基于采集到的讨论信号,不代表新增评论数或独立参与人数。曲线仅用于同一话题在不同时段的比较。
In our last post , we built five small gr.Workflow graphs and hinted at what it would take to build something as complex as AUTOMATIC1111's stable-diffusion-webui . In this post we walk you through Workflow1111, where we have rebuilt most of AUTOMATIC1111's feature set as a single workflow canvas.
Workflow1111 is a graph of eleven media pipelines built using seventy-three nodes. It brings together SOTA models for text-to-image, hi-resolution fix, image-to-image, prompt-matrix grids, VLM interrogate, detection-to-inpaint masks, ControlNet-style annotators, background removal, PNG Info storing, and image-to-video.
You can run any of these pipelines by signing in with your Hugging Face account or providing an access token. Once you sign in, the model calls use your own quota.
👉 Try Workflow1111, or duplicate the Space and start rewiring it for your own use case.
Let's walk the canvas.
What's on the canvas
All the media pipelines are built from the same four operator kinds covered in our last post and the official guide . Each node on the canvas wraps one operator, and the operator's inputs and outputs become the ports you connect edges to. As a quick reference on our four operator kinds: fn is a Python function, model is a model called through InferenceClient, space is another Gradio Space, and dataset is a row from a Hub dataset.
Let's go through the pipelines one by one.
Text-to-image
This is the core pipeline. It has the controls you'd expect from A1111's txt2img tab: negative prompt, steps, CFG, seed, width and height, plus a model_id field for choosing the checkpoint. The prompt goes through a prompt-builder fn node first, which appends the selected style preset and cleans up the text, then into a model node that calls the checkpoint through Inference Providers. A post-process fn node writes the generation parameters into the PNG's metadata on the way out, which is what the PNG Info pipeline reads back later.
Hi-resolution fix
In Automatic1111, hi-resolution fix first upscales the txt2img output and then runs a second denoising pass. Here it's a two-node detour instead. The text-to-image result goes into a FLUX.1-Kontext model node with a refine instruction ("enhance fine detail and micro-texture, keep the composition identical") and comes back sharper and larger.
Image-to-image
That same Kontext node doubles as the image-to-image tab. Upload an image, describe the change you want, and it returns the edited image.
Let an LLM write the prompt
Start with a rough prompt like "A lighthouse in a storm." This pipeline sends it to a Qwen3-4B model node, and a small fn node turns the reply into a clean list of tags, capped at forty: "stormy sea, wet rocks, dramatic composition, low angle shot, volumetric lighting, ominous tone." You can connect any diffusion model node to this output to render the image.
There's no custom node involved, unlike in ComfyUI. In a Gradio workflow the LLM and the diffusion model are both ordinary model operators on the same canvas.
Read an image back into a prompt
This is like AUTOMATIC1111's Interrogate button, with a VLM doing the interrogating instead of CLIP. Qwen2.5-VL looks at a night-market photo and writes a prompt that could have produced it. A ViT classifier node reads the same image and returns labels: restaurant 51.9%, tobacco shop 15.6%, toyshop 9.1%.
Both nodes use the same image input, so gr.Workflow runs them in parallel and you get both answers in roughly the time it takes to run one.
Detection to inpaint mask
AUTOMATIC1111 makes you paint an inpaint mask by hand. This pipeline generates one from a detector instead. DETR finds six objects in a street photo (three people, a dog, a bicycle, and a car), and from there the workflow splits into two branches: one draws the detected boxes on the original image, the other turns them into a mask you can feed into an inpaint pipeline downstream.
The drawing and the mask creation both happen locally with Pillow and NumPy. Only the detection call leaves the machine.
Prompt matrix