Machine Learning

Machine Learning in Linux: Fooocus – image generating software

Artificial intelligence icon 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

Installing the dependencies

Fooocus automatically download the models when starting the launcher.

$ python entry_with_update.py

Downloading the models

Next page: Page 2 – In Operation and Summary

Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Read our Comment FAQ.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments