Coder Social home page Coder Social logo

_get_cuda_arch_flags() error about draggan HOT 8 CLOSED

opengvlab avatar opengvlab commented on July 23, 2024
_get_cuda_arch_flags() error

from draggan.

Comments (8)

fuadmefleh avatar fuadmefleh commented on July 23, 2024

The top of the error likely mentions that you have no CUDA runtime installed.

$ python gradio_app.py

No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7'

from draggan.

hnsigma avatar hnsigma commented on July 23, 2024

I defo have cuda installed, and tried various versions, I tried using conda also, always the same error. Is there an environment setup I need to do perhaps that didn't happen automatically with the install?

from draggan.

Zeqiang-Lai avatar Zeqiang-Lai commented on July 23, 2024

It should run without any special setup. Could you run the following snippet with python interpreter at your env and see if it print True ?

import torch
print(torch.cuda.is_available())

from draggan.

hnsigma avatar hnsigma commented on July 23, 2024

I get false, which is very strange, I have installed cuda several times now. Apologies for my errors! could it be an environment variable issue?

from draggan.

Zeqiang-Lai avatar Zeqiang-Lai commented on July 23, 2024

It might be, but I could not give a certain answer. Another option is to use our online colab demo where you could obtain a free GPU from google.

from draggan.

genecyber avatar genecyber commented on July 23, 2024

online collab demo is throwing the same error.

from draggan.

Zeqiang-Lai avatar Zeqiang-Lai commented on July 23, 2024

online collab demo is throwing the same error.

Did you select a GPU via Runtime/Change runtime type ?

from draggan.

d8ahazard avatar d8ahazard commented on July 23, 2024

Probably need to add "--extra-index-url https://download.pytorch.org/whl/cu118" to the top of the requirements.txt file so that it knows to install torch+cuda, versus just torch. ;)

Or, more specifically, you need to ensure your installed torch version includes "+cu118" or whichever version of the CUDA toolkit you have installed.

image

from draggan.

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.