Spaces:
Running
Running
added configs
Browse files- .gitignore +1 -1
- config/base1024.yaml +47 -0
- config/base512.yaml +42 -0
- config/test.yaml +11 -0
.gitignore
CHANGED
@@ -160,7 +160,7 @@ cython_debug/
|
|
160 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
161 |
#.idea/
|
162 |
|
163 |
-
config/*
|
164 |
trainer/__pycache__/
|
165 |
trainer/__pycache__/*
|
166 |
__pycache__/*
|
|
|
160 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
161 |
#.idea/
|
162 |
|
163 |
+
#config/*
|
164 |
trainer/__pycache__/
|
165 |
trainer/__pycache__/*
|
166 |
__pycache__/*
|
config/base1024.yaml
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
world_size: 4
|
2 |
+
experiment_name: 'FFHQH_SEHARM_1024_FINAL'
|
3 |
+
datasets:
|
4 |
+
iharmony: "/home/jovyan/datasets/iHarmony4/"
|
5 |
+
crop_size: 1024
|
6 |
+
# dataset_root: "/home/jovyan/datasets/iHarmony4/"
|
7 |
+
ffhqh: "/home/jovyan/datasets/synthetic_ffhq/"
|
8 |
+
dataset_root: "/home/jovyan/datasets/synthetic_ffhq/"
|
9 |
+
ffhq: "/home/jovyan/datasets/ffhq/images1024x1024/"
|
10 |
+
isTrain: True
|
11 |
+
task_for_oneformer: "matting"
|
12 |
+
datasets_to_use_test: ["FFHQH"]
|
13 |
+
#"IhdDataset", "HCOCO", "HFlickr", "Hday2night", "HAdobe5k", "FFHQH"]
|
14 |
+
dataset_to_use: "FFHQH"
|
15 |
+
pretrained_model: 'microsoft/swin-base-patch4-window7-224' #"microsoft/swinv2-tiny-patch4-window8-256" #"nielsr/mask2former-swin-base-youtubevis-2021" #"nvidia/mit-b2"
|
16 |
+
batch_size: 4
|
17 |
+
num_workers: 4
|
18 |
+
log_dir: "log"
|
19 |
+
checkpoint_dir: "checkpoints"
|
20 |
+
load_pretrained: True
|
21 |
+
# checkpoint: "/home/jovyan/efremyan/harmonization/best_50.pth"
|
22 |
+
# checkpoint: "/home/jovyan/efremyan/harmonization/checkpoints/01_August_13_38/epoch-13.pth"
|
23 |
+
checkpoint: "/home/jovyan/efremyan/harmonization/checkpoints/03_August_23_36/epoch-42.pth"
|
24 |
+
distributed_addr: "localhost"
|
25 |
+
# distributed_port: "12356"
|
26 |
+
# image_size: 512
|
27 |
+
lr: 1e-5
|
28 |
+
epochs: 300
|
29 |
+
disable_validation: False
|
30 |
+
disable_mixed_precision: False
|
31 |
+
log_image_interval: 10
|
32 |
+
log_image_number: 4
|
33 |
+
save_model_interval: 1
|
34 |
+
lambda_losses:
|
35 |
+
default: 1.
|
36 |
+
Color: 0.
|
37 |
+
PSNR: 1.
|
38 |
+
LPIPS: 0.5
|
39 |
+
L2: 1.
|
40 |
+
L1: 0.
|
41 |
+
softmax: 1e-4
|
42 |
+
model:
|
43 |
+
grid_counts: [10, 5, 1]
|
44 |
+
enc_sizes: [3, 16, 32, 64, 128, 256, 512]
|
45 |
+
init_weights: [0.5, 0.5] # weights of local grided image and global harmonized
|
46 |
+
init_value: 0.8
|
47 |
+
skips: True
|
config/base512.yaml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
world_size: 4
|
2 |
+
batch_size: 4
|
3 |
+
num_workers: 4
|
4 |
+
experiment_name: 'test'
|
5 |
+
datasets:
|
6 |
+
iharmony: "/home/jovyan/datasets/iHarmony4/"
|
7 |
+
crop_size: 512
|
8 |
+
ffhqh: "/home/jovyan/datasets/synthetic_ffhq/"
|
9 |
+
dataset_root: "/home/jovyan/datasets/synthetic_ffhq/"
|
10 |
+
ffhq: "/home/jovyan/datasets/ffhq/images1024x1024/"
|
11 |
+
isTrain: True
|
12 |
+
datasets_to_use_test: ["IhdDataset"]
|
13 |
+
dataset_to_use_train: "IhdDataset"
|
14 |
+
#["IhdDataset", "HCOCO", "HFlickr", "Hday2night", "HAdobe5k",
|
15 |
+
log_dir: "log"
|
16 |
+
checkpoint_dir: "checkpoints"
|
17 |
+
load_pretrained: True
|
18 |
+
checkpoint: "checkpoints/best_pure.pth"
|
19 |
+
distributed_addr: "localhost"
|
20 |
+
# distributed_port: "12356"
|
21 |
+
# image_size: 512
|
22 |
+
lr: 1e-4
|
23 |
+
epochs: 300
|
24 |
+
disable_validation: False
|
25 |
+
disable_mixed_precision: False
|
26 |
+
log_image_interval: 10
|
27 |
+
log_image_number: 4
|
28 |
+
save_model_interval: 1
|
29 |
+
lambda_losses:
|
30 |
+
default: 1.
|
31 |
+
Color: 0.
|
32 |
+
PSNR: 1.
|
33 |
+
LPIPS: 0.5
|
34 |
+
L2: 1.
|
35 |
+
L1: 0.
|
36 |
+
softmax: 1e-4
|
37 |
+
model:
|
38 |
+
grid_counts: [10, 5, 1]
|
39 |
+
enc_sizes: [3, 16, 32, 64, 128, 256, 512]
|
40 |
+
init_weights: [0.5, 0.5] # weights of local grided image and global harmonized
|
41 |
+
init_value: 0.8
|
42 |
+
skips: True
|
config/test.yaml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
grid_counts: [10, 5, 1]
|
2 |
+
enc_sizes: [3, 16, 32, 64, 128, 256, 512]
|
3 |
+
init_weights: [0.5, 0.5] # weights of local grided image and global harmonized
|
4 |
+
init_value: 0.8
|
5 |
+
skips: True
|
6 |
+
device: 'cpu'
|
7 |
+
checkpoint:
|
8 |
+
harmonizer: "checkpoints/best_pure.pth"
|
9 |
+
matting: "checkpoints/stylematte.pth"
|
10 |
+
|
11 |
+
image_size: 1024
|