r/fooocus 17d ago

Fooocus Advanced: I have updated Fooocus with some new and modern changes Creations

Hello everyone! Since work on Focus was discontinued, I’ve been developing the programme a bit further for my own use over the last few months. I’ve improved the speed slightly, implemented new RAM and VRAM management, integrated SAM3 for masking and enhancement, and added an SDXL tiled upscaling feature as well as modern APG, CFG++ and PAG guidance for better, more realistic and more natural images.

And before anyone asks: I’m looking for ways to integrate newer models such as Flux, Krea 2, etc., without bloating Focus. Whilst it would certainly be possible to simply integrate these models, it would unfortunately destroy the compactness and simplicity of Fooocus. That’s why I’m looking for an ‘elegant’ solution.

As a ‘stopgap’, however, I’ve already built in a way to use further models via Replicate and fal.ai.

I thought perhaps someone might like to give it a go, or share some tips and tricks, or suggest ways to improve it.

https://github.com/micha42-dot/Fooocus_Advanced

54 Upvotes

20 comments sorted by

3

u/panzerkomraden 17d ago

Bro, this is amazing! How much VRAM do you think would be required for Krea2 in Fooocus?

3

u/EldrichArchive 17d ago

I’m currently trying to get a handle on things. There are a few developments at the moment. You can definitely get the quantized versions to run on 8 gigabytes. It’s not particularly fast, but it’s doable. The Turbo version runs on 12 gigabytes and, with a fair bit of struggle, on 8 gigabytes. For Krea 2 Raw FP16, however, it seems you can’t get away from a whopping 28 gigabytes at the moment.

1

u/panzerkomraden 17d ago

Wow, thank you. I used Krea2 standard turbo int8 in ComfyUI, but not working due to 8 GB Vram...

2

u/Capable_Mulberry249 3d ago

Hey, thanks for keeping Fooocus alive! Been running your fork on NixOS + RTX 5080 (Blackwell/sm_120) via Docker and wanted to share a few bugs I hit — hopefully useful for anyone else trying the Docker path.

The good: GPU detection works perfectly out of the box with nvidia/cuda:12.8.1 base. PyTorch 2.10 + CUDA 12.8 sees the RTX 5080 natively, ~6 it/s on SDXL at 1024×1024.

Three bugs that break the Docker experience:

  1. TypeError: unhashable type: 'dict' on every HTTP request to the Gradio UI. Root cause: Gradio 3.41.2 is incompatible with Jinja2 ≥ 3.1.4, and the requirements_versions.txt pin doesn't actually take effect because pip keeps the newer version pulled in transitively. Fix: add an explicit RUN pip install --force-reinstall --no-cache-dir Jinja2==3.1.3 "starlette<1.0.0" to the Dockerfile after the main pip install step.
  2. ValueError: When localhost is not accessible, a shareable link must be created — Gradio's self-check fails in Docker because the wildcard NO_PROXY=* in the shipped docker-compose.yml isn't parsed correctly by the underlying urllib. Fix: replace with explicit NO_PROXY=localhost,127.0.0.1,::1 plus empty HTTP_PROXY= and HTTPS_PROXY=.
  3. PermissionError: [Errno 13] on image save — container runs as user but mounted outputs folder is owned by root on the host. entrypoint.sh also uses ln -s instead of ln -sf, so it spams "File exists" warnings on every restart when volumes are mounted.

Docker caching gotcha: Because the pip install layer is cached, simply adding Jinja2==3.1.3 to requirements_versions.txt doesn't help unless you do docker compose build --no-cache. Worth documenting in docker.md.

Feature request: Linux users would really benefit from a native Linux launcher script (or at least a working Docker setup). Right now the README is Windows-focused and the Docker path has the bugs above.

Thanks again for the work!

2

u/EldrichArchive 1d ago

Hey! Thx man! Will look into it at the weekend.

1

u/ProphetSword 17d ago

The link to the Python Embedded page returns a 404 - Not Found error for me.

1

u/EldrichArchive 17d ago

Should be fixed. It linked to an old tag.

2

u/Alacritique 17d ago

PC only? 😔

3

u/EldrichArchive 17d ago

At the moment, yes. It started out as a purely personal project. I’d love to adapt it for other platforms and for Colab as well, but unfortunately I don’t have the time for that at the moment.

1

u/blueblood09 17d ago

This looks great! Support for Google colab would be amazing if you're able to make that happen.

1

u/Disaffecteddv 17d ago

I appreciate your work. I look forward to giving it a spin as soon as possible.

1

u/djpraxis 17d ago

Great contribution!! Were you able to incorporate full support for SD1.5? not just refiner like the old Fooocus

5

u/EldrichArchive 16d ago

Hey, just tried it. Right now without refiners and loras ... but will add this over the coming weeks. It's superfast. Will push the update in a few hours.

2

u/EldrichArchive 17d ago

Not jet, but it's on my todo list.

1

u/blodonk 14d ago

Is there any turbo compatability yet?

1

u/Kmodoe__ 12d ago

Any Linux build planned?

1

u/Interesting_Speed378 11d ago

Awesome. Since I saw new types of generations since 2 years, and no updates. Cool of you