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

inference错误 #24

Open
higherandy opened this issue Jan 1, 2025 · 3 comments
Open

inference错误 #24

higherandy opened this issue Jan 1, 2025 · 3 comments

Comments

@higherandy
Copy link

RuntimeError: Expected canUse32BitIndexMath(input) && canUse32BitIndexMath(output) to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)

感谢大佬分享代码,跑inference的时候报错,使用input下面的图片,task是deblur,能指导下?

@ZZZHANG-jx
Copy link
Owner

应该是你测试图像分辨率太大了,你试一下在读入图片后先做一个resize把分辨率降低

RuntimeError: Expected canUse32BitIndexMath(input) && canUse32BitIndexMath(output) to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)

感谢大佬分享代码,跑inference的时候报错,使用input下面的图片,task是deblur,能指导下?

@dreamlychina
Copy link

应该是你测试图像分辨率太大了,你试一下在读入图片后先做一个resize把分辨率降低

RuntimeError: Expected canUse32BitIndexMath(input) && canUse32BitIndexMath(output) to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
感谢大佬分享代码,跑inference的时候报错,使用input下面的图片,task是deblur,能指导下?

推荐的分辨率是多大?

@ZZZHANG-jx
Copy link
Owner

ZZZHANG-jx commented Jan 14, 2025

应该是你测试图像分辨率太大了,你试一下在读入图片后先做一个resize把分辨率降低

RuntimeError: Expected canUse32BitIndexMath(input) && canUse32BitIndexMath(output) to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
感谢大佬分享代码,跑inference的时候报错,使用input下面的图片,task是deblur,能指导下?

推荐的分辨率是多大?

推荐分辨率的话,针对去模糊任务,一般来说原始分辨率测试即可,如果超过支持的上限就下采样到能支持的最大分辨率。因为去模糊任务测试的TDD数据分辨率比较小,所以去模糊任务的前向部分我没有加上分辨率限制,根据我之前的测试,48G的显存测最高1600x1600是没问题的,所以你可以在前向上加上这个分辨率限制。

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

3 participants