ashawkey / stable-dreamfusion

Text-to-3D & Image-to-3D & Mesh Exportation with NeRF + Diffusion.
Apache License 2.0
8.2k stars 721 forks source link

RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain. #20

Closed Qualzz closed 1 year ago

Qualzz commented 1 year ago

Hello, I have this issue running thepython main.py --text "a hamburger" --workspace trial -O command.

I have the latest CUDA drivers and Cuda 11.8.1 installed. ( WSL 2 )

GPU: 3090

ashawkey commented 1 year ago

@Qualzz Hi, have you tried this?

thuanz123 commented 1 year ago

best thing is to start with same pytorch and cuda from the README image

Qualzz commented 1 year ago

@Qualzz Hi, have you tried this?

Yes, that's how I ended with the 11.8 version.

Long story short despite having the correct pytorch/cuda combo, I had some conflict between my base environnement and the one I used for dreamfusion. It used the wrong version of cuda.

Despite several reinstallation/cleaning, uninstallation of anaconda/conda, bunch of restarts, pytorch reinstall/cuda/nvidia drivers reinstall, I wasnt able to use it.

I've spent a few hours trying to fix my installation, and out of nowhere, my last attempt of reinstalling pytorch ( with the exact same commands I used 10 times already ) now worked.

So I can now close this issue. Thank you 👍