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

为啥有的图片可以运行,有的图片会报错呢 #88

Open
tcoln opened this issue Mar 25, 2024 · 2 comments
Open

为啥有的图片可以运行,有的图片会报错呢 #88

tcoln opened this issue Mar 25, 2024 · 2 comments

Comments

@tcoln
Copy link

tcoln commented Mar 25, 2024

python tools/custom.py --a 'pidnet-s' --p './pretrained_models/cityscapes/PIDNet_S_Cityscapes_test.pt' --t '.png'

报错信息:
Traceback (most recent call last):
File "tools/custom.py", line 94, in
pred = model(img)
File "/mnt/data/glt/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/mnt/data/glt/safep/ponding/PIDNet/tools/../models/pidnet.py", line 149, in forward
x_d = x_d + F.interpolate(
RuntimeError: The size of tensor a (209) must match the size of tensor b (208) at non-singleton dimension 2

报错图片:链接:https://pan.baidu.com/s/1tloW25TLcR69xglzwcIPtQ 提取码:1234

@qmm1234
Copy link

qmm1234 commented Mar 31, 2024

您好,请问您在cityscapes数据集上训练的时候有没有遇到这种情况以及如何解决的:loss不收敛且semantic loss 和 sb loss一直为0 ?如果没有遇到的话,请问您训练时的参数如何设置的?
微信图片_20240331103215

@sym330
Copy link

sym330 commented Jul 2, 2024

same error

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