Open chrisbward opened 6 months ago
no dice - I tried 3.8, 3.9 and 3.10 virtual environments
Seems the torchmcubes was not properly installed.
Could you check the torch version and run pip install git+https://github.com/tatsy/torchmcubes.git
and try again?
pip install torch==2.2.1 --extra-index-url https://download.pytorch.org/whl/cu118
as per the Dockerfile on HF repo, and also;
pip install torch --extra-index-url https://download.pytorch.org/whl/cu121
I've given up, will probably need to run this in a Docker container to get it to work
wrapped it in the dockerfile and shared a couple of the volumes - shame it downloads the model every time I fire up the container - I might pull that out - nice work!
How to sovle it if I don't want to run in Docker?
#if torch.cuda.is_available():
# device = "cuda:0"
#
#else:
device = "cpu"
It will then use the CPU and not complain about CUDA
#if torch.cuda.is_available(): # device = "cuda:0" # #else: device = "cpu"
It will then use the CPU and not complain about CUDA
Could you please inform me that which file shoud I modify?
#if torch.cuda.is_available(): # device = "cuda:0" # #else: device = "cpu"
It will then use the CPU and not complain about CUDA
Could you please inform me that which file shoud I modify?
gradio_app.py
Probably 'WITH_CUDA' is not defined https://github.com/tatsy/torchmcubes/blob/master/cxx/mcubes.cpp#L36
Please refer to this answer to fix this problem. Have fun playing with TripoSR!
https://huggingface.co/spaces/stabilityai/TripoSR/blob/main/Dockerfile @chrisbward the dockerfile is 404, could you please pull it out, THX
This is from an virtualenv install for Python 3.9 on Ubuntu 20.04