-
Notifications
You must be signed in to change notification settings - Fork 6
/
bash
65 lines (32 loc) · 1.4 KB
/
bash
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
#!/bin/sh
source_img_path='./example/dog/'
source_path='./img_invert/ffhq512_dog/z/' # path for save inverted latent codes and images
target_path='./img_invert/ffhq512_dog/translate/cat/' #path for translation images
source_pkl='./checkpoint/ffhq512_dog.pkl'
target_pkl='./checkpoint/ffhq512_dog_cat.pkl'
compare_html='./img_invert/ffhq512_dog/translate/cat.html'
python projector_z.py --outdir=$source_path \
--target=$source_img_path \
--network=$source_pkl
python I2I.py --network $target_pkl \
--source_path $source_path \
--target_path $target_path
python Compare.py --source_img_path $source_img_path \
--source_path $source_path \
--target_path $target_path \
--save_path $compare_html
#python CombineLatent.py --file_path ./img_invert/ffhq512_dog/z/ \
# --save_path ./img_invert/ffhq512_dog/
source_img_path='./example/dog/'
source_path='./img_invert/ffhq512_dog/z/'
source_pkl='./checkpoint/ffhq512_dog.pkl'
target_img_path='./example/cat/'
target_path='./img_invert/ffhq512_dog_cat/z/'
target_pkl='./checkpoint/ffhq512_dog_cat.pkl'
compare_html='./img_invert/dog_cat.html'
python projector_z.py --outdir=$source_path \
--target=$source_img_path \
--network=$source_pkl
python projector_z.py --outdir=$target_path \
--target=$target_img_path \
--network=$target_pkl