Proposal
⚙️ Solution for Fooocus on Windows with NVIDIA 50xx Series (Tested on 5090 with Driver 572.42 Game Ready)
This guide explains how to fix compatibility issues for Stability Matrix with Fooocus on Windows using an NVIDIA 50xx series GPU (like the 5090).
🔗 Prerequisites: CUDA 12.8
You need CUDA 12.8 installed on your system for this to work.
⚠️ Important Note:
During the installation:
- Select “Custom Install”
- Uncheck the Graphics Drivers (The drivers included may be outdated, and using the latest Game Ready driver 572.42 is recommended).
⚡ Solution Overview
To get Fooocus working with your NVIDIA 5090, you’ll need to install a custom version of PyTorch and Torchvision that supports CUDA 12.8. Here’s how to do it:
1. 🔗 Download Compatible PyTorch and Torchvision
2. 📂 Locate the Virtual Environment
- Find the virtual environment used by Fooocus. It’s usually here:
C:\Users\*your_username*\AppData\Roaming\StabilityMatrix\Packages\Fooocus\venv\scripts
- Navigate to this folder using File Explorer.
3. 💻 Open Command Prompt in the Correct Directory
- In File Explorer, click on the path bar (where the folder path is displayed).
- Type
cmd and press Enter. This opens Command Prompt directly in that folder.
4. ✅ Activate the Virtual Environment
In the Command Prompt, type:
You should see something like (venv) at the start of the command line.
5. 📥 Install PyTorch and Torchvision
- Go to the folder where you downloaded the
.whl files for PyTorch and Torchvision.
- Right-click on the PyTorch file and select Copy as path.
- In the Command Prompt, type:
pip install "paste your file path here"
- If it says a version is already installed, use:
pip install "paste your file path here" --force-reinstall
- Repeat for the Torchvision file:
pip install "torchvision file path"
Or, if needed:
pip install "torchvision file path" --force-reinstall
6. 🚫 Deactivate the Virtual Environment
Once the installation is complete, type:
This exits the virtual environment.
✅ Done!
Your Fooocus setup should now work without errors on your NVIDIA 5090 GPU with driver 572.42 Game Ready.
Proposal
⚙️ Solution for Fooocus on Windows with NVIDIA 50xx Series (Tested on 5090 with Driver 572.42 Game Ready)
This guide explains how to fix compatibility issues for Stability Matrix with Fooocus on Windows using an NVIDIA 50xx series GPU (like the 5090).
🔗 Prerequisites: CUDA 12.8
You need CUDA 12.8 installed on your system for this to work.
https://developer.nvidia.com/cuda-12-8-0-download-archive
During the installation:
⚡ Solution Overview
To get Fooocus working with your NVIDIA 5090, you’ll need to install a custom version of PyTorch and Torchvision that supports CUDA 12.8. Here’s how to do it:
1. 🔗 Download Compatible PyTorch and Torchvision
torchtorchvision2. 📂 Locate the Virtual Environment
3. 💻 Open Command Prompt in the Correct Directory
cmdand press Enter. This opens Command Prompt directly in that folder.4. ✅ Activate the Virtual Environment
In the Command Prompt, type:
You should see something like
(venv)at the start of the command line.5. 📥 Install PyTorch and Torchvision
.whlfiles for PyTorch and Torchvision.pip install "paste your file path here"pip install "paste your file path here" --force-reinstallpip install "torchvision file path"pip install "torchvision file path" --force-reinstall6. 🚫 Deactivate the Virtual Environment
Once the installation is complete, type:
This exits the virtual environment.
✅ Done!
Your Fooocus setup should now work without errors on your NVIDIA 5090 GPU with driver 572.42 Game Ready.