Creating an Uncensored Image Generator

Unlimited Visual Creation Without Boundaries

Break free from the limitations of commercial image generators. Build your own unrestricted image generation system that can create any visual content you can imagine.

Uncensored Image Generator

A step-by-step guide to setting up Flux and ComfyUI on your Windows computer to generate unrestricted AI images locally.

90 minutes
Intermediate

Generate AI Images (Uncensored) Locally on Your Windows Computer

This comprehensive guide will walk you through setting up Flux and ComfyUI on a Windows workstation to generate uncensored AI images locally. We'll break down the process into clear, actionable steps, ensuring you can follow along seamlessly. At each milestone, we'll include tests to verify successful completion before moving on.

Why Generate Images Locally?

Running AI image generation locally gives you complete control over the content you create, without the restrictions imposed by commercial platforms. You'll have privacy, unlimited generations, and the ability to customize the process to your exact specifications.

Step 1: Setting Up Your Development Environment

Before diving into Flux and ComfyUI, ensure your system is prepared with the necessary tools.

1.1 Install Python

ComfyUI requires Python to run.

Download Python:

Install Python:

  • Run the installer.
  • Ensure you check the box that says "Add Python to PATH" before proceeding.
  • Follow the on-screen instructions to complete the installation.

✅ Milestone Test:

Open Command Prompt and type:

python --version

If it returns the Python version number, the installation was successful.

1.2 Install Git

Git is essential for cloning repositories.

Download Git:

Install Git:

  • Run the installer.
  • Use the default settings unless you have specific preferences.

✅ Milestone Test:

Open Command Prompt and type:

git --version

If it returns the Git version number, the installation was successful.

1.3 Install NVIDIA CUDA Toolkit (Optional for NVIDIA GPU Users)

If you have an NVIDIA GPU, installing the CUDA toolkit can enhance performance.

Download CUDA Toolkit:

Install CUDA Toolkit:

  • Run the installer and follow the on-screen instructions.

✅ Milestone Test:

Open Command Prompt and type:

nvcc --version

If it returns the CUDA version, the installation was successful.

Step 2: Installing ComfyUI

ComfyUI is a node-based interface for Stable Diffusion, allowing for flexible AI image generation.

2.1 Clone the ComfyUI Repository

Open Command Prompt:

  • Navigate to your desired installation directory using the cd command.

Clone Repository:

git clone https://github.com/comfyanonymous/ComfyUI.git

✅ Milestone Test:

Ensure the ComfyUI folder is created in your chosen directory.

2.2 Install Dependencies

Navigate to ComfyUI Directory:

cd ComfyUI

Create a Virtual Environment:

python -m venv venv

Activate Virtual Environment:

venv\Scripts\activate

Install Required Packages:

pip install -r requirements.txt

✅ Milestone Test:

If all packages install without errors, the environment is set up correctly.

2.3 Launch ComfyUI

Start ComfyUI:

python main.py

Access the Interface:

  • Open your web browser and navigate to: http://localhost:8188

✅ Milestone Test:

If you see the ComfyUI interface in your browser, the setup is successful.

Step 3: Integrating Flux AI Model

Flux is an open-source text-to-image AI model known for generating highly detailed and realistic images.

3.1 Download Flux Model

Visit the Flux Repository:

Select the Desired Model:

  • Choose a model variant that suits your needs (e.g., Flux Pro, Flux Dev).

Download the Model:

  • Click on the model file to download it to your computer.

✅ Milestone Test:

Verify the model file is downloaded to your system.

3.2 Integrate Flux Model into ComfyUI

Locate ComfyUI Models Directory:

  • Navigate to the models folder within your ComfyUI directory.

Place Flux Model:

  • Move or copy the downloaded Flux model file into the models folder.

✅ Milestone Test:

Ensure the model file is present in the models directory.

3.3 Configure ComfyUI to Use Flux Model

Restart ComfyUI:

  • If it's running, stop it by pressing Ctrl + C in Command Prompt.

Restart using:

python main.py

Verify Model Availability:

  • Check the ComfyUI interface and confirm that the Flux model is listed.

✅ Milestone Test:

If Flux appears as an option and you can select it, the integration is complete.

Step 4: Generating AI Images with ComfyUI and Flux

Now that everything is set up, let's generate your first AI image!

4.1 Set Up a Basic Workflow

Access the ComfyUI Interface:

  • Open: http://localhost:8188

Add Nodes:

  • Text Input Node – Describe the image you want to generate.
  • Flux Model Node – Ensure it is set to the Flux model you integrated.
  • Image Output Node – Display the generated image.

Connect Nodes:

  • Link the nodes in the logical sequence: Input → Model → Output.

4.2 Generate an Image

Run the Workflow:

  • Click Execute to start the generation process.

✅ Milestone Test:

If an image appears, the workflow is functional!

Step 5: Optimizing Performance

5.1 Enable GPU Acceleration

Ensure CUDA Is Installed:

  • If not installed, refer back to Step 1.3.

Modify ComfyUI Settings:

  • Open the settings.json file in the ComfyUI directory.
  • Ensure "use_cuda": true is set.

Restart ComfyUI:

python main.py

✅ Milestone Test:

Image generation should be faster with GPU enabled.

5.2 Adjust Image Resolution

  • Lower resolutions = faster generation.
  • Modify the Image Output Node settings to optimize speed.

Congratulations!

You've successfully set up Flux + ComfyUI to generate uncensored AI images on your Windows workstation. Explore different models, refine your workflows, and unleash your creativity!

Happy generating! 🚀