supli6669 commited on
Commit ·
ea8aeb5
1
Parent(s): b5805a0
chore: clean up temporary log files, test images, and cache
Browse files
models/CodeFormer/options/cf_runtime_szvghq3h.yml
DELETED
|
@@ -1,166 +0,0 @@
|
|
| 1 |
-
name: CodeFormer_stage3_custom
|
| 2 |
-
model_type: CodeFormerJointModel
|
| 3 |
-
num_gpu: 0
|
| 4 |
-
manual_seed: 0
|
| 5 |
-
datasets:
|
| 6 |
-
train:
|
| 7 |
-
name: CustomDataset
|
| 8 |
-
type: FFHQBlindJointDataset
|
| 9 |
-
dataroot_gt: datasets/ffhq/ffhq_512
|
| 10 |
-
filename_tmpl: '{}'
|
| 11 |
-
io_backend:
|
| 12 |
-
type: disk
|
| 13 |
-
in_size: 512
|
| 14 |
-
gt_size: 512
|
| 15 |
-
mean:
|
| 16 |
-
- 0.5
|
| 17 |
-
- 0.5
|
| 18 |
-
- 0.5
|
| 19 |
-
std:
|
| 20 |
-
- 0.5
|
| 21 |
-
- 0.5
|
| 22 |
-
- 0.5
|
| 23 |
-
use_hflip: true
|
| 24 |
-
use_corrupt: true
|
| 25 |
-
blur_kernel_size: 41
|
| 26 |
-
use_motion_kernel: true
|
| 27 |
-
motion_kernel_prob: 0.15
|
| 28 |
-
kernel_list:
|
| 29 |
-
- iso
|
| 30 |
-
- aniso
|
| 31 |
-
kernel_prob:
|
| 32 |
-
- 0.5
|
| 33 |
-
- 0.5
|
| 34 |
-
blur_sigma:
|
| 35 |
-
- 0.1
|
| 36 |
-
- 10.0
|
| 37 |
-
downsample_range:
|
| 38 |
-
- 1.0
|
| 39 |
-
- 20.0
|
| 40 |
-
noise_range:
|
| 41 |
-
- 0.0
|
| 42 |
-
- 30.0
|
| 43 |
-
jpeg_range:
|
| 44 |
-
- 10
|
| 45 |
-
- 70
|
| 46 |
-
blur_sigma_large:
|
| 47 |
-
- 1.0
|
| 48 |
-
- 15.0
|
| 49 |
-
downsample_range_large:
|
| 50 |
-
- 4.0
|
| 51 |
-
- 30.0
|
| 52 |
-
noise_range_large:
|
| 53 |
-
- 0.0
|
| 54 |
-
- 30.0
|
| 55 |
-
jpeg_range_large:
|
| 56 |
-
- 5
|
| 57 |
-
- 50
|
| 58 |
-
latent_gt_path: null
|
| 59 |
-
num_worker_per_gpu: 0
|
| 60 |
-
batch_size_per_gpu: 1
|
| 61 |
-
dataset_enlarge_ratio: 5
|
| 62 |
-
prefetch_mode: null
|
| 63 |
-
network_g:
|
| 64 |
-
type: CodeFormer
|
| 65 |
-
dim_embd: 512
|
| 66 |
-
n_head: 8
|
| 67 |
-
n_layers: 9
|
| 68 |
-
codebook_size: 1024
|
| 69 |
-
connect_list:
|
| 70 |
-
- '32'
|
| 71 |
-
- '64'
|
| 72 |
-
- '128'
|
| 73 |
-
- '256'
|
| 74 |
-
fix_modules:
|
| 75 |
-
- quantize
|
| 76 |
-
- generator
|
| 77 |
-
network_vqgan:
|
| 78 |
-
type: VQAutoEncoder
|
| 79 |
-
img_size: 512
|
| 80 |
-
nf: 64
|
| 81 |
-
ch_mult:
|
| 82 |
-
- 1
|
| 83 |
-
- 2
|
| 84 |
-
- 2
|
| 85 |
-
- 4
|
| 86 |
-
- 4
|
| 87 |
-
- 8
|
| 88 |
-
quantizer: nearest
|
| 89 |
-
codebook_size: 1024
|
| 90 |
-
network_d:
|
| 91 |
-
type: VQGANDiscriminator
|
| 92 |
-
nc: 3
|
| 93 |
-
ndf: 64
|
| 94 |
-
n_layers: 4
|
| 95 |
-
path:
|
| 96 |
-
pretrain_network_g: null
|
| 97 |
-
param_key_g: params_ema
|
| 98 |
-
strict_load_g: false
|
| 99 |
-
pretrain_network_d: null
|
| 100 |
-
resume_state: D:\.gemini-scratch\custom-ai-enhancer\models\CodeFormer\experiments\20260708_201102_CodeFormer_stage3_custom\training_states\2150.state
|
| 101 |
-
train:
|
| 102 |
-
use_hq_feat_loss: true
|
| 103 |
-
feat_loss_weight: 1.0
|
| 104 |
-
cross_entropy_loss: true
|
| 105 |
-
entropy_loss_weight: 0.5
|
| 106 |
-
identity_loss_weight: 0.5
|
| 107 |
-
scale_adaptive_gan_weight: 0.1
|
| 108 |
-
optim_g:
|
| 109 |
-
type: Adam
|
| 110 |
-
lr: 5.0e-05
|
| 111 |
-
weight_decay: 0
|
| 112 |
-
betas:
|
| 113 |
-
- 0.9
|
| 114 |
-
- 0.99
|
| 115 |
-
optim_d:
|
| 116 |
-
type: Adam
|
| 117 |
-
lr: 5.0e-05
|
| 118 |
-
weight_decay: 0
|
| 119 |
-
betas:
|
| 120 |
-
- 0.9
|
| 121 |
-
- 0.99
|
| 122 |
-
scheduler:
|
| 123 |
-
type: CosineAnnealingRestartLR
|
| 124 |
-
periods:
|
| 125 |
-
- 20000
|
| 126 |
-
restart_weights:
|
| 127 |
-
- 1
|
| 128 |
-
eta_min: 5.0e-06
|
| 129 |
-
total_iter: 20000
|
| 130 |
-
warmup_iter: -1
|
| 131 |
-
ema_decay: 0.997
|
| 132 |
-
pixel_opt:
|
| 133 |
-
type: L1Loss
|
| 134 |
-
loss_weight: 1.0
|
| 135 |
-
reduction: mean
|
| 136 |
-
perceptual_opt:
|
| 137 |
-
type: LPIPSLoss
|
| 138 |
-
loss_weight: 1.0
|
| 139 |
-
use_input_norm: true
|
| 140 |
-
range_norm: true
|
| 141 |
-
gan_opt:
|
| 142 |
-
type: GANLoss
|
| 143 |
-
gan_type: hinge
|
| 144 |
-
loss_weight: 1.0
|
| 145 |
-
use_adaptive_weight: true
|
| 146 |
-
net_g_start_iter: 0
|
| 147 |
-
net_d_iters: 1
|
| 148 |
-
net_d_start_iter: 0
|
| 149 |
-
manual_seed: 0
|
| 150 |
-
val:
|
| 151 |
-
val_freq: 500
|
| 152 |
-
save_img: true
|
| 153 |
-
metrics:
|
| 154 |
-
psnr:
|
| 155 |
-
type: calculate_psnr
|
| 156 |
-
crop_border: 4
|
| 157 |
-
test_y_channel: false
|
| 158 |
-
logger:
|
| 159 |
-
print_freq: 1
|
| 160 |
-
save_checkpoint_freq: 50
|
| 161 |
-
use_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
models/CodeFormer/options/cf_runtime_vmvjxo41.yml
DELETED
|
@@ -1,166 +0,0 @@
|
|
| 1 |
-
name: CodeFormer_stage3_custom
|
| 2 |
-
model_type: CodeFormerJointModel
|
| 3 |
-
num_gpu: 0
|
| 4 |
-
manual_seed: 0
|
| 5 |
-
datasets:
|
| 6 |
-
train:
|
| 7 |
-
name: CustomDataset
|
| 8 |
-
type: FFHQBlindJointDataset
|
| 9 |
-
dataroot_gt: datasets/ffhq/ffhq_512
|
| 10 |
-
filename_tmpl: '{}'
|
| 11 |
-
io_backend:
|
| 12 |
-
type: disk
|
| 13 |
-
in_size: 512
|
| 14 |
-
gt_size: 512
|
| 15 |
-
mean:
|
| 16 |
-
- 0.5
|
| 17 |
-
- 0.5
|
| 18 |
-
- 0.5
|
| 19 |
-
std:
|
| 20 |
-
- 0.5
|
| 21 |
-
- 0.5
|
| 22 |
-
- 0.5
|
| 23 |
-
use_hflip: true
|
| 24 |
-
use_corrupt: true
|
| 25 |
-
blur_kernel_size: 41
|
| 26 |
-
use_motion_kernel: true
|
| 27 |
-
motion_kernel_prob: 0.15
|
| 28 |
-
kernel_list:
|
| 29 |
-
- iso
|
| 30 |
-
- aniso
|
| 31 |
-
kernel_prob:
|
| 32 |
-
- 0.5
|
| 33 |
-
- 0.5
|
| 34 |
-
blur_sigma:
|
| 35 |
-
- 0.1
|
| 36 |
-
- 10.0
|
| 37 |
-
downsample_range:
|
| 38 |
-
- 1.0
|
| 39 |
-
- 20.0
|
| 40 |
-
noise_range:
|
| 41 |
-
- 0.0
|
| 42 |
-
- 30.0
|
| 43 |
-
jpeg_range:
|
| 44 |
-
- 10
|
| 45 |
-
- 70
|
| 46 |
-
blur_sigma_large:
|
| 47 |
-
- 1.0
|
| 48 |
-
- 15.0
|
| 49 |
-
downsample_range_large:
|
| 50 |
-
- 4.0
|
| 51 |
-
- 30.0
|
| 52 |
-
noise_range_large:
|
| 53 |
-
- 0.0
|
| 54 |
-
- 30.0
|
| 55 |
-
jpeg_range_large:
|
| 56 |
-
- 5
|
| 57 |
-
- 50
|
| 58 |
-
latent_gt_path: null
|
| 59 |
-
num_worker_per_gpu: 0
|
| 60 |
-
batch_size_per_gpu: 1
|
| 61 |
-
dataset_enlarge_ratio: 5
|
| 62 |
-
prefetch_mode: null
|
| 63 |
-
network_g:
|
| 64 |
-
type: CodeFormer
|
| 65 |
-
dim_embd: 512
|
| 66 |
-
n_head: 8
|
| 67 |
-
n_layers: 9
|
| 68 |
-
codebook_size: 1024
|
| 69 |
-
connect_list:
|
| 70 |
-
- '32'
|
| 71 |
-
- '64'
|
| 72 |
-
- '128'
|
| 73 |
-
- '256'
|
| 74 |
-
fix_modules:
|
| 75 |
-
- quantize
|
| 76 |
-
- generator
|
| 77 |
-
network_vqgan:
|
| 78 |
-
type: VQAutoEncoder
|
| 79 |
-
img_size: 512
|
| 80 |
-
nf: 64
|
| 81 |
-
ch_mult:
|
| 82 |
-
- 1
|
| 83 |
-
- 2
|
| 84 |
-
- 2
|
| 85 |
-
- 4
|
| 86 |
-
- 4
|
| 87 |
-
- 8
|
| 88 |
-
quantizer: nearest
|
| 89 |
-
codebook_size: 1024
|
| 90 |
-
network_d:
|
| 91 |
-
type: VQGANDiscriminator
|
| 92 |
-
nc: 3
|
| 93 |
-
ndf: 64
|
| 94 |
-
n_layers: 4
|
| 95 |
-
path:
|
| 96 |
-
pretrain_network_g: null
|
| 97 |
-
param_key_g: params_ema
|
| 98 |
-
strict_load_g: false
|
| 99 |
-
pretrain_network_d: null
|
| 100 |
-
resume_state: D:\.gemini-scratch\custom-ai-enhancer\models\CodeFormer\experiments\20260708_201102_CodeFormer_stage3_custom\training_states\2150.state
|
| 101 |
-
train:
|
| 102 |
-
use_hq_feat_loss: true
|
| 103 |
-
feat_loss_weight: 1.0
|
| 104 |
-
cross_entropy_loss: true
|
| 105 |
-
entropy_loss_weight: 0.5
|
| 106 |
-
identity_loss_weight: 0.5
|
| 107 |
-
scale_adaptive_gan_weight: 0.1
|
| 108 |
-
optim_g:
|
| 109 |
-
type: Adam
|
| 110 |
-
lr: 5.0e-05
|
| 111 |
-
weight_decay: 0
|
| 112 |
-
betas:
|
| 113 |
-
- 0.9
|
| 114 |
-
- 0.99
|
| 115 |
-
optim_d:
|
| 116 |
-
type: Adam
|
| 117 |
-
lr: 5.0e-05
|
| 118 |
-
weight_decay: 0
|
| 119 |
-
betas:
|
| 120 |
-
- 0.9
|
| 121 |
-
- 0.99
|
| 122 |
-
scheduler:
|
| 123 |
-
type: CosineAnnealingRestartLR
|
| 124 |
-
periods:
|
| 125 |
-
- 20000
|
| 126 |
-
restart_weights:
|
| 127 |
-
- 1
|
| 128 |
-
eta_min: 5.0e-06
|
| 129 |
-
total_iter: 20000
|
| 130 |
-
warmup_iter: -1
|
| 131 |
-
ema_decay: 0.997
|
| 132 |
-
pixel_opt:
|
| 133 |
-
type: L1Loss
|
| 134 |
-
loss_weight: 1.0
|
| 135 |
-
reduction: mean
|
| 136 |
-
perceptual_opt:
|
| 137 |
-
type: LPIPSLoss
|
| 138 |
-
loss_weight: 1.0
|
| 139 |
-
use_input_norm: true
|
| 140 |
-
range_norm: true
|
| 141 |
-
gan_opt:
|
| 142 |
-
type: GANLoss
|
| 143 |
-
gan_type: hinge
|
| 144 |
-
loss_weight: 1.0
|
| 145 |
-
use_adaptive_weight: true
|
| 146 |
-
net_g_start_iter: 0
|
| 147 |
-
net_d_iters: 1
|
| 148 |
-
net_d_start_iter: 0
|
| 149 |
-
manual_seed: 0
|
| 150 |
-
val:
|
| 151 |
-
val_freq: 500
|
| 152 |
-
save_img: true
|
| 153 |
-
metrics:
|
| 154 |
-
psnr:
|
| 155 |
-
type: calculate_psnr
|
| 156 |
-
crop_border: 4
|
| 157 |
-
test_y_channel: false
|
| 158 |
-
logger:
|
| 159 |
-
print_freq: 1
|
| 160 |
-
save_checkpoint_freq: 50
|
| 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