shap-e
shap-e copied to clipboard
will not install/work on google collab
the install package pip install -e.
will not work and fails to install, causing the entire thing to fail. this happens on all example projects.
What error did you get? And what is your file structure in Google colab? I've run all of the example projects so I can help
@snowy-the-arctic-fox I added this code cell at the beginning:
!git clone https://github.com/openai/shap-e
!mv shap-e/* .
!pip install -e .
Try this @snowy-the-arctic-fox
pip install git+https://github.com/openai/shap-e.git
thanks mate. will test it out soon
Try this @snowy-the-arctic-fox
pip install git+https://github.com/openai/shap-e.git
This works. Thanks so much @jayanthd26!
One smaller issue. In a part of the code that contains the batch size, guidance scale, and prompt, i get this error message
`NameError Traceback (most recent call last)
NameError: name 'latents' is not defined`
You have double equal signs (==). Change it to a single one (=), and I think it should work
----> 5 latents == sample_latents( 6 batch_size=batch_size, 7 model=model,
NameError: name 'latents' is not defined`
i do not think that is the problem. error occurs even with the equal sign.
Can you copy and paste the code you have?
Can you copy and paste the code you have?
yes and which file?
In file where he have this error:
`NameError Traceback (most recent call last)
in <cell line: 5>() 3 prompt = "a shark" 4 ----> 5 latents == sample_latents( 6 batch_size=batch_size, 7 model=model, NameError: name 'latents' is not defined`
Only code from the cell where this error occurred
I think it is the examples/sample_text_to_3d.ipynb
it is the sample_text_to_3D file. Since i am new to these things, i do not typically know what i am doing most of the time. is latents an attribute of a module i have not installed yet?
it is the sample_text_to_3D file. Since i am new to these things, i do not typically know what i am doing most of the time. is latents an attribute of a module i have not installed yet?
It is just a variable and it's an assignment so you shouldn't be getting that error if u have used '=' operator as @Kabanosk mentioned.
interesting. must be something to do with google colab? the ¨=" still shows that error
interesting. the code that you have works fine. but the original example fails.