GithubHelp home page GithubHelp logo

Not working with CPU getting error "OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root." about gpen HOT 8 OPEN

yangxy avatar yangxy commented on July 19, 2024 1
Not working with CPU getting error "OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root."

from gpen.

Comments (8)

rubo77 avatar rubo77 commented on July 19, 2024

set the CUDA_HOME manually:
https://stackoverflow.com/questions/46064433/cuda-home-path-for-tensorflow

but it seems, I have to install python3-pycuda, which is about 4GB large.

is this needed?

from gpen.

yangxy avatar yangxy commented on July 19, 2024

I have never tried to run GPEN with CPU. I will have a try after my annual leave.

from gpen.

rubo77 avatar rubo77 commented on July 19, 2024

How so you decide if you use CPU or GPU?
(I have an Nvidia and an internal Intel graphics)

from gpen.

yangxy avatar yangxy commented on July 19, 2024

I am afraid GPEN does not work with CPU in the current form. Please refer to https://github.com/rosinality/stylegan2-pytorch.

from gpen.

rubo77 avatar rubo77 commented on July 19, 2024

I have an NVIDIA GPU in my laptop, so How can I tell the script to use it? And what are the needed debian packages I have to install to get it running?

You should add some more information to the Readme about the needed packages

from gpen.

yangxy avatar yangxy commented on July 19, 2024

I have an NVIDIA GPU in my laptop, so How can I tell the script to use it? And what are the needed debian packages I have to install to get it running?

You should add some more information to the Readme about the needed packages

Please check the README.md carefully and make sure you have installed python==3.7.4, pytorch==1.7.0, cuda==10.2.89, NVIDIA driver==460.73.01, gcc==7.5.0. You should also install packages listed in the requirements.txt.

from gpen.

rubo77 avatar rubo77 commented on July 19, 2024

I have gcc 8 installed, are those the minimum requirements >= or must they be exactly that package == ? what is the package-name, you have to install for cuda? there are 20 different packages containing "cuda" is the needed package nvidia-cuda-toolkit? And I only have a package python3-torch

from gpen.

rubo77 avatar rubo77 commented on July 19, 2024

I see! You need pip to install the required packages:

pip install -r requirements.txt

But I found out, that you need A LOT OF DISK-SPACE for this installation:

ninja:
1.4 MB
numpy:
120 MB
opencv-python:
724 MB
pillow:
137 MB
scikit-image:
7.4 MB
torch:
4772 MB
torchvision:
153 MB

which sums up to about 6GB!!

Would it be possible to minimize this somehow?

from gpen.

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.