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

ValueError: cannot reshape array of size 0 into shape (1,4,128,128) #5

Open
Jamesdebaba opened this issue Apr 6, 2024 · 0 comments

Comments

@Jamesdebaba
Copy link

您好,我在运行_test.py的时候,会出现如下报错,
Traceback (most recent call last):
File "F:\code\Deep-Learning-PanSharpening-main_test.py", line 293, in
fused_image = model.predict(used_ms[:, :, :], used_pan[:, :, :])
File "F:\code\Deep-Learning-PanSharpening-main\model\base_model.py", line 298, in predict
X = X.reshape(1, mul_channel, clip_size, clip_size)
ValueError: cannot reshape array of size 0 into shape (1,4,128,128)

我在base_model.py中输出了array_data_batch.shape,发现某一次循环中,输出结果为(129,0,4)
请问怎么解决呢?十分感谢

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

1 participant