Spaces:
Runtime error
I can't get it to work locally on my PC
Hi!
I can't get it to work on my Windows 11 Pro system, and I don't know what I'm doing wrong. Could you please take a look at what I do and advise?
- git lfs install
- git clone https://huggingface.co/spaces/radames/Enhance-This-HiDiffusion-SDXL
- python -m venv .env
- ..env\Scripts\activate
- pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
- pip install -r requirements.txt
- pip install mediapipe
- pip install streamlit
- streamlit run app.py
The result:
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.1.30:8501
2024-05-26 19:11:06.061 Uncaught app exception
Traceback (most recent call last):
File "C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in run_script
exec(code, module.dict)
File "C:\Enhance-This-HiDiffusion-SDXL\app.py", line 1, in
import spaces
File "C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces_init.py", line 10, in
from .zero.decorator import GPU
File "C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces\zero\decorator.py", line 21, in
from .wrappers import regular_function_wrapper
File "C:\Enhance-This-HiDiffusion-SDXL.env\lib\site-packages\spaces\zero\wrappers.py", line 15, in
from multiprocessing.context import ForkProcess
ImportError: cannot import name 'ForkProcess' from 'multiprocessing.context' (C:\Users\lirex.pyenv\pyenv-win\versions\3.10.11\lib\multiprocessing\context.py)
Any advise will be appreciated, thanks!
I forgot to say that my GPU is Nvidia 4090.
I did it! Two days of constant trials and errors but it's working! And it's all local and works perfectly offline, nothing is pulled from the internet! :-)