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

RuntimeError: Given input size: (8x1x1). Calculated output size: (8x0x0). Output size is too small #5

Open
YuZheng9 opened this issue Dec 23, 2021 · 1 comment

Comments

@YuZheng9
Copy link

在运行main.py的时候报了这个错,用的是Haze4K数据集,看了下代码发现应该是common.py文件中的第277行class Down有问题,因为atmosphere map为size为(8,1,1,1),而代码里写了Maxpool2d(2)所以报错,我现在自己这里改了下对于atmosphere map设置了个检测,如果是atmosphere map就Maxpool2d(1),想问下作者你跑通的代码是怎么写的,我这么写会影响实验么

@janice459
Copy link

我也遇到了这个问题。

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