Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to get argmax of an empty sequence #13

Open
semel1 opened this issue Jun 22, 2022 · 2 comments
Open

attempt to get argmax of an empty sequence #13

semel1 opened this issue Jun 22, 2022 · 2 comments

Comments

@semel1
Copy link

semel1 commented Jun 22, 2022

Upon running "main_IRT.py", got an error:

Exception has occurred: ValueError
attempt to get argmax of an empty sequence
  File "D:\colorization\deep-video-prior-master-pytorch\main_IRT.py", line 49, in <module>
    for x in subprocess.Popen("nvidia-smi -q -d Memory | grep -A4 GPU | grep Free", shell=True, stdout=subprocess.PIPE).stdout.readlines()]))

Happened in both Windows 10 and WSL2
Nvidia RTX 3090

@yzxing87
Copy link
Owner

yzxing87 commented Jun 23, 2022

Seems something went wrong with your GPU driver. Is 'nvidia-smi' normal on your machine? Anyway, you can comment out line 49, and replace it with os.environ["CUDA_VISIBLE_DEVICES"]="0", for simplicity.

@semel1
Copy link
Author

semel1 commented Jun 23, 2022

Here report from nviia-sm on Windows 10 and WSL2i:

nvidia_smi

Anyway comment out line 49 only and replace it with os.environ["CUDA_VISIBLE_DEVICES"]="0", throws an error:

  File "main_IRT.py", line 50
    os.environ["CUDA_VISIBLE_DEVICES"] = '0'
     ^
SyntaxError: invalid syntax

However comment out both line 48 and 49 and replace them with os.environ["CUDA_VISIBLE_DEVICES"]="0" - did the job.
Thank you for your prompt responce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants