Setup Guide: Blender + FLUX.dev + ComfyUI
We will follow the
tutorial on GitHub
Before you can run the pipeline, you'll need to install a few basic requirements. Start by making sure you have Git and the C++ runtime libraries installed on your system—these are standard tools needed for managing code and running compiled components in the background.
Next, you'll need a Hugging Face access token. Hugging Face is a popular platform for sharing and hosting machine learning models. Many advanced models, including the one used in this pipeline, are hosted there. Tokens are used to authenticate your access—especially for models under restricted licenses or usage terms.
Before downloading the model, you'll also need to accept the license for the flux.1-dev model on Hugging Face. This is required because some models—especially those involving generative media—may have specific terms around how they're used, shared, or modified.
In case you did not accept the license, you'll get a proper error message, so it's easy to fix what went wrong.
Once that's done, you'll need to install the NVIDIA NIM runtime, which powers the AI backend used for inference. Then, install the corresponding Blueprint, which sets up the orchestration between components like Flux.dev, ControlNet, and the image generation UI.
Behind the scenes, the installer sets up a WSL (Windows Subsystem for Linux) virtual machine, which runs a full Linux environment alongside Windows. This is important because many AI tools, especially those involving GPU acceleration and containerized runtimes, are built for Linux and don't run reliably on native Windows. By using WSL, the pipeline gets the compatibility and stability of Linux without requiring a separate dual-boot or external server setup.
With the backend in place, the final setup step is to configure Blender to use the ComfyUI BlenderAI node. This connects Blender to the AI pipeline, so your 3D scene can communicate directly with the image generation system.
Now you're ready to begin. Open Blender and load the included project file—this comes preconfigured with the town scene you've seen throughout this article. From here, you can start experimenting with camera angles, prompts, and output styles. What I found extremely useful is to enable the console, so you can see progress and error messages.
Issues
I ran into the following issues:
"Error: statfs /home/workbench/.cache/nim: no such file or directory"—This is a bug in the NIM. For some reason, this directory is missing inside the WSL virtual machine container, you can fix it by entering into the container and creating the missing directory, then just restart Blender and connect to the NIM again.
wsl -d NVIDIA-Workbench -u root
su -l workbench
mkdir -p ./.cache/nim
chmod a+rw ./.cache/nim
"Expecting value: line 1 column 1 (char 0)"—This error is triggered when your system doesn't have enough RAM. The official page says "48 GB recommended", but that is slightly inaccurate. It really means "48 GB required, it will not work with 32 GB." Once I upgraded the memory in the machine from 32 GB to 64 GB, this error went away.
"Result: CONTENT_FILTERED"—It's worth noting that many of the AI models in this pipeline come with built-in safety filters or guardrails designed to block prompts that might be interpreted as inappropriate or unsafe. As a result, you may occasionally see errors or failed generations depending on the wording of your prompt. Unfortunately, there doesn't seem to be a reliable workaround for this—your best option is to tweak the prompt slightly. Even small changes can sometimes make a difference. That said, the filtering can be quite aggressive; for example, even something as innocent as the word "beach" may trigger it, possibly due to the model erring on the side of caution around nudity-related content.
I also noticed that during startup it's good to have fast storage. With a SATA SSD I'd see timeout errors sporadically while the disk was pegged at 100% usage—with an NVMe SSD it's much faster.