Fooocus is a Stable Diffusion interface that is designed to reduce the complexity of other SD interfaces like ComfyUI, by making the image generation process only require a single prompt. The interface uses a set of default settings that are optimized to give the best results when using SDXL models. This interface should work with 8GB VRAM GPUs, but 12GB is recommended for a more stable experience. To install Foooocus, just download the standalone installer, extract it, and run the “run.bat” file. The first-time setup may take longer than usual as it has to download the SDXL model files. Once complete, you can open Fooocus in your browser using the local address provided.
Fooocus is an image generating software.
Fooocus is a rethinking of Stable Diffusion and Midjourney’s designs:
- Learned from Stable Diffusion, the software is offline, open source, and free.
- Learned from Midjourney, the manual tweaking is not needed, and users only need to focus on the prompts and images.
Fooocus has included and automated lots of inner optimizations and quality improvements. Users can forget all those difficult technical parameters, and just enjoy the interaction between human and computer to “explore new mediums of thought and expanding the imaginative powers of the human species”
Fooocus has simplified the installation. Between pressing “download” and generating the first image, the number of needed mouse clicks is strictly limited to less than 3. Minimal GPU memory requirement is 4GB (Nvidia).
Fooocus also developed many “fooocus-only” features for advanced users to get perfect results. Click here to browse the advanced features.
 David Holz, 2019.
You can directly download Fooocus with:
After you download the file, please uncompress it, and then run the “run.bat”.
In the first time you launch the software, it will automatically download models:
- It will download sd_xl_base_1.0_0.9vae.safetensors from here as the file “Fooocus\models\checkpoints\sd_xl_base_1.0_0.9vae.safetensors”.
- It will download sd_xl_refiner_1.0_0.9vae.safetensors from here as the file “Fooocus\models\checkpoints\sd_xl_refiner_1.0_0.9vae.safetensors”.
If you already have these files, you can copy them to the above locations to speed up installation.
Below is a test on a relatively low-end laptop with 16GB System RAM and 6GB VRAM (Nvidia 3060 laptop). The speed on this machine is about 1.35 seconds per iteration. Pretty impressive – nowadays laptops with 3060 are usually at very acceptable price.
Note that the minimal requirement is 4GB Nvidia GPU memory (4GB VRAM) and 8GB system memory (8GB RAM). This requires using Microsoft’s Virtual Swap technique, which is automatically enabled by your Windows installation in most cases, so you often do not need to do anything about it. However, if you are not sure, or if you manually turned it off (would anyone really do that?), or if you see any “RuntimeError: CPUAllocator”, you can enable it here:Click here to the see the image instruction.
Please open an issue if you use similar devices but still cannot achieve acceptable performances.
(Last tested – 2023 Aug 14)
Note that sometimes this Colab will say like “you must restart the runtime in order to use newly installed XX”. This can be safely ignored.
Thanks to camenduru’s codes!
The command lines are
git clone https://github.com/lllyasviel/Fooocus.git cd Fooocus conda env create -f environment.yaml conda activate fooocus pip install -r requirements_versions.txt
Then download the models: download sd_xl_base_1.0_0.9vae.safetensors from here as the file “Fooocus\models\checkpoints\sd_xl_base_1.0_0.9vae.safetensors”, and download sd_xl_refiner_1.0_0.9vae.safetensors from here as the file “Fooocus\models\checkpoints\sd_xl_refiner_1.0_0.9vae.safetensors”. Or let Fooocus automatically download the models using the launcher:
Or if you want to open a remote port, use
python launch.py –listen
Fooocus customer reviews
Fooocus is Stable Diffusion for people who don’t like prompt engineering
Stable Diffusion is a powerful generative AI model for images, but operating it via web and local interfaces often involves a lot of tweaking and prompt engineering. Fooocus aims to change that.
Lvmin Zhang, the person behind Fooocus, describes the project as a reworking of the design of Stable Diffusion and Midjourney. From Stable Diffusion, Fooocus takes the model and the focus on offline capabilities and open source, from Midjourney the focus on ease of use: manual adjustments of values like CFG are not required, users can simply focus on the image and the prompt.
In short, Fooocus is like a free offline version of Midjourney using the latest SDXL model from Stability AI. Although Midjourney usually still gives better results in my short test, Fooocus with SDXL comes close.
Fooocus has low requirements and easy installation
Fooocus comes with a simple installation, and the number of mouse clicks between hitting “download” and generating the first image is kept to a minimum, promises Zhang.
It requires at least an Nvidia graphics card with 4 gigabytes of RAM and 8 gigabytes of system RAM under Windows. Microsoft’s Virtual Swap needs to be enabled, but this is usually done automatically and can be turned on relatively easily. On a laptop with 16 gigabytes of system RAM and an Nvidia 3060 with 6 gigabytes of RAM, Zhang reports that image generation takes less than 1.5 seconds.
- Fooocus is a project that aims to simplify the operation of the generative AI model Stable Diffusion for image generation by allowing users to focus on the image and prompt without having to make manual adjustments.
- The software offers easy installation as well as automated optimizations and quality enhancements that must be manually adjusted in other interfaces. Advanced users can make additional adjustments via the Advanced tab.
- Fooocus requires at least an Nvidia graphics card with 4 gigabytes of RAM, 8 gigabytes of system RAM and Windows as the operating system.
All articles on this site come from the Internet, if reproduced, please indicate the source:https://chatgptprompt.cc/1152.html