Spaces:
Runtime error
Runtime error
wmpscc
commited on
Commit
·
c365d69
1
Parent(s):
cb6f874
update
Browse files- app.py +1 -0
- configs.py +6 -6
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/e4e_ffhq_encode.pt -o ./checkpoints/e4e_ffhq_encode.pt")
|
3 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/res34_fair_align_multi_7_20190809.pt -o ./checkpoints/res34_fair_align_multi_7_20190809.pt")
|
4 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/shape_predictor_68_face_landmarks.dat.bz2 -o ./checkpoints/shape_predictor_68_face_landmarks.dat.bz2")
|
|
|
1 |
import os
|
2 |
+
os.makedirs("./checkpoints")
|
3 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/e4e_ffhq_encode.pt -o ./checkpoints/e4e_ffhq_encode.pt")
|
4 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/res34_fair_align_multi_7_20190809.pt -o ./checkpoints/res34_fair_align_multi_7_20190809.pt")
|
5 |
os.system("wget https://huggingface.co/wmpscc/StyleGene/resolve/main/shape_predictor_68_face_landmarks.dat.bz2 -o ./checkpoints/shape_predictor_68_face_landmarks.dat.bz2")
|
configs.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
path_ckpt_landmark68 = "checkpoints/shape_predictor_68_face_landmarks.dat.bz2"
|
2 |
-
path_ckpt_e4e = "
|
3 |
-
path_ckpt_stylegan2 = '
|
4 |
-
path_ckpt_stylegene = "
|
5 |
-
path_ckpt_fairface = '
|
6 |
-
path_ckpt_genepool = "
|
7 |
|
8 |
path_csv_ffhq_attritube = 'data/fairface_gender_angle.csv'
|
9 |
-
path_dataset_ffhq = None
|
|
|
1 |
path_ckpt_landmark68 = "checkpoints/shape_predictor_68_face_landmarks.dat.bz2"
|
2 |
+
path_ckpt_e4e = "checkpoints/e4e_ffhq_encode.pt"
|
3 |
+
path_ckpt_stylegan2 = 'checkpoints/stylegan2-ffhq-config-f.pt'
|
4 |
+
path_ckpt_stylegene = "checkpoints/stylegene_N18.ckpt"
|
5 |
+
path_ckpt_fairface = 'checkpoints/res34_fair_align_multi_7_20190809.pt'
|
6 |
+
path_ckpt_genepool = "checkpoints/geneFactorPool.pkl"
|
7 |
|
8 |
path_csv_ffhq_attritube = 'data/fairface_gender_angle.csv'
|
9 |
+
path_dataset_ffhq = None
|