Nanosaur2-670M
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…

lllyasviel’s open source image generator that runs offline on your own computer. You type a prompt, press Generate, and need little tuning. It is built on Stable Diffusion XL, with routes for Windows, Linux, Mac, Colab and Docker. The project now gets bug fixes only.
Fooocus is an open-source project on GitHub in the Marketing & SEO category, listed by Mindket. It is free. This is version 2, last updated on . Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.
git clone https://github.com/lllyasviel/Fooocus.git cd Fooocus python3 -m venv fooocus_env
Fooocus is image generating software you run on your own computer. The README says it is offline, open source and free, and that you only focus on the prompt and the pictures, as with online generators such as Midjourney. Manual tweaking is not needed. It is built on Stable Diffusion XL and Gradio, so you use it in your browser. An offline GPT-2 based prompt engine expands a short prompt such as “house in garden”, so the result still looks good. From the same page you can upscale a picture, make variations, inpaint or outpaint, use an image as a prompt, or ask for a description of an image. The README says the project is in limited long-term support: bug fixes only, and no current plan to move to newer model architectures.
People who want pictures from text on their own computer, offline and free. It suits you if you know Midjourney or Leonardo, because the README maps their features to Fooocus’s. It also suits anyone with an Nvidia card who wants a simple browser interface over Stable Diffusion XL.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Digital art | People who want pictures from text | Type a prompt, press Generate and pick a style under Advanced | Someone types “house in garden” and lets the prompt engine fill in the detail. |
| Midjourney and Leonardo users | People moving to a local tool | Look up each feature in the README’s two comparison lists | A Midjourney user opens Input Image, then Upscale or Variation, and picks Vary (Subtle). |
| Photo editing | People who fix or extend a picture | Inpaint to change part of an image, Outpaint to extend it | Someone opens Input Image, chooses Inpaint or Outpaint, then picks Up, Down, Left or Right. |
| Local network | People who open the interface to other devices | Launch with --listen, optionally a port, and add a login file | A user runs python entry_with_update.py --listen, sets a port with --port 8888 as the README suggests, and adds an auth.json file with a user and pass. |
Skip it if you need newer models such as Flux. The README sends those users to WebUI Forge and ComfyUI. Skip it too if you have no GPU. The README’s table puts a CPU-only run at about 17 times slower than an Nvidia RTX 3XXX and asks for 32 GB of memory.
The README, and the Docker page it links, have a route for each of these.
run.batrun.bat, in betaGet it saves a zip of Minda’s setup notes in your downloads folder, with a page for each platform above, one for models and config, and one for troubleshooting. On Windows with an Nvidia card, the README says to download the archive, uncompress it and run run.bat. On Windows with an AMD card you edit run.bat in the same archive. On Linux and Mac you clone the repository and install its Python packages. Colab runs the official notebook, and Docker or Podman run the ghcr.io/lllyasviel/fooocus image.
| Need | Detail |
|---|---|
| A GPU | An Nvidia RTX card with 4 GB of GPU memory is the README’s minimum. A GTX 1XXX or 9XX card needs 8 GB, and older GTX cards are not supported. An AMD card needs 8 GB, and a Mac uses shared memory |
| System memory | 8 GB, plus system swap. On Windows the swap is usually automatic. If you still see “RuntimeError: CPUAllocator”, keep 40 GB free on each drive |
| Python | Only on the Linux and Mac routes: Python 3.10 for the venv and system routes, and conda for the Anaconda and Mac routes (Mac also needs PyTorch nightly) |
| Disk space | Room for the models. The first launch downloads them, and your first inpaint adds one more file of 1.28 GB |
run.bat. On Linux and Mac, install the packages, in a conda or venv environment unless you use the system Python.git clone https://github.com/lllyasviel/Fooocus.git cd Fooocus python3 -m venv fooocus_env source fooocus_env/bin/activate pip install -r requirements_versions.txt
That is the README’s venv route for Linux. It launches with these two lines.
source fooocus_env/bin/activate python entry_with_update.py
Type a prompt and press Generate. Most other controls sit in two places. Input Image holds what you do with a picture: upscale it, vary it, inpaint or outpaint it, use it as an image prompt or ask for a description. Advanced holds the style, quality, image number, negative prompt, aspect ratios and guidance. The README maps Leonardo’s Prompt Magic to the Fooocus V2 style under Advanced.
| Midjourney | Fooocus |
|---|---|
| V1 to V4 | Input Image, Upscale or Variation, then Vary (Subtle) or Vary (Strong) |
| U1 to U4 | Input Image, Upscale or Variation, then Upscale (1.5x) or Upscale (2x) |
| Inpaint and Pan | Input Image, Inpaint or Outpaint, then Inpaint, Up, Down, Left or Right |
| Image Prompt | Input Image, Image Prompt |
| --style | Advanced, Style |
| --quality | Advanced, Quality |
| --repeat | Advanced, Image Number |
| --no | Advanced, Negative Prompt |
| --ar | Advanced, Aspect Ratios |
| Describe | Input Image, Describe |
You want one flower in three colors. Type the line below in the prompt box and raise the image number to 3. Fooocus makes one image for red, one for green and one for blue.
[[red, green, blue]] flower
A wildcard works the other way round. The prompt __color__ flower picks one random color from the file wildcards/color.txt, and the pick follows the seed. A LoRA goes in the prompt too: flower <lora:sunflowers:1.2> applies it when its file is in the models/loras folder.
If you are new. Fooocus is a program, not a website. A model is the file that holds what the drawing system learned, and your graphics card does the work. Fooocus fetches the models it needs when you first start it. The README warns that fake Fooocus sites exist, so get it from the repository. On Windows, run_realistic.bat and run_anime.bat load different models than run.bat. Start with run.bat, write a plain sentence and press Generate. If the console shows “RuntimeError: CPUAllocator”, a crash such as Segmentation Fault or Killed, or closes in a flash, the troubleshooting page blames too little system swap. A “CUDA Out Of Memory” on an Nvidia card with 8 GB, or 4 GB with Float16 support, is a bug to report. On 6 GB it says very likely a bug.
For experts. The README lists the sampling work as tricks, and says they are based on SDXL and are not very up to date with the latest models. They include a refiner swap inside a single k-sampler, negative ADM guidance, a tuned form of self-attention guidance, and CFG scale with TSNR correction above 10. Prompt weights use A1111’s reweighting, which the README says suits prompts copied from Civitai. After the first launch, config.txt sets the defaults, and the usage line lists many flags, from --always-high-vram to --preset and --language. The lines below are an excerpt of the README’s example of an edited config.txt.
{
"default_model": "realisticStockPhoto_v10.safetensors",
"default_cfg_scale": 3.0,
"default_sampler": "dpmpp_2m",
"default_scheduler": "karras"
}Fooocus runs on your machine, and a few paths reach out.
--listen and --share expose the interface, and both are unauthenticated unless you add an auth.json file with a user and a pass for each login--disable-analytics, --disable-image-log and --disable-metadata, and does not describe themThis kit holds setup notes only. Mindket wrote them. Fooocus itself comes from its maker's repository: https://github.com/lllyasviel/Fooocus
These notes are not made or endorsed by lllyasviel. The GitHub description reads "Focus on prompting and generating". The README calls Fooocus "an image generating software (based on Gradio)" and says it is "offline, open source, and free".
License: GPL-3.0. The LICENSE file (https://github.com/lllyasviel/Fooocus/blob/main/LICENSE) is the standard GNU General Public License version 3 text, dated 29 June 2007, and its closing appendix keeps the placeholder line Copyright (C) <year> <name of author>, so it names no holder. The kit holds none of Fooocus's code.
.7z archive from the repository's Releases that holds the program, its own Python and the launch files run.bat, run_anime.bat and run_realistic.bat. Source: https://github.com/lllyasviel/Fooocus/blob/main/readme.mdgit clone, plus the Python packages from requirements_versions.txt. On the Anaconda and Mac routes they go into a conda environment made from environment.yaml first.ghcr.io/lllyasviel/fooocus, or one you build from the repository.The README gives no separate update steps. Its launch lines use entry_with_update.py, and the README does not say what that file updates. For older releases, the README points to https://github.com/lllyasviel/Fooocus/discussions/1405 and says the update log is update_log.md in the repository.
The README gives no uninstall steps. On the Windows route, the program, its python_embeded folder and the Fooocus\models folder sit in the folder you extracted, so deleting it removes them. On Linux and Mac, delete the folder you cloned and the conda or venv environment you made. On the system-Python route, the packages from requirements_versions.txt stay in your system Python, and the README gives no steps to remove them. Anywhere else you pointed Fooocus's model or output paths, in config.txt, stays until you delete it.
README.md 5 KB setup/colab.md 2 KB setup/docker.md 6 KB setup/linux.md 3 KB setup/mac.md 2 KB setup/models-and-config.md 9 KB setup/troubleshooting.md 4 KB setup/windows.md 3 KB
Updated by Mindket to the current version of this kit.
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Waqf-AI · Kit
Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.
Wan-AI · Kit
Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.
nhathoangfoto · Kit
A LoRA for FLUX.2 Klein 9B that puts a character into the pose shown by a mannequin reference while keeping the character's face and style. For artists and des…
leejet · Kit
Generates images from text on modest GPUs, using quantized Z-Image-Turbo files made for stable-diffusion.cpp. For people who run image models on their own comp…
HiDream-ai · Kit
Generates images from text prompts with a 17B-parameter open model that scores at the top of the card's prompt-following tables. For designers, marketers and d…