GithubHelp home page GithubHelp logo

Stops at 0% at iteration. about shap-e HOT 11 OPEN

openai avatar openai commented on September 25, 2024
Stops at 0% at iteration.

from shap-e.

Comments (11)

moo-the-cow avatar moo-the-cow commented on September 25, 2024 1

I had the same issue I and resolved it:
it seems there were multiple possible conflicts. I had to make sure the CUDA version is the same as suggested on
https://pytorch.org/get-started/locally/
furthermore make sure to uninstall any existing torch versions

pip uninstall torch

and re-do the local installation steps from the url before in my case I was on windows running cuda 11.8 (archive)

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

edit: a little helper.
you have to see CUDA in the output or it will keep in stuck state.
test.py


import torch

# Check if PyTorch is using the GPU
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print(f"PyTorch is using: {device}")

# Print PyTorch version
print(f"PyTorch version: {torch.__version__}")

# Test a simple PyTorch tensor operation on the GPU
x = torch.tensor([2.0, 3.0], device=device)
y = torch.tensor([4.0, 5.0], device=device)
result = x * y
print(f"Result of tensor operation: {result}")

from shap-e.

ultmedi45 avatar ultmedi45 commented on September 25, 2024 1

resolved.
thanks @moo-the-cow

before

test.py

PyTorch is using: cpu
PyTorch version: 2.0.0+cpu
Result of tensor operation: tensor([ 8., 15.])

What I did.

pip uninstall torch

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

after

test.py

PyTorch is using: cuda
PyTorch version: 2.0.0+cu117
Result of tensor operation: tensor([ 8., 15.], device='cuda:0')

from shap-e.

Ceterminateniya avatar Ceterminateniya commented on September 25, 2024

I have the same problem.

from shap-e.

DutchMaxwell avatar DutchMaxwell commented on September 25, 2024

I was able to bypass the denoising by setting use_karras=False, but now I have this:
Bildschirmfoto 2023-05-05 um 19 49 11

from shap-e.

0xunderl0rd avatar 0xunderl0rd commented on September 25, 2024

Same issue...
Screenshot 2023-05-05 at 1 28 47 PM

from shap-e.

blackhatma avatar blackhatma commented on September 25, 2024

i was able to fix this by changing the runtime type to use a gpu on google colab, for what its worth

from shap-e.

DutchMaxwell avatar DutchMaxwell commented on September 25, 2024

i was able to fix this by changing the runtime type to use a gpu on google colab, for what its worth

This work fine. Yes.

from shap-e.

DutchMaxwell avatar DutchMaxwell commented on September 25, 2024

I had the same issue I and resolved it: it seems there were multiple possible conflicts. I had to make sure the CUDA version is the same as suggested on https://pytorch.org/get-started/locally/ furthermore make sure to uninstall any existing torch versions

pip uninstall torch

and re-do the local installation steps from the url before in my case I was on windows running cuda 11.8 (archive)

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

edit: a little helper. you have to see CUDA in the output or it will keep in stuck state. test.py


import torch

# Check if PyTorch is using the GPU
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print(f"PyTorch is using: {device}")

# Print PyTorch version
print(f"PyTorch version: {torch.__version__}")

# Test a simple PyTorch tensor operation on the GPU
x = torch.tensor([2.0, 3.0], device=device)
y = torch.tensor([4.0, 5.0], device=device)
result = x * y
print(f"Result of tensor operation: {result}")

No CUDA for Mac. :(

from shap-e.

Natotela avatar Natotela commented on September 25, 2024

PyTorch version: 2.0.0+cu117

specifically 117?

from shap-e.

Kabanosk avatar Kabanosk commented on September 25, 2024

@Natotela

by the way, any chance to run this on 8GB VRAM??

Maybe lowering the batch size will help, eg. batch_size = 1?

from shap-e.

moo-the-cow avatar moo-the-cow commented on September 25, 2024

@Natotela in my case I used cu118
maybe higher versions will also work, but I wanted to stick to the documentation guide

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.