GlassyWu / AECR-Net

Contrastive Learning for Compact Single Image Dehazing, CVPR2021
339 stars 48 forks source link

Open source code seems to be wrong//开源代码似乎是错误的 #36

Open Bruce-WangGF opened 1 year ago

Bruce-WangGF commented 1 year ago

Open source code seems to be problematic, e.g. : x1 = self.block(x_down3) x2 = self.block(x1) x3 = self.block(x2) x4 = self.block(x3) x5 = self.block(x4) x6 = self.block(x5) Does this mean that the FABlock of the network is sharing weights? So should it be 1 instead of 6 as stated in the paper, after all the comparison FFANet is not shared. We simply changed the organisation of the dataset: from h5 format to direct feeding of jpg images, and the use of DCNs from MMCV-Full instead of those provided by the authors, yielding results that are only 60% of the paper's results. If shared weights are used, then the number of participants is consistent with the paper but extremely poor, and if no weights are shared, then the number of participants is increased by a factor of 4. What is the problem, please? Looking forward to your answer 开源的代码似乎是有问题的,如: 这里的意思是网络的FABlock是共享权重的么?那么是否应该是1个,而不是论文中说的6个,毕竟对比的FFANet并不是共享的。 x1 = self.block(x_down3) x2 = self.block(x1) x3 = self.block(x2) x4 = self.block(x3) x5 = self.block(x4) x6 = self.block(x5) 我们仅仅是改变了数据集的组织方式:由h5格式改为直接喂入jpg图像,以及使用MMCV-Full的DCN代替作者提供的DCN,得到的结果只有论文结果的60%。 如果使用共享权重,那么参数量和论文一致但是效果极差,如果不共享权重,那么参数量增加4倍。 请问是什么问题呢?期待您的回答