shap-e icon indicating copy to clipboard operation
shap-e copied to clipboard

will not install/work on google collab

Open snowy-the-arctic-fox opened this issue 1 year ago • 16 comments

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.

snowy-the-arctic-fox avatar May 09 '23 01:05 snowy-the-arctic-fox

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

Kabanosk avatar May 09 '23 06:05 Kabanosk

@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 .

Kabanosk avatar May 09 '23 06:05 Kabanosk

Try this @snowy-the-arctic-fox pip install git+https://github.com/openai/shap-e.git

jayanthd26 avatar May 09 '23 08:05 jayanthd26

thanks mate. will test it out soon

snowy-the-arctic-fox avatar May 10 '23 11:05 snowy-the-arctic-fox

Try this @snowy-the-arctic-fox pip install git+https://github.com/openai/shap-e.git

This works. Thanks so much @jayanthd26!

snowy-the-arctic-fox avatar May 10 '23 22:05 snowy-the-arctic-fox

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) 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`

snowy-the-arctic-fox avatar May 10 '23 22:05 snowy-the-arctic-fox

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`

Kabanosk avatar May 10 '23 22:05 Kabanosk

i do not think that is the problem. error occurs even with the equal sign.

snowy-the-arctic-fox avatar May 10 '23 23:05 snowy-the-arctic-fox

Can you copy and paste the code you have?

Kabanosk avatar May 11 '23 06:05 Kabanosk

Can you copy and paste the code you have?

yes and which file?

jayanthd26 avatar May 11 '23 07:05 jayanthd26

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

Kabanosk avatar May 11 '23 07:05 Kabanosk

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?

snowy-the-arctic-fox avatar May 11 '23 10:05 snowy-the-arctic-fox

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.

jayanthd26 avatar May 11 '23 10:05 jayanthd26

interesting. must be something to do with google colab? the ¨=" still shows that error

snowy-the-arctic-fox avatar May 11 '23 14:05 snowy-the-arctic-fox

Can you copy code cells you have?

Edit: You can try my notebook? Link

Kabanosk avatar May 11 '23 15:05 Kabanosk

interesting. the code that you have works fine. but the original example fails.

snowy-the-arctic-fox avatar May 11 '23 19:05 snowy-the-arctic-fox