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

训练验证的一些问题 #8

Closed
xiaoyuan1996 opened this issue Oct 17, 2021 · 6 comments
Closed

训练验证的一些问题 #8

xiaoyuan1996 opened this issue Oct 17, 2021 · 6 comments

Comments

@xiaoyuan1996
Copy link

您好,感谢您的工作为去雾工作提供了一个很好的框架,我们向您表示真诚的感谢。在复现您的代码时,我们直接使用了您所提供的FFA预训练模型PSD-FFANET,加载后用来对RESIDE/SOTS/indoor进行验证,但验证结果十分不理想。中间有什么bug方便说一下吗?

我们仅进行了如下修改:
1.由于RESIDE/SOTS/indoor内的clear和hazy尺寸不对应,我们对真值进行了resize:

    H, W, C = np.shape(haze_img)
    gt_img = gt_img.resize((W, H), Image.ANTIALIAS)

2.其他的修改都是程序运行的修改。

另外是否方便对代码的错误进行一些修改并进行提交,如

  1. utilis.py 第 112 行 应改为: dehaze = net(haze, haze_A, True)
  2. utilis.py 96、97行 代码应该隐去
  3. ......

再次感谢您的贡献。

@zychen-ustc
Copy link
Owner

您好!非常抱歉这么晚才回复。请问您能展示一些不理想的结果图片吗?我猜测可能是处理数据的过程出现了问题。

@xiaoyuan1996
Copy link
Author

Date: 2021-10-16 23:04:22s, Time_Cost: 4230s, Epoch: [1/20], Train_PSNR: 25.57, Val_PSNR: 12.83, Val_SSIM: 0.6736
Date: 2021-10-17 00:14:56s, Time_Cost: 4233s, Epoch: [2/20], Train_PSNR: 27.18, Val_PSNR: 12.60, Val_SSIM: 0.6624
Date: 2021-10-17 01:25:30s, Time_Cost: 4235s, Epoch: [3/20], Train_PSNR: 28.84, Val_PSNR: 12.26, Val_SSIM: 0.6462
Date: 2021-10-17 02:36:02s, Time_Cost: 4232s, Epoch: [4/20], Train_PSNR: 29.62, Val_PSNR: 12.47, Val_SSIM: 0.6576
Date: 2021-10-17 03:46:32s, Time_Cost: 4230s, Epoch: [5/20], Train_PSNR: 30.62, Val_PSNR: 12.74, Val_SSIM: 0.6707
Date: 2021-10-17 04:57:03s, Time_Cost: 4230s, Epoch: [6/20], Train_PSNR: 31.25, Val_PSNR: 12.33, Val_SSIM: 0.6527
Date: 2021-10-17 06:07:32s, Time_Cost: 4229s, Epoch: [7/20], Train_PSNR: 31.68, Val_PSNR: 12.42, Val_SSIM: 0.6555
Date: 2021-10-17 07:18:05s, Time_Cost: 4233s, Epoch: [8/20], Train_PSNR: 32.59, Val_PSNR: 12.46, Val_SSIM: 0.6585
Date: 2021-10-17 08:28:38s, Time_Cost: 4233s, Epoch: [9/20], Train_PSNR: 32.78, Val_PSNR: 12.55, Val_SSIM: 0.6610
Date: 2021-10-17 09:39:11s, Time_Cost: 4234s, Epoch: [10/20], Train_PSNR: 33.52, Val_PSNR: 12.35, Val_SSIM: 0.6524
Date: 2021-10-17 10:49:44s, Time_Cost: 4233s, Epoch: [11/20], Train_PSNR: 34.26, Val_PSNR: 12.47, Val_SSIM: 0.6570
Date: 2021-10-17 12:00:19s, Time_Cost: 4235s, Epoch: [12/20], Train_PSNR: 34.60, Val_PSNR: 12.52, Val_SSIM: 0.6583
Date: 2021-10-17 13:10:58s, Time_Cost: 4239s, Epoch: [13/20], Train_PSNR: 35.25, Val_PSNR: 12.55, Val_SSIM: 0.6596
Date: 2021-10-17 14:21:42s, Time_Cost: 4243s, Epoch: [14/20], Train_PSNR: 35.57, Val_PSNR: 12.47, Val_SSIM: 0.6568
Date: 2021-10-17 22:22:51s, Time_Cost: 5649s, Epoch: [1/20], Train_PSNR: 33.87, Val_PSNR: 14.03, Val_SSIM: 0.6331
Date: 2021-10-17 23:57:00s, Time_Cost: 5649s, Epoch: [2/20], Train_PSNR: 34.73, Val_PSNR: 14.16, Val_SSIM: 0.6440
Date: 2021-10-18 01:31:09s, Time_Cost: 5649s, Epoch: [3/20], Train_PSNR: 35.13, Val_PSNR: 14.85, Val_SSIM: 0.6636
Date: 2021-10-18 03:05:21s, Time_Cost: 5652s, Epoch: [4/20], Train_PSNR: 35.55, Val_PSNR: 17.17, Val_SSIM: 0.7079
Date: 2021-10-18 04:39:33s, Time_Cost: 5652s, Epoch: [5/20], Train_PSNR: 36.00, Val_PSNR: 13.28, Val_SSIM: 0.5955
Date: 2021-10-18 06:13:46s, Time_Cost: 5653s, Epoch: [6/20], Train_PSNR: 36.29, Val_PSNR: 15.29, Val_SSIM: 0.6785
Date: 2021-10-18 07:48:03s, Time_Cost: 5657s, Epoch: [7/20], Train_PSNR: 36.62, Val_PSNR: 14.56, Val_SSIM: 0.6375
Date: 2021-10-18 09:22:24s, Time_Cost: 5661s, Epoch: [8/20], Train_PSNR: 36.83, Val_PSNR: 14.44, Val_SSIM: 0.6303
Date: 2021-10-18 10:56:37s, Time_Cost: 5653s, Epoch: [9/20], Train_PSNR: 37.10, Val_PSNR: 14.16, Val_SSIM: 0.6150
Date: 2021-10-18 12:30:57s, Time_Cost: 5660s, Epoch: [10/20], Train_PSNR: 37.44, Val_PSNR: 15.66, Val_SSIM: 0.6616
Date: 2021-10-18 14:05:37s, Time_Cost: 5680s, Epoch: [11/20], Train_PSNR: 37.74, Val_PSNR: 14.69, Val_SSIM: 0.6432

train精度在训练时是上升的 , 然而val一直不对

@zychen-ustc
Copy link
Owner

我认为很有可能是train和validation过程的数据预处理pipeline出现了不对齐的情况,导致性能下降,你可以检查一下。

@xuyj-DL
Copy link

xuyj-DL commented Apr 30, 2022

请问您解决了么,我用作者预训练微调的FFA,再SOTS-indoor上效果也不理想,仅仅是用作者提供的测试文件,这是我哪一步出错了吗。

@zychen-ustc
Copy link
Owner

您好,您可以提供一些failure cases吗

@xuyj-DL
Copy link

xuyj-DL commented Oct 11, 2022 via email

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

3 participants