wmpscc commited on
Commit
c365d69
1 Parent(s): cb6f874
Files changed (2) hide show
  1. app.py +1 -0
  2. 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 = "/home/cvi_demo/PythonProject/StyleGene/checkpoints/e4e_ffhq_encode.pt"
3
- path_ckpt_stylegan2 = '/home/cvi_demo/PythonProject/StyleGene/checkpoints/stylegan2-ffhq-config-f.pt'
4
- path_ckpt_stylegene = "/home/cvi_demo/PythonProject/StyleGene/checkpoints/stylegene_N18.ckpt"
5
- path_ckpt_fairface = '/home/cvi_demo/PythonProject/StyleGene/checkpoints/res34_fair_align_multi_7_20190809.pt'
6
- path_ckpt_genepool = "/home/cvi_demo/PythonProject/StyleGene/checkpoints/geneFactorPool.pkl"
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