Jannat24 commited on
Commit
7c7f404
·
verified ·
1 Parent(s): 2036d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,13 +73,13 @@ def gen_sources(deepfake_img):
73
  #------------Initialize:Decoder-F------------------------
74
  checkpoint_path_f = "./models/model_vaq1_ff.pth"
75
  # Load model checkpoints
76
- checkpoint_f = torch.load(checkpoint_path_f, map_location=self.device)
77
  # Load the state dictionary into the models
78
  model_vaq_f = model_vaq_f.load_state_dict(checkpoint_f, strict=True)
79
  model_vaq_f.eval()
80
  #------------Initialize:Decoder-G------------------------
81
  checkpoint_path_g = "./models/model_vaq2_gg.pth"
82
- checkpoint_g = torch.load(checkpoint_path_g, map_location=self.device)
83
  # Load the state dictionary into the models
84
  model_vaq_g = model_vaq_g.load_state_dict(checkpoint_g, strict=True)
85
  model_vaq_g.eval()
 
73
  #------------Initialize:Decoder-F------------------------
74
  checkpoint_path_f = "./models/model_vaq1_ff.pth"
75
  # Load model checkpoints
76
+ checkpoint_f = torch.load(checkpoint_path_f, map_location=device)
77
  # Load the state dictionary into the models
78
  model_vaq_f = model_vaq_f.load_state_dict(checkpoint_f, strict=True)
79
  model_vaq_f.eval()
80
  #------------Initialize:Decoder-G------------------------
81
  checkpoint_path_g = "./models/model_vaq2_gg.pth"
82
+ checkpoint_g = torch.load(checkpoint_path_g, map_location=device)
83
  # Load the state dictionary into the models
84
  model_vaq_g = model_vaq_g.load_state_dict(checkpoint_g, strict=True)
85
  model_vaq_g.eval()