Code Monkey home page Code Monkey logo

Comments (5)

anudeepadi avatar anudeepadi commented on July 19, 2024

Hey @Arifi,

Based on the output: Your PyTorch isn't talking to CUDA. Make sure your GPU's CUDA-compatible, then reinstall PyTorch with CUDA enabled.
_cuda_setDevice Error: Sort out this issue, and it will likely go away.

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

Arifi avatar Arifi commented on July 19, 2024

Hey @anudeepadi , thanks for response, I thought this repo was dead...
My GPU is CUDA compatible and I fellowed all steps, can you tell me how I can reinstall PyTorch with CUDA enabled ? I'm asking because all my tries did nothing..

I've ComfyUI working well, also tested GFPGAN which has same issue, but when I run it under conda consol it works fine, but this one no. any help ?

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

Arifi avatar Arifi commented on July 19, 2024

0Hi @anudeepadi , maybe this could help :

(base) C:\Users\Mourad>python -c "import torch; print(torch.cuda.device_count())"
0

(base) C:\Users\Mourad>python -c "import torch; print(torch.rand(2,3).cuda())"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Mourad\anaconda3\Lib\site-packages\torch\cuda\__init__.py", line 239, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

(base) C:\Users\Mourad>

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

Arifi avatar Arifi commented on July 19, 2024

Also :

(base) C:\Users\Mourad>nvidia-smi
Wed Aug 30 14:30:38 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 536.67                 Driver Version: 536.67       CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                     TCC/WDDM  | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060      WDDM  | 00000000:0C:00.0  On |                  N/A |
|  0%   52C    P8              10W / 170W |    679MiB / 12288MiB |      6%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

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

Arifi avatar Arifi commented on July 19, 2024

Hi,

Ths commande solved my issue, instead of the default one:
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121

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.