forked from PaddlePaddle/PaddleGAN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
633 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
total_iters: 600000 | ||
output_dir: output_dir | ||
find_unused_parameters: True | ||
checkpoints_dir: checkpoints | ||
use_dataset: True | ||
# tensor range for function tensor2img | ||
min_max: | ||
(0., 1.) | ||
|
||
model: | ||
name: BasicVSRModel | ||
fix_iter: 5000 | ||
lr_mult: 0.25 | ||
generator: | ||
name: BasicVSRPlusPlus | ||
mid_channels: 64 | ||
num_blocks: 7 | ||
is_low_res_input: True | ||
pixel_criterion: | ||
name: CharbonnierLoss | ||
reduction: mean | ||
|
||
dataset: | ||
train: | ||
name: RepeatDataset | ||
times: 1000 | ||
num_workers: 4 | ||
batch_size: 2 #4 gpus | ||
dataset: | ||
name: SRREDSMultipleGTDataset | ||
mode: train | ||
lq_folder: data/REDS/train_sharp_bicubic/X4 | ||
gt_folder: data/REDS/train_sharp/X4 | ||
crop_size: 256 | ||
interval_list: [1] | ||
random_reverse: False | ||
number_frames: 30 | ||
use_flip: True | ||
use_rot: True | ||
scale: 4 | ||
val_partition: REDS4 | ||
|
||
test: | ||
name: SRREDSMultipleGTDataset | ||
mode: test | ||
lq_folder: data/REDS/REDS4_test_sharp_bicubic/X4 | ||
gt_folder: data/REDS/REDS4_test_sharp/X4 | ||
interval_list: [1] | ||
random_reverse: False | ||
number_frames: 100 | ||
use_flip: False | ||
use_rot: False | ||
scale: 4 | ||
val_partition: REDS4 | ||
num_workers: 0 | ||
batch_size: 1 | ||
|
||
lr_scheduler: | ||
name: CosineAnnealingRestartLR | ||
learning_rate: !!float 1e-4 | ||
periods: [600000] | ||
restart_weights: [1] | ||
eta_min: !!float 1e-7 | ||
|
||
optimizer: | ||
name: Adam | ||
# add parameters of net_name to optim | ||
# name should in self.nets | ||
net_names: | ||
- generator | ||
beta1: 0.9 | ||
beta2: 0.99 | ||
|
||
validate: | ||
interval: 5000 | ||
save_img: false | ||
|
||
metrics: | ||
psnr: # metric name, can be arbitrary | ||
name: PSNR | ||
crop_border: 0 | ||
test_y_channel: False | ||
ssim: | ||
name: SSIM | ||
crop_border: 0 | ||
test_y_channel: False | ||
|
||
log_config: | ||
interval: 10 | ||
visiual_interval: 500 | ||
|
||
snapshot_config: | ||
interval: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.