Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def prepare_environment():
torch_index_url = os.environ.get('TORCH_INDEX_URL', "https://download.pytorch.org/whl/cu121")
torch_command = os.environ.get('TORCH_COMMAND',
f"pip install torch==2.1.0 torchvision==0.16.0 --extra-index-url {torch_index_url}")
f"pip install torch==2.7.1+cu128 orchvision==0.22.1+cu128 --extra-index-url {torch_index_url}")
requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")

@lcretan lcretan Nov 27, 2025

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood your purposes and efforts.

Then, the stable PyTorch is now version 2.9.1.
Also, the stable CUDA 12.x is now 12.9.
They are fixed many bugs and enhanced to adapt your purposes.

Furthermore, cpython 3.10 has Intel distributed optimization libraries now provided as the pip packages, not Intel's original python fork.

So, to realize your purposes effectively and efficiently, I propose the combination: cpython 3.10 + Intel libraries + torch 2.9.1 + CUDA 12.9 although their wheels are often hidden, but we can setup them by the each install option.

If you have already tested them and found degradings , I need to change my decision.
Because I'm now using and testing them with RTX 4070 to enhance the original Fooocus, not fork original one, even slightly, to contribute the original Fooocus team who have built and maintained this state-of-the-art and out-of-box great package.

Regarding CUDA 13.0, the structure is drastically changed and still has many bugs although PyTorch already supports CUDA 13.0.

Thanks,


print(f"Python {sys.version}")
Expand Down
488 changes: 13 additions & 475 deletions readme.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions requirements_docker.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch==2.1.0
torchvision==0.16.0
torch==2.7.1
torchvision==0.22.1
2 changes: 1 addition & 1 deletion requirements_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ gradio==3.41.2
pygit2==1.15.1
opencv-contrib-python-headless==4.10.0.84
httpx==0.27.0
onnxruntime==1.18.1
onnxruntime==1.22.0
timm==1.0.7
numpy==1.26.4
tokenizers==0.19.1
Expand Down
2 changes: 2 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.\python_embeded\python.exe -s Fooocus\entry_with_update.py
pause
178 changes: 0 additions & 178 deletions troubleshoot.md

This file was deleted.