Code Monkey home page Code Monkey logo

Comments (16)

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024 1

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

This works. Thanks so much @jayanthd26!

from shap-e.

jayanthd26 avatar jayanthd26 commented on August 24, 2024 1

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.

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

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

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

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

from shap-e.

jayanthd26 avatar jayanthd26 commented on August 24, 2024

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

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

thanks mate. will test it out soon

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

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`

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

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`

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

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

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

Can you copy and paste the code you have?

from shap-e.

jayanthd26 avatar jayanthd26 commented on August 24, 2024

Can you copy and paste the code you have?

yes and which file?

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

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

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

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?

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

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

from shap-e.

Kabanosk avatar Kabanosk commented on August 24, 2024

Can you copy code cells you have?

Edit: You can try my notebook? Link

from shap-e.

snowy-the-arctic-fox avatar snowy-the-arctic-fox commented on August 24, 2024

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

from shap-e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.