forked from maum-ai/hififace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.yaml
64 lines (57 loc) · 1.29 KB
/
model.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
generator:
target: "model.hififace.Generator"
params:
identity_extractor_config:
f_3d_checkpoint_path: "model/Deep3DFaceRecon_pytorch/checkpoints/epoch_20.pth"
f_id_checkpoint_path: "ms1mv3_arcface_r100_fp16_backbone.pth"
optimizer:
target: "torch.optim.AdamW"
params:
lr: 1e-4
betas:
- 0
- 0.999
discriminator:
target: "model.multiscalediscriminator.MultiscaleDiscriminator"
params:
input_nc: 3
optimizer:
target: "torch.optim.AdamW"
params:
lr: 1e-4
betas:
- 0
- 0.999
g_loss:
target: "model.loss.GLoss"
params:
f_3d_checkpoint_path: "model/Deep3DFaceRecon_pytorch/checkpoints/epoch_20.pth"
f_id_checkpoint_path: "ms1mv3_arcface_r100_fp16_backbone.pth"
sid_config:
{}
realism_config:
{}
d_loss:
target: "model.loss.DLoss"
params: {}
dataset:
train:
target: "dataset.HifiFaceParsingTrainDataset"
params:
img_root: "/"
parsing_root: "/"
same_rate: 50
dataloader:
batch_size: 16
num_workers: 32
drop_last: True
shuffle: True
validation:
target: "dataset.HifiFaceParsingValDataset"
params:
img_root: "/"
parsing_root: "/"
dataloader:
batch_size: 1
shuffle: False
num_workers: 8