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

你好 #19

Closed
Tmoork1996 opened this issue Feb 14, 2022 · 3 comments
Closed

你好 #19

Tmoork1996 opened this issue Feb 14, 2022 · 3 comments

Comments

@Tmoork1996
Copy link

根据你给的requirements我安装了环境,下载了UCTransNet-MoNuSeg.pth.tar的预训练模型,运行后它显示RuntimeError: don't know how to restore data location of torch.FloatStorage (tagged with CUDA)。我的CUDA是11.1版本

@McGregorWwww
Copy link
Owner

你好,建议检查一下是不是用CPU跑的测试文件,这篇博客可能会有帮助:https://www.cnblogs.com/xiaodai0/p/10413711.html

@Tmoork1996
Copy link
Author

你好,建议检查一下是不是用CPU跑的测试文件,这篇博客可能会有帮助:https://www.cnblogs.com/xiaodai0/p/10413711.html

谢谢,我在根据你提供的博客中更改后,又改了batch size,然后他又出现了下面这个问题
RuntimeError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 6.00 GiB total capacity; 2.09 GiB already allocated; 1.85 GiB free; 2.13 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
请问是不是我的显卡内存不够运行。

@McGregorWwww
Copy link
Owner

你好,建议检查一下是不是用CPU跑的测试文件,这篇博客可能会有帮助:https://www.cnblogs.com/xiaodai0/p/10413711.html

谢谢,我在根据你提供的博客中更改后,又改了batch size,然后他又出现了下面这个问题 RuntimeError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 6.00 GiB total capacity; 2.09 GiB already allocated; 1.85 GiB free; 2.13 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 请问是不是我的显卡内存不够运行。

是的,显存不太够

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