Upload 2 files
Browse files- config.yml +104 -0
- last.ckpt +3 -0
config.yml
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
train_flist: '/home/wmlce/places365_standard/places2_all/train_list.txt'
|
2 |
+
val_flist: '/home/wmlce/places365_standard/places2_all/test_sub_list.txt'
|
3 |
+
test_path: '/home/wmlce/places365_standard/val_512img_for_eval'
|
4 |
+
|
5 |
+
train_mask_flist: [ '/home/wmlce/irregular_mask/irregular_lama_mask_list.txt',
|
6 |
+
'/home/wmlce/coco_mask/coco_mask_list.txt' ]
|
7 |
+
test_mask_flist: '/home/wmlce/Image-Transformer-Inpainting/data/indoor/test_mask'
|
8 |
+
|
9 |
+
batch_size: 12 # input batch size for training
|
10 |
+
num_workers: 12
|
11 |
+
sample_size: 12
|
12 |
+
fp16: false
|
13 |
+
|
14 |
+
# Dataset settings
|
15 |
+
data_class: 'base.dataset.DynamicDataset_gradient_line'
|
16 |
+
dataset:
|
17 |
+
rect_mask_rate: 0.0
|
18 |
+
train_line_path: "places2_train_wireframes"
|
19 |
+
eval_line_path: "places2_val_wireframes"
|
20 |
+
round: 64
|
21 |
+
str_size: 256
|
22 |
+
input_size: 512 # size for eval
|
23 |
+
|
24 |
+
# model settings
|
25 |
+
structure_upsample_class: 'networks.upsample.StructureUpsampling4'
|
26 |
+
edgeline_tsr_class: 'networks.tsr.EdgeLineGPT256RelBCE_edge_pred_infer'
|
27 |
+
grad_tsr_class: 'networks.tsr.GradientGPT256RelBCE'
|
28 |
+
PLTrainer: 'trainers.pl_trainers.FinetunePLTrainer_nms_threshold'
|
29 |
+
|
30 |
+
g_class: 'networks.generators.FTRModel'
|
31 |
+
g_args:
|
32 |
+
use_gradient: False
|
33 |
+
use_GFBlock: False
|
34 |
+
activation: 'swish'
|
35 |
+
use_VAN_between_FFC: False
|
36 |
+
van_kernel_size: 21
|
37 |
+
van_dilation: 3
|
38 |
+
prior_ch: 3
|
39 |
+
rezero_for_mpe: True
|
40 |
+
rel_pos_num: 128
|
41 |
+
|
42 |
+
d_class: 'networks.discriminators.NLayerDiscriminator'
|
43 |
+
d_args:
|
44 |
+
input_nc: 3
|
45 |
+
|
46 |
+
|
47 |
+
# pretrained ckpt settings
|
48 |
+
# resume_structure_upsample: '/mnt/storage/dongqiaole/dql_inpainting/CNN_final/ckpt/StructureUpsampling_V5_last.pth'
|
49 |
+
# resume_edgeline_tsr: '/mnt/storage/dongqiaole/dql_inpainting/Transformer_final_places2/ckpt/places2_line_cats_edge_pred_infer/best.pth'
|
50 |
+
# resume_grad_tsr: '/mnt/storage/dongqiaole/dql_inpainting/Transformer_final_places2/ckpt/places2_gradient/best.pth'
|
51 |
+
# resume_ftr: '/mnt/storage/dongqiaole/dql_inpainting/TPAMI2022-final/ckpts/Places2_lightning_converted_weights/converted_from_pl_800k_3sfe.pth'
|
52 |
+
|
53 |
+
resume_structure_upsample: '/home/wmlce/dql_inpainting/CNN_final/ckpt/StructureUpsampling_V5_last.pth'
|
54 |
+
resume_edgeline_tsr: '/home/wmlce/dql_inpainting/Transformer_final_places2/ckpt/places2_line_cats_edge_pred_infer/best.pth'
|
55 |
+
resume_grad_tsr: '/home/wmlce/dql_inpainting/Transformer_final_places2/ckpt/places2_gradient/best.pth'
|
56 |
+
resume_ftr: '/home/wmlce/dongqiaole/dql_inpainting/TPAMI2022-final/ckpts/Places2_lightning_converted_weights/converted_from_pl_800k_3sfe.pth'
|
57 |
+
|
58 |
+
|
59 |
+
# Trainer settings
|
60 |
+
trainer:
|
61 |
+
fix_256: False
|
62 |
+
Turning_Point: 10000
|
63 |
+
total_step: 150000
|
64 |
+
sample_period: 1000
|
65 |
+
eval_period: 2000
|
66 |
+
save_period: 1000
|
67 |
+
logging_every: 50
|
68 |
+
ema_beta: 0.995
|
69 |
+
sample_with_center_mask: false
|
70 |
+
# loss
|
71 |
+
l1:
|
72 |
+
use_l1: true
|
73 |
+
weight_missing: 0
|
74 |
+
weight_known: 10.0
|
75 |
+
adversarial:
|
76 |
+
weight: 10.0
|
77 |
+
gp_coef: 0.001
|
78 |
+
mask_as_fake_target: true
|
79 |
+
allow_scale_mask: true
|
80 |
+
extra_mask_weight_for_gen: 0.0
|
81 |
+
use_unmasked_for_gen: true
|
82 |
+
use_unmasked_for_discr: true
|
83 |
+
mask_scale_mode: 'maxpool'
|
84 |
+
perceptual:
|
85 |
+
weight: 0
|
86 |
+
resnet_pl:
|
87 |
+
weight: 30.0
|
88 |
+
weights_path: '/home/wmlce/dql_inpainting'
|
89 |
+
feature_matching:
|
90 |
+
weight: 100.0
|
91 |
+
|
92 |
+
# opt settings
|
93 |
+
optimizer:
|
94 |
+
warmup_steps: 0
|
95 |
+
decay_steps: [50000, 100000]
|
96 |
+
decay_rate: 0.5
|
97 |
+
g_opt:
|
98 |
+
lr: 3.0e-4
|
99 |
+
beta1: 0
|
100 |
+
beta2: 0.99
|
101 |
+
d_opt:
|
102 |
+
lr: 1.0e-4
|
103 |
+
beta1: 0
|
104 |
+
beta2: 0.99
|
last.ckpt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e30d2073ba63af42836ac611214ed984db7ec739a1eef019451df6a34f566f57
|
3 |
+
size 1355831946
|