We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If offload_to_cpu parameter is TRUE and torch.cuda.is_available()==false, the script throws an error msg:
torch.cuda.is_available()==false
"TypeError '<' not supported between instances of 'NoneType' and 'int'
The error is caused by line 282 in inference.py:
offload_to_cpu = False if not args.offload_to_cpu else get_total_gpu_memory() < 30
To fix this, get_total_gpu_memory() should probably return 0 instead of None if CUDA is not available.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. We will fix this.
Sorry, something went wrong.
yoavhacohen
No branches or pull requests
If offload_to_cpu parameter is TRUE and
torch.cuda.is_available()==false
, the script throws an error msg:"TypeError '<' not supported between instances of 'NoneType' and 'int'
The error is caused by line 282 in inference.py:
offload_to_cpu = False if not args.offload_to_cpu else get_total_gpu_memory() < 30
To fix this, get_total_gpu_memory() should probably return 0 instead of None if CUDA is not available.
The text was updated successfully, but these errors were encountered: