-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples/optimal-performance/multi.py script not working. RuntimeError: Cannot re-initialize CUDA in forked subprocess. #21
Comments
I'm having the same issue on:
|
I realized that I used a different version of CUDA (with CUDA 12.2) while the documentation recommends CUDA12.1 or CUDA 11.8. conda create -n streamdiffusion python=3.10
conda activate streamdiffusion
conda install -c "nvidia/label/cuda-12.1.0" cuda # this is the crucial step!
pip3 install torch==2.1.0 torchvision==0.16.0 xformers --index-url https://download.pytorch.org/whl/cu121
git clone https://github.com/cumulo-autumn/StreamDiffusion.git
python setup.py develop easy_install streamdiffusion[tensorrt]
python -m streamdiffusion.tools.install-tensorrt
python txt2img/single.py --output output.png --prompt "A cat with a hat" |
me too. |
Thanks, you are right. Please check if the CUDA version, torch version and cuDNN version match. https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html |
Thanks. This solves my problem. Works like a charm. |
Environment
Problem description
After typing in
python optimal-performance/multi.py
orpython optimal-performance/single.py
as per instruction, this problem occurs:The text was updated successfully, but these errors were encountered: