sanket kheni commited on
Commit
dc6e4ba
1 Parent(s): 3bb30d1
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -33,22 +33,21 @@ arc_repo = Repository(local_dir="arcface_model", clone_from="felixrosberg/ArcFac
33
  ArcFace = load_model("arcface_model/arc_res50.h5")
34
  ArcFaceE = load_model("arcface_model/arc_res50e.h5")
35
 
36
- g_repo = Repository(local_dir="g_model_c_hq", clone_from="felixrosberg/affa_config_c_hq",
37
- private=True, use_auth_token=token)
38
- G = load_model("g_model_c_hq/generator_t_28.h5", custom_objects={"AdaIN": AdaIN,
39
  "AdaptiveAttention": AdaptiveAttention,
40
  "InstanceNormalization": InstanceNormalization})
41
 
42
- r_repo = Repository(local_dir="reconstruction_attack", clone_from="felixrosberg/reconstruction_attack",
43
- private=True, use_auth_token=token)
44
- R = load_model("reconstruction_attack/reconstructor_42.h5", custom_objects={"AdaIN": AdaIN,
45
- "AdaptiveAttention": AdaptiveAttention,
46
- "InstanceNormalization": InstanceNormalization})
47
 
48
- permuter_repo = Repository(local_dir="identity_permuter", clone_from="felixrosberg/identitypermuter",
49
- private=True, use_auth_token=token, git_user="felixrosberg")
50
 
51
- from identity_permuter.id_permuter import identity_permuter
52
 
53
  IDP = identity_permuter(emb_size=32, min_arg=False)
54
  IDP.load_weights("identity_permuter/id_permuter.h5")
 
33
  ArcFace = load_model("arcface_model/arc_res50.h5")
34
  ArcFaceE = load_model("arcface_model/arc_res50e.h5")
35
 
36
+ g_repo = Repository(local_dir="g_model_c_hq", clone_from="felixrosberg/FaceDancer")
37
+ G = load_model("g_model_c_hq/FaceDancer_config_c_HQ.h5", custom_objects={"AdaIN": AdaIN,
 
38
  "AdaptiveAttention": AdaptiveAttention,
39
  "InstanceNormalization": InstanceNormalization})
40
 
41
+ # r_repo = Repository(local_dir="reconstruction_attack", clone_from="felixrosberg/reconstruction_attack",
42
+ # private=True, use_auth_token=token)
43
+ # R = load_model("reconstruction_attack/reconstructor_42.h5", custom_objects={"AdaIN": AdaIN,
44
+ # "AdaptiveAttention": AdaptiveAttention,
45
+ # "InstanceNormalization": InstanceNormalization})
46
 
47
+ # permuter_repo = Repository(local_dir="identity_permuter", clone_from="felixrosberg/identitypermuter",
48
+ # private=True, use_auth_token=token, git_user="felixrosberg")
49
 
50
+ # from identity_permuter.id_permuter import identity_permuter
51
 
52
  IDP = identity_permuter(emb_size=32, min_arg=False)
53
  IDP.load_weights("identity_permuter/id_permuter.h5")