Code Monkey home page Code Monkey logo

Comments (3)

zhangmozhe avatar zhangmozhe commented on July 19, 2024

Maybe you can do the simplest test in python:

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

If cuda cannot be detected by torch, maybe you can try

import torch
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
print(torch.cuda.is_available())

from bringing-old-photos-back-to-life.

west5211 avatar west5211 commented on July 19, 2024

Maybe you can do the simplest test in python:

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

If cuda cannot be detected by torch, maybe you can try

import torch
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
print(torch.cuda.is_available())

thank for the replay,my cuda looks normal

(venv) dash@dash-KVM:~/Bringing-Old-Photos-Back-to-Life-master$ python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import torch
print(torch.cuda.is_available())
True
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
print(torch.cuda.is_available())
True

from bringing-old-photos-back-to-life.

zhangmozhe avatar zhangmozhe commented on July 19, 2024

Maybe you can try to run with --GPU -1. Or you can raise the issue in the official PyTorch repo as it seems the problem of PyTorch installation.

from bringing-old-photos-back-to-life.

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.