Skip to content

Commit

Permalink
decide lower_better from pyiqa; remove FID and add new metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanxingql committed Sep 18, 2024
1 parent a4ff431 commit af103a4
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 63 deletions.
2 changes: 1 addition & 1 deletion basicsr
20 changes: 10 additions & 10 deletions options/test/ESRGAN/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ path:

# validation settings
val:
save_img: true
save_img: false
suffix: ~ # add suffix to saved images, if None, use exp name

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa
ssim:
type: calculate_ssim
crop_border: 0
test_y_channel: false
fid:
type: pyiqa
better: lower
lpips:
type: pyiqa
better: lower
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
20 changes: 13 additions & 7 deletions options/test/ESRGAN/RRDBNet_DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,21 @@ path:

# validation settings
val:
save_img: true
save_img: false
suffix: ~ # add suffix to saved images, if None, use exp name

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa
ssim:
type: calculate_ssim
crop_border: 0
test_y_channel: false
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
20 changes: 10 additions & 10 deletions options/test/RealESRGAN/DIV2K_LMDB_G2_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ path:

# validation settings
val:
save_img: true
save_img: False
suffix: ~ # add suffix to saved images, if None, use exp name

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa
ssim:
type: calculate_ssim
crop_border: 0
test_y_channel: false
fid:
type: pyiqa
better: lower
lpips:
type: pyiqa
better: lower
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
20 changes: 13 additions & 7 deletions options/test/RealESRGAN/RealESRNet_DIV2K_LMDB_G2_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,21 @@ path:

# validation settings
val:
save_img: true
save_img: False
suffix: ~ # add suffix to saved images, if None, use exp name

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa
ssim:
type: calculate_ssim
crop_border: 0
test_y_channel: false
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
20 changes: 10 additions & 10 deletions options/test/identity/DIV2K_G1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ path:

# validation settings
val:
save_img: true # save img -> tensor -> img version, which is lossy
save_img: false # save img -> tensor -> img version, which is lossy
suffix: ~ # add suffix to saved images, if None, use exp name

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa
ssim:
type: calculate_ssim
crop_border: 0
test_y_channel: false
fid:
type: pyiqa
better: lower
lpips:
type: pyiqa
better: lower
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
6 changes: 0 additions & 6 deletions options/train/ESRGAN/DIV2K_LMDB_G1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,9 @@ val:

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
fid:
type: pyiqa
better: lower
lpips:
type: pyiqa
better: lower

# logging settings
logger:
Expand Down
4 changes: 1 addition & 3 deletions options/train/ESRGAN/RRDBNet_DIV2K_LMDB_G1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ val:

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa

# logging settings
logger:
Expand Down
6 changes: 0 additions & 6 deletions options/train/RealESRGAN/DIV2K_LMDB_G2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,9 @@ val:

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
fid:
type: pyiqa
better: lower
lpips:
type: pyiqa
better: lower

# logging settings
logger:
Expand Down
4 changes: 1 addition & 3 deletions options/train/RealESRGAN/RealESRNet_DIV2K_LMDB_G2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ val:

metrics:
psnr:
type: calculate_psnr
crop_border: 0
test_y_channel: false
type: pyiqa

# logging settings
logger:
Expand Down

0 comments on commit af103a4

Please sign in to comment.