Machine Learning

Machine Learning in Linux: Fooocus – image generating software

In Operation

When you start the software, the system’s default web browser is opened at 127.0.0.1:7865

Let’s provide a text prompt. We see a preview of 2 images being generated before the final images are generated. It’s easy to change the number of images generated.

Fooocus result
Click image for full size

Fooocus offers a lot more functionality than generating images from text prompts. At the bottom of the web page are three boxes: Input Image, Enhance and Advanced.

Input Image

This section offers the following tabs:

  • Upscale or Variation: Vary (Subtle), Vary (Strong), Upscale 1.5x, Upscale 2x, and Upscale Fast 2x.
  • Image Prompt.
  • Inpaint or Outpaint, Improve detail (of face, hands, eyes, etc), and modify contents (by adding objects, change background).
  • Describe – this option takes an image and describes it in<./li>
  • Enhance.
  • Metadata

The Advanced checkbox opens up a myriad of options where you can define the settings including performance, aspect ratio, number of images to generate, the output format (png, jpeg, or webp), and negative prompts. The latter lets you describe what you don’t want to see in the generated images.

There’s also a whole raft of styles. The final tab lets you set the base model, refiner, and LoRA.

Summary

Fooocus gets our seal of approval. It’s really simple to install and use. You’ll be up and running in just a few minutes. No technical skills are required to produce magical results.

There’s a great range of features. Things like prompt weights, high-quality text-to-image without needing extensive parameter tuning, and the quality of results from inpainting or outpainting are just a few of the highlights. Fooocus uses its own inpaint algorithm and inpaint models.

Like similar software, you’ll need a good dedicated GPU with at least 4GB of GPU memory. There’s support for NVIDIA and AMD GPUs.

Note, that while the project is committed to fixing bugs, there’s no intention to add new features or incorporate newer model architectures. But there are a few good forks which are actively maintained which extend the software.

Website: github.com/lllyasviel/Fooocus
Support:
Developer: Lvmin Zhang and contributors
License: GNU General Public License v3.0

Fooocus is written in Python. Learn Python with our recommended free books and free tutorials.

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