Fooocus stands at the forefront of image generating software, revolutionizing the field with its unique approach to Stable Diffusion and Midjourney’s designs. This open-source and offline tool, developed based on Gradio, sets out to simplify the complex world of image generation, providing users with a seamless experience from prompt to result. In this article, we’ll delve into the key features, installation process, and advanced capabilities that make Fooocus a standout choice in the realm of creative AI.
Key Features
1. Offline and Open Source
Fooocus follows the principles learned from Stable Diffusion, ensuring that the software is offline, open source, and freely accessible. This empowers users with the freedom to explore and experiment without constraints.
2. User-Friendly Interface
Drawing inspiration from Midjourney, Fooocus eliminates the need for manual tweaking. Users can focus solely on prompts and images, leaving behind the intricate technical parameters that often accompany similar tools.
3. Inner Optimizations and Quality Improvements
Fooocus incorporates automated inner optimizations and quality enhancements, relieving users from the burden of dealing with intricate technicalities. This ensures that results are consistently beautiful, regardless of prompt length or complexity.
4. Effortless Installation, Maximum Enjoyment
Installation has been streamlined for user convenience. With just a few clicks, users can go from downloading the software to generating their first image. The minimal GPU memory requirement of 4GB (Nvidia) makes Fooocus accessible to a wide range of users.
Unveiling Fooocus Features
Image Manipulation:
Midjourney | Fooocus |
---|---|
V1 V2 V3 V4 | Input Image -> Upscale or Variation |
U1 U2 U3 U4 | Input Image -> Upscale or Variation |
Inpaint / Up / Down / Left / Right (Pan) | Input Image -> Inpaint or Outpaint -> Inpaint / Up / Down / Left / Right |
–style | Advanced -> Style |
–stylize | Advanced -> Advanced -> Guidance |
–niji | Multiple launchers: “run.bat”, “run_anime.bat”, and “run_realistic.bat” |
–quality | Advanced -> Quality |
–repeat | Advanced -> Image Number |
Multi Prompts (::) | Just use multiple lines of prompts |
Prompt Weights | Use “I am (happy:1.5)” |
–no | Advanced -> Negative Prompt |
–ar | Advanced -> Aspect Ratios |
InsightFace | Input Image -> Image Prompt -> Advanced -> FaceSwap |
Describe | Input Image -> Describe |
Note: This table provides a comparison between Midjourney and Fooocus, showcasing the ease of use and additional features introduced by Fooocus.
Installing Fooocus
Windows Installation
- Download: Directly download Fooocus by clicking here.
- Run.bat: After downloading, uncompress the file and run “run.bat”. The software will automatically download default models.
- Model Download: Fooocus will download default models to the folder “Fooocus\models\checkpoints” during the first launch. Ensure a stable internet connection for automatic downloads.
- Inpaint Control Model: If using inpaint, the software will download Fooocus’s own inpaint control model at the first inpainting operation.
System Requirements
- Windows/Linux: Minimal GPU Memory – 4GB Nvidia GPU, Minimal System Memory – 8GB
- Mac: Not intensively tested, compatibility with M1/M2 MPS, shared GPU, and system memory.
- Linux (AMD GPUs): AMD support in beta, minimal GPU Memory – 8GB, Minimal System Memory – 8GB
- Windows (AMD GPUs): AMD support in beta, minimal GPU Memory – 8GB, Minimal System Memory – 8GB
Note: Fooocus is designed for extremely high-quality image generation, and the requirements reflect the pursuit of top-tier results.
Seamless Installation on Linux and Mac OS
Linux Installation:
Using Anaconda:
- Clone Repository:
git clone https://github.com/lllyasviel/Fooocus.git && cd Fooocus
- Create Conda Environment:
conda env create -f environment.yaml && conda activate fooocus
- Install Dependencies:
pip install -r requirements_versions.txt
- Download Models:
conda activate fooocus && python entry_with_update.py
Using Python Venv:
- Clone Repository:
git clone https://github.com/lllyasviel/Fooocus.git && cd Fooocus
- Create Virtual Environment:
python3 -m venv fooocus_env && source fooocus_env/bin/activate
- Install Dependencies:
pip install -r requirements_versions.txt
- Download Models:
source fooocus_env/bin/activate && python entry_with_update.py
Native System Python:
- Clone Repository:
git clone https://github.com/lllyasviel/Fooocus.git && cd Fooocus
- Install Dependencies:
pip3 install -r requirements_versions.txt
- Download Models:
python3 entry_with_update.py
Linux (AMD GPUs): Follow the instructions above, changing the torch version for AMD GPUs.
Mac OS Installation:
Apple Silicon (M1 or M2):
- Install Conda and PyTorch Nightly: Follow the Accelerated PyTorch training on Mac Apple Developer guide.
- Clone Repository:
git clone https://github.com/lllyasviel/Fooocus.git && cd Fooocus
- Create Conda Environment:
conda env create -f environment.yaml && conda activate fooocus
- Install Dependencies:
pip install -r requirements_versions.txt
- Launch Fooocus:
python entry_with_update.py --preset anime
Note: Mac Silicon computers may experience longer processing times compared to those with dedicated graphics cards.
Advanced Features
Fooocus offers an array of advanced features for users seeking perfection in their generated images. Some noteworthy features include:
- GPT2-based Prompt Expansion: “Fooocus V2” introduces dynamic style expansion, enhancing prompt processing.
- Native Refiner Swap: Fooocus seamlessly integrates refiner swap within a single k-sampler, maximizing coherence in sampling.
- Negative ADM Guidance: Addressing limitations in XL’s highest resolution level, Fooocus introduces Negative ADM Guidance for improved contrast.
- Self-Attention Guidance (SAG): An optimized variation of Section 5.1 of “Improving Sample Quality of Diffusion Models Using Self-Attention Guidance.”
- Style Templates: Fooocus includes modified style templates, introducing the “cinematic-default” style.
- CFG Scale and TSNR Correction: Carefully tuned correction for CFG Scale and TSNR when CFG is larger than 10.
Note: These advanced features contribute to Fooocus’s commitment to achieving exceptional results.
Customization
Users can customize Fooocus according to their preferences through the config file. The config file, located at Fooocus\config.txt, allows adjustments to model paths, default parameters, and more. Care should be taken while editing to avoid potential issues.
Note: Users can try “run_anime.bat” or “run_realistic.bat
Conclusion
Fooocus emerges as a powerful and user-friendly tool for image generation, catering to both novice users and advanced enthusiasts. With its offline, open-source nature, coupled with advanced features and optimizations, Fooocus sets a new standard in the world of creative AI. Whether you’re a digital artist, designer, or simply curious about the possibilities of AI-generated images, Fooocus provides an accessible and feature-rich platform for exploration.
Note: For the latest updates, release notes, and community discussions, refer to the official Fooocus GitHub repository.