Zhaozixiang1228 / MMIF-CDDFuse

[CVPR 2023] Official implementation for "CDDFuse: Correlation-Driven Dual-Branch Feature Decomposition for Multi-Modality Image Fusion."
416 stars 40 forks source link

进行test_IVF.py时候出现了问题:OSError:cannot write mode F as PNG,之后我在PngImagePlugin.py的save方法里面将F模式转为RGB,之后又出现新的报错:AttributeError:encoderinfo,加了确保encoderinfo存在的代码,又出现报错还是题型我图片格式有问题,该怎么解决呢?希望各位帮帮我 #50

Open joyyy111 opened 2 months ago

joyyy111 commented 2 months ago

d535cd16bc280004bd066ff9b9af9869

joyyy111 commented 2 months ago

最开始的错误就是提示我说:OSError:cannot write mode F as PNG

Zshuting commented 2 months ago

我是在img_read_save的img_save最后一行上面添加image = image.astype(np.uint8) 后面就没有报错了

fkalltn commented 3 weeks ago

我是在img_read_save的img_save最后一行上面添加image = image.astype(np.uint8) 后面就没有报错了

感谢!直接解决了!

zhou770 commented 2 weeks ago

在evaluator里面的ssim加上data_range=255