Our Machine Learning in Linux series focuses on apps that make it easy to experiment with machine learning. All the apps covered in the series can be self-hosted.
Large Languages Models (LLMs) trained on massive amount of text can perform new tasks from textual instructions. They can generate creative text, solve maths problems, answer reading comprehension questions, and much more.
Fooocus is image generating software that allows users to focus on text prompts to generate images. It’s built entirely on the Stable Diffusion XL architecture. The software works offline and is published under an open source license.
Installation
We evaluated Fooocus using the Ubuntu 24.10 distro.
On Ubuntu we stronly recommend you don’t use pip outside of a virtual environment as it’s too easy to pollute your system. Instead, we’ll use the venv module, software which create isolated Python environments.
First clone the project’s GitHub repository:
$ git clone https://github.com/lllyasviel/Fooocus.git
Change to the newly created directory.
$ cd Fooocus
Create the isolated environment:
$ python3 -m venv fooocus_env
$ source fooocus_env/bin/activate
Download the software’s dependencies. The pip command is safe to use as we’re using it in an isolated environment.
$ pip install -r requirements_versions.txt
Fooocus automatically download the models when starting the launcher.
$ python entry_with_update.py
Next page: Page 2 – In Operation and Summary
Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary