Skip to content

Commit

Permalink
add arch: ARCNN, DCAD, RBQE, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanxingql committed Sep 25, 2024
1 parent 299033f commit e68fc9f
Show file tree
Hide file tree
Showing 19 changed files with 2,563 additions and 2 deletions.
51 changes: 51 additions & 0 deletions options/test/ARCNN/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# general settings
name: test_ARCNN_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: ARCNN
io_channels: 3
mid_channels_1: 64
mid_channels_2: 32
mid_channels_3: 16

# path
path:
pretrain_network_g: experiments/train_ARCNN_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
50 changes: 50 additions & 0 deletions options/test/DCAD/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# general settings
name: test_DCAD_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: DCAD
io_channels: 3
mid_channels: 64
num_blocks: 8

# path
path:
pretrain_network_g: experiments/train_DCAD_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
50 changes: 50 additions & 0 deletions options/test/DnCNN/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# general settings
name: test_DnCNN_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: DnCNN
io_channels: 3
mid_channels: 64
num_blocks: 15

# path
path:
pretrain_network_g: experiments/train_DnCNN_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
52 changes: 52 additions & 0 deletions options/test/MPRNet/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# general settings
name: test_MPRNet_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: MPRNet
io_channels: 3
n_feat: 16
scale_unetfeats: 16
scale_orsnetfeats: 16
num_cab: 4

# path
path:
pretrain_network_g: experiments/train_MPRNet_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
51 changes: 51 additions & 0 deletions options/test/RBQE/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# general settings
name: test_RBQE_nonblind_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: RBQE
nf_io: 3
nf_base: 32
if_only_last_output: True
# comp_type: hevc

# path
path:
pretrain_network_g: experiments/train_RBQE_nonblind_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
53 changes: 53 additions & 0 deletions options/test/RDN/DIV2K_LMDB_G1_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# general settings
name: test_RDN_DIV2K_LMDB_G1_latest
model_type: SRModel
scale: 1
num_gpu: 1 # set num_gpu: 0 for cpu mode
manual_seed: 0

# dataset settings
datasets:
test: # multiple test datasets are acceptable
name: DIV2K
type: PairedImageDataset
dataroot_gt: datasets/DIV2K/valid
dataroot_lq: datasets/DIV2K/valid_BPG_QP37
io_backend:
type: disk

# network structures
network_g:
type: RDN
rescale: 1
io_channels: 3
mid_channels: 32
num_blocks: 4
num_layers: 4
channel_growth: 32

# path
path:
pretrain_network_g: experiments/train_RDN_DIV2K_LMDB_G1/models/net_g_latest.pth
param_key_g: params_ema # load the ema model
strict_load_g: true

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

metrics:
psnr:
type: pyiqa
ssim:
type: pyiqa
lpips:
type: pyiqa
clipiqa+:
type: pyiqa
topiq_fr:
type: pyiqa
musiq:
type: pyiqa
wadiqam_fr:
type: pyiqa
Loading

0 comments on commit e68fc9f

Please sign in to comment.