Closed JaeLee18 closed 1 year ago
What is your running command?
Hi,
I'm using the docker version and I'm getting the same RuntimeError on fantasia3d, ProlificDreamer, and dreamfusion-sd. dreamfusion-if and magic3d work as expected, the rest I have not tried yet.
I used the example prompts (e.g. dreamer@b7f0adb5acdb:~/threestudio$ python launch.py --config configs/fantasia3d.yaml --train --gpu 0 system.prompt_processor.prompt="a DSLR photo of an ice cream sundae" system.renderer.context_type=cuda
) with the addition of setting the renderer to cuda as docker does not support the opengl one.
Hi,
I fixed the issue by replacing https://github.com/threestudio-project/threestudio/blob/main/threestudio/models/prompt_processors/stable_diffusion_prompt_processor.py#L91
with text_embeddings = text_encoder(tokens.input_ids.to(text_encoder.device))[0]
Thanks a lot that works!
I will check whether this also shows in the normal terminal. I guess it may be related to docker environment.
I also encountered this issue. And it was in normal terminal. But only with newly created enviroment (with the same code). So it is quite strange.
I had the same issue in the docker provided. The fix by @rotabulo worked.
Finally, I could reproduce the error after updating the module:
transformers-4.28.1 -> 4.31.0
along with some update for compatibility:
huggingface-hub-0.13.4 -> 0.16.4
safetensors-0.3.1 newly installed
accelerate-0.18.0 -> 0.21.0
will fix in the next commit. It seems that tramsformers
has changed some related codes.
Thank you @rotabulo for the solution and thank you all to find the stupid bug.
Should fixed in #258. We also recommend you use transformers==4.28.1
to avoid potential errors when using DeepFloyd.
Hello,
I installed the requirements from a fresh system but I am getting the runtime error: I am using Cuda 11.8, Python3.0 PyTorch 2.0.1+cu118