惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
量子位
美团技术团队
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
月光博客
月光博客

Runpod Blog.

DeepSeek V4 in the wild, and how to run it on Runpod New Runpod datacenter now live: AP-IN-1 Track GPU spend across your team with Cost Centers The GPU supply supercycle is here. Here’s what AI builders need to know. Community Spotlight: One-click AI image and video generation on Runpod with SwarmUI | Runpod Blog Community Spotlight: LoRA Pilot Data Prep to Inference Introducing the Runpod Assistant: Manage Your Cloud GPU Resources with Natural Language OpenAI's Parameter Golf: Train the Best Language Model That Fits in 16MB on Runpod LLM inference optimization: techniques that actually reduce latency and cost Pruna P-Video and Vidu Q3 public endpoints now available on Runpod Runpod brand spelling guide Quickstart - Runpod Documentation The AI market looks nothing like the narrative Training StyleGAN3 with Vision-Aided GAN on Runpod KoboldAI – The Other Roleplay Front End, And Why You May Want to Use It How to Connect Cursor to LLM Pods on Runpod for Seamless AI Dev Community Spotlight: How AnonAI Scaled Its Private Chatbot Platform with Runpod Prompt Scheduling with Disco Diffusion on Runpod Runpod's Latest Innovation: Dockerless CLI for Streamlined AI Development Run Your Own AI from Your iPhone Using Runpod Introducing Flash: Run GPU workloads on Runpod Serverless: No Docker required Use Claude Code with your own model on Runpod: No Anthropic account required Avoid Errors by Selecting the Proper Resources for Your Pod What hackers built on Runpod at TreeHacks 2026 Easily Back Up and Restore Your Pod with Cloud Sync + Backblaze B2 The Complete Guide to GPU Requirements for LLM Fine-Tuning AI Guides, Tutorials & GPU Infrastructure Insights | Runpod Your first Claude Code project within Runpod: a complete setup guide 10 billion Serverless requests and counting Building for resilience: Runpod’s response to the AWS us-east-1 outage
Stable Diffusion + ComfyUI on Runpod: Easy Setup Guide
Brendan McKeag · 2023-08-17 · via Runpod Blog.

Automatic1111 is an iconic front end for Stable Diffusion, with a user-friendly setup that has introduced millions to the joy of AI art. Anyone can spin up an A1111 pod and begin to generate images with no prior experience or training. The options are all laid out intuitively, and you just click the Generate button, and away you go.

But what if I told you there was another front end that gave you significantly more flexibility and even let you create your own multi-step workflow? What if you wanted to do a generation of a generation of a generation with a simple button click?

The solution to that is ComfyUI, which could be viewed as a programming method as much as it is a front end. Although it looks intimidating at first blush, all it takes is a little investment in understanding its particulars and you'll be linking together nodes like a pro.

Setting up with the Runpod ComfyUI Template

We've already got a ComfyUI template set up for you to use! All you need to do is select this template when spinning up a pod. I would recommend selecting a pod with around 16GB of RAM to experiment. Once you get comfortable and want to generate larger images, it may be worth upping the spec on your pod.

Runpod template search dropdown with the Runpod SD Comfy UI template listed

Examining the Default Workflow And Parallel Prompting

When you first start up the pod, you'll notice something immediately different. Rather than the set in stone nature of A1111, you'll notice that it's a series of nodes connected to each other with spaghetti:

ComfyUI node graph generating an image of Darth Vader with a red lightsaber, Queue Prompt menu at right

The first thing you'll notice is that despite it looking totally different, you can also use ComfyUI in the same manner as A1111. If you just want to throw a prompt in, and click "Queue Prompt" to get your image, you can totally do that.

Where it differs is being able to create additional nodes and steps to automate the flow in a way that would be very manual in A1111. For example, if you wanted to generate an image and send it to img2img, you'd need to manually copy and send it over, click to the next tab, and re-generate, and who wants to do all that work?

To start, note how the strings connect the nodes. You have a model loader and two prompt boxes - but note that one string connects to the "positive" and the other to the "negative" lead of the KSampler node. This logic forms the basis of ComfyUI's operation. The one sticking point to remember is that if a lead is in all caps, then it can be connected to multiple other nodes at once, whereas lower case leads only accept a one-to-one connection. So you could, for example, have a text prompt going to multiple samplers, but you could not have a sampler accepting more than one positive and negative prompt.

