forked from open-mmlab/MMGEN-FaceStylor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agile_transfer_metface-oil1024x1024.py
26 lines (23 loc) · 1.15 KB
/
agile_transfer_metface-oil1024x1024.py
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
encoder_ckpt_path = 'work_dirs/pre-trained/agile_encoder_ffhq1024x1024_lr_1e-4_500kiter_20211201_112111-fb1312dc.pth' # noqa
stylegan_weights = 'work_dirs/pre-trained/agile_transfer_metfaces-oil1024x1024_zplus_lpips0.5_freezeD5_ada_bs4x2_lr_1e-4_1600iter_20211104_134350-2b99cb9b.pth' # noqa
model = dict(type='PSPEncoderDecoder',
encoder=dict(type='VAEStyleEncoder',
num_layers=50,
pretrained=dict(ckpt_path=encoder_ckpt_path,
prefix='encoder',
strict=False)),
decoder=dict(type='SwapStyleGANv2Generator',
out_size=1024,
style_channels=512,
num_mlps=8,
pretrained=dict(ckpt_path=stylegan_weights,
prefix='generator_ema')),
pool_size=(1024, 1024),
id_lambda=0.0,
lpips_lambda=0.0,
id_ckpt=None,
kl_loss=None,
train_cfg=None,
test_cfg=None)
train_cfg = None
test_cfg = None