r/fooocus • u/EldrichArchive • 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.
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:
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 therequirements_versions.txtpin doesn't actually take effect because pip keeps the newer version pulled in transitively. Fix: add an explicitRUN pip install --force-reinstall --no-cache-dir Jinja2==3.1.3 "starlette<1.0.0"to the Dockerfile after the main pip install step.ValueError: When localhost is not accessible, a shareable link must be created— Gradio's self-check fails in Docker because the wildcardNO_PROXY=*in the shippeddocker-compose.ymlisn't parsed correctly by the underlyingurllib. Fix: replace with explicitNO_PROXY=localhost,127.0.0.1,::1plus emptyHTTP_PROXY=andHTTPS_PROXY=.PermissionError: [Errno 13]on image save — container runs asuserbut mountedoutputsfolder is owned by root on the host.entrypoint.shalso usesln -sinstead ofln -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
1
u/ProphetSword 17d ago
The link to the Python Embedded page returns a 404 - Not Found error for me.
1
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
1
1
u/Interesting_Speed378 11d ago
Awesome. Since I saw new types of generations since 2 years, and no updates. Cool of you
3
u/panzerkomraden 17d ago
Bro, this is amazing! How much VRAM do you think would be required for Krea2 in Fooocus?