test_realesrnet_model.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. scale: 4
  2. num_gpu: 1
  3. manual_seed: 0
  4. is_train: True
  5. dist: False
  6. # ----------------- options for synthesizing training data ----------------- #
  7. gt_usm: True # USM the ground-truth
  8. # the first degradation process
  9. resize_prob: [0.2, 0.7, 0.1] # up, down, keep
  10. resize_range: [0.15, 1.5]
  11. gaussian_noise_prob: 1
  12. noise_range: [1, 30]
  13. poisson_scale_range: [0.05, 3]
  14. gray_noise_prob: 1
  15. jpeg_range: [30, 95]
  16. # the second degradation process
  17. second_blur_prob: 1
  18. resize_prob2: [0.3, 0.4, 0.3] # up, down, keep
  19. resize_range2: [0.3, 1.2]
  20. gaussian_noise_prob2: 1
  21. noise_range2: [1, 25]
  22. poisson_scale_range2: [0.05, 2.5]
  23. gray_noise_prob2: 1
  24. jpeg_range2: [30, 95]
  25. gt_size: 32
  26. queue_size: 1
  27. # network structures
  28. network_g:
  29. type: RRDBNet
  30. num_in_ch: 3
  31. num_out_ch: 3
  32. num_feat: 4
  33. num_block: 1
  34. num_grow_ch: 2
  35. # path
  36. path:
  37. pretrain_network_g: ~
  38. param_key_g: params_ema
  39. strict_load_g: true
  40. resume_state: ~
  41. # training settings
  42. train:
  43. ema_decay: 0.999
  44. optim_g:
  45. type: Adam
  46. lr: !!float 2e-4
  47. weight_decay: 0
  48. betas: [0.9, 0.99]
  49. scheduler:
  50. type: MultiStepLR
  51. milestones: [1000000]
  52. gamma: 0.5
  53. total_iter: 1000000
  54. warmup_iter: -1 # no warm up
  55. # losses
  56. pixel_opt:
  57. type: L1Loss
  58. loss_weight: 1.0
  59. reduction: mean
  60. # validation settings
  61. val:
  62. val_freq: !!float 5e3
  63. save_img: False