RIP Stable Diffusion! BEST FREE UNCENSORED AI Model Is HERE!

4 min read 1 year ago
Published on Aug 03, 2024 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the installation and use of FLUX, a state-of-the-art text-to-image AI model developed by Black Forest Labs. FLUX boasts impressive capabilities, generating high-quality images with enhanced realism and detail. Whether you're looking to run FLUX on your local machine or rent a GPU for the task, this guide provides clear, actionable steps to get you started.

Step 1: Install Required Software

Before using FLUX, you need to install Confy UI, which is essential for running the model.

  • For automatic installation:

    1. If you're a Patreon supporter, download the FLUX Confy UI Manager Auto Installer.
    2. Double-click the installer, select the "Fast Low VRAM Install," and press Enter.
    3. Choose to download the FLUX Schnell model when prompted.
  • For manual installation:

    1. Download the portable standalone build of Confy UI from the official source.
    2. Extract the files to a designated folder on your computer.

Step 2: Download FLUX Models

You’ll need several models to utilize FLUX effectively.

  1. Click on the “Files and Versions” section of each model page.
  2. Download the appropriate models by clicking on the download icon.

Step 3: Organize Model Files

Once you have the models, you need to place them in the correct folders:

  1. VAE Model:

    • Cut and paste the ae.sft file into the vae folder within the Confy UI directory.
  2. FLUX Dev and Schnell Models:

    • Cut and paste the relevant files into the models/unit folder.
  3. Text Encoders:

    • Cut and paste the text encoder files into the models/clip folder.

Step 4: Configure Settings for Optimal Performance

Proper configuration is crucial for generating images efficiently.

  1. Open Nvidia Control Panel:

    • Navigate to "Manage 3D settings."
    • Set "CUDA Cism Fallback Policy" to "Prefer No Cism Fallback" if you have a powerful GPU (like RTX 3090 or 4090).
    • If you have less than 16 GB of VRAM, enable "Cism Fallback" instead.
  2. Adjust Weight Types:

    • Ensure you set the weight type to FP8 E4 M3 FN for faster image generation.
    • For GPUs with less VRAM, use the FP16 clip name to reduce memory usage.

Step 5: Generate Images

Now that everything is set up, you can start generating images with FLUX.

  1. Launch Confy UI.
  2. Import the workflow and select your model.
  3. Input your prompt and set the desired image resolution.
  4. Click "Q Prompt" to generate your image.
  • Note: Generating images may take around 14 seconds for high-quality outputs, depending on your hardware.

Step 6: Alternative GPU Renting

If your local machine lacks the necessary power, consider renting a GPU.

  1. Create an account on Runpod.
  2. Deploy a GPU pod:
    • Select a community cloud option for cost savings.
    • Choose a GPU with at least 24 GB of VRAM (like RTX 3090).
    • Set the container disk to 50 GB.
  3. Install Confy UI using the same steps as before, ensuring to download the models to the correct folders.

Conclusion

FLUX represents a significant advancement in AI image generation, offering flexibility and high-quality results. By following these steps, you can install and use FLUX on your local machine or through a rented GPU service. Experiment with different prompts and settings to fully leverage the capabilities of this powerful tool. If you encounter any issues, seeking support through community forums or Patreon can provide additional assistance. Enjoy your creative journey with FLUX!