xinntao / ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
https://github.com/xinntao/BasicSR
Apache License 2.0
5.86k stars 1.04k forks source link

Error: Found no NVIDIA driver on your system #3699 #136

Open clonesangram87 opened 1 year ago

clonesangram87 commented 1 year ago

Hi,

I have raised an issue in google colab about running ESRGAN. Below is the issue I am facing and received a response from them. Kindly let me know the answer google colab have asked.

Describe the current behavior: While running the below command I am getting error: Found no NVIDIA driver on your system came when running test.py file I am trying to run the below:

!git clone https://github.com/xinntao/ESRGAN !cd ESRGAN

!python /content/ESRGAN/test.py

Traceback (most recent call last): File "/content/ESRGAN/test.py", line 17, in model = model.to(device) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1145, in to return self._apply(convert) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 797, in _apply module._apply(fn) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 820, in _apply param_applied = fn(param) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) File "/usr/local/lib/python3.10/dist-packages/torch/cuda/init.py", line 247, in _lazy_init torch._C._cuda_init() RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

I am connected to GPU Below is the Cuda details found:

!nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0

**Response from Google colab:

I can see that most of the code in the above mentioned repo is 4-5 years old. Can you confirm with the repo owner that it is compatible with the Colab's current ecosystem, especially with torch 2.0.**