Comments (5)
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.
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.
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.
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.
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)
- Why do I get this error when I add my own photo
- MemoryError
- 代码里好多错误,pix2pixHD_model_DA.py里面的netE是什么了?
- how can I use my own model
- 很多很多问题,应该是没有再维护了
- 尝试从google.protobuf.internal模块导入名为'builder'的子模块时出现了问题
- Not working HOT 2
- Out of memory error
- : unrecognized arguments HOT 1
- Deprecated dependencies detected
- refined dockerfile HOT 2
- How can I use the GPU on the macbook(m1) ?
- No errors, but output images are blank/white
- IndexError: list index out of range (model on replicate.com) HOT 2
- cast error - line 219 in align_warp_back_multiple_dlib.py, using Python 3.10.12 HOT 1
- GUI warns it has gone commercial and a licence will be required
- Dlib dir
- Global and Face_Enhancement weights: Public access is not permitted on this storage account. HOT 1
- "Restore the photos with scratches" section fails with **"FileNotFoundError: [Errno 2] No such file or directory: '/content/photo_restoration/Global/checkpoints/detection/FT_Epoch_latest.pt'"** HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bringing-old-photos-back-to-life.