This page is also available in: 中文
Fooocus is an AI image generator based on Gradio. It inherits the offline, open source, and free features from Stable Diffusion, as well as the hands-off parameter tuning from Midjourney. It predefines a large number of parameters to optimize and enhance image quality, allowing high-quality images to be generated without complex technical parameters.
Meanwhile, Fooocus simplifies the installation process, limiting the number of mouse clicks required from "download" to generating the first image to strictly within 3 clicks. The minimum GPU requirement is only 4GB (Nvidia).
Create a new notebook on Google Colaboratory (or make a copy from our shared notebook Foocus.ipynb), and paste the following code:
!pip install pygit2==1.12.2
%cd /content
!git clone https://github.com/lllyasviel/Fooocus.git
%cd /content/Fooocus
!python entry_with_update.py --share
Change the runtime type and switch the hardware accelerator to T4 GPU.
It takes some time to execute the code and download the required models to the runtime.
Please note that you need to observe the execution status of the code. Fooocus installation and initialization will start the WebUI interface, and the code block will always be in a running state (because if the program stops, it cannot be accessed).
When you see URL information similar to the following at the end of the output result, it means that Fooocus has started and can be accessed:
App started successful.Use the app with http://127.0.0.1:7865/ or 127.0.0.1:7865 or https://1c69fd532bb9588c4a.gradio.live
Enter "An elegant kitten" in the prompt, and you will quickly generate two high-quality images.
Check "Advanced" to adjust various details.
This article was published on 2024-01-22 and last updated on 2024-09-23.
This article is copyrighted by torchtree.com and unauthorized reproduction is prohibited.