Screenshot from Stable Diffusion ComfyUI setup tutorial

Note that you can potentially have multiple image generation projects going in the same workflow, if you so choose. With multiple prompts and multiple samplers connected to the same model, you could generate multiple images in the same go. Or if you're satisfied with one and want to keep working on the other, you could disconnect the Image lead at the end of the workflow so that it only generates the other image. You could potentially even have multiple model loaders working on different images at the same time.

What about more complex setups?

Well, SDXL has a refiner, I'm sure you're asking right about now - how do we get that implemented? Although SDXL works fine without the refiner (as demonstrated above) you really do need to use the refiner model to get the full use out of the model.

Observe the following workflow (which you can download from comfyanonymous, and implement by simply dragging the image into your Comfy UI workflow.)

Screenshot from Stable Diffusion ComfyUI setup tutorial

Although this looks a little busier than the base setup (partially due to all the extra commenting), you can see that you can load multiple models at once and route them through two different samplers, into a VAE Autoencoder, and finally to a saved image. This is how you can have a prompt of "evening sunset scenery blue sky nature, glass bottle with a galaxy in it" and end up with an image like this:

AI-generated image of a glass bottle on a wooden post containing a starry night sunset landscape

Because ComfyUI workspaces are just .json files, they can be easily encoded within a PNG image, similar to TavernAI cards, and you can just drag the image into your workspace and it will construct the workspace for you automatically. If you'd like to try this for yourself, be sure to visit the above link to get the image for yourself. Comfyanonymous also has workflow examples for several other functions found in A1111, such as LoRAs, img2img, and more.

Screenshot from Stable Diffusion ComfyUI setup tutorial

Recent Developments in Stable Diffusion and ComfyUI

Since this article was written, there have been significant advancements in both Stable Diffusion models and ComfyUI itself. Let's explore what's new and how you can take advantage of these improvements.

ComfyUI Version 1.0

ComfyUI released Version 1 in October 2024, offering a cross-platform desktop application with one-click installation, a completely revamped user interface, and numerous feature improvements that significantly enhance the user experience. This is a major milestone for the platform, making it more accessible to newcomers while retaining all the power that experienced users love.

If you'd like to try the new version of ComfyUI, you can try one of our community templates, such as these templates by valryiantech that have the updated version installed:

Flux: The Next Generation of Image Generation

Flux is a family of text-to-image diffusion models developed by Black Forest Labs that has quickly become the best open-source image model you can run locally on your PC, surpassing the quality of both SDXL and Stable Diffusion 3 Medium in some use cases, most specifically around generating humans and human-like entities.

AI-generated portrait of a smiling blonde woman on a sunny beach

Source: Reddit

What makes Flux stand out is its hybrid architecture that combines the strengths of transformers and diffusion models, enabling it to deliver exceptional image quality and processing speed while accurately rendering intricate details like fingers and text in images. Read our up-to-date deep dive into Flux.

Key Advantages of Flux

Flux offers several significant improvements over previous models:

The model is particularly known for producing highly detailed images with minimal deformities, especially in complex areas like hands, while providing high-quality prompt support, efficient text generation, and seamless workflow customization.

The Flux.1 Dev AI model demonstrates excellent prompt adherence, generates high-quality images with correct anatomy, and excels at generating text within images - a task that has traditionally been challenging for AI image generators.

While Midjourney, ChatGPT, DALL-E, and others are great AI image generators, ComfyUI with Flux offers several advantages: it can be run locally on your own hardware for greater privacy and control, supports multiple AI models for flexibility, can be cost-effective after initial setup, and offers complete transparency due to its open-source nature.

Flux Variants

Flux is available in several variants to suit different needs and hardware configurations:

The single-file FP8 version is a reduced-precision model contained in a single checkpoint file, making it easy to use and requiring less VRAM (around 16GB). The Flux Schnell version is a distilled 4-step model that sacrifices some quality for faster sampling times. For those with powerful hardware, the regular FP16 full version offers the highest quality but requires more VRAM (around 24GB).

If you'd like to try Flux, try out the template listed above!

Questions?

Feel free to drop by our artist community on Discord - we would love to hear from you!

Author profile: Brendan McKeag