Deep-Learning-PanSharpening icon indicating copy to clipboard operation
Deep-Learning-PanSharpening copied to clipboard

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

Open Jamesdebaba opened this issue 10 months ago • 0 comments

您好,我在运行_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) 请问怎么解决呢?十分感谢

Jamesdebaba avatar Apr 06 '24 13:04 Jamesdebaba