burakcanbiner commited on
Commit
f99b63b
1 Parent(s): 32bc6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -64,8 +64,8 @@ class AnimateController:
64
  # gate_dict_path = "ckpts/landscape.pt"
65
  # self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
66
 
67
- self.audio_projector_path = "ckpts/audio_projector_landscape.pth"
68
- self.adapter_ckpt_path = "ckpts/landscape.pt"
69
 
70
 
71
  @spaces.GPU
@@ -95,6 +95,10 @@ class AnimateController:
95
  cfg_scale=5, image_path=None,
96
  pnp_f_t=0.8, pnp_attn_t=0.8,):
97
 
 
 
 
 
98
  print(f"before run_pnp {self.audio_projector_path} -- {self.adapter_ckpt_path}")
99
 
100
  image = self.pnp.run_pnp(
 
64
  # gate_dict_path = "ckpts/landscape.pt"
65
  # self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
66
 
67
+ # self.audio_projector_path = "ckpts/audio_projector_landscape.pth"
68
+ # self.adapter_ckpt_path = "ckpts/landscape.pt"
69
 
70
 
71
  @spaces.GPU
 
95
  cfg_scale=5, image_path=None,
96
  pnp_f_t=0.8, pnp_attn_t=0.8,):
97
 
98
+ if self.audio_projector_path is None:
99
+ self.audio_projector_path = "ckpts/audio_projector_landscape.pth"
100
+ self.adapter_ckpt_path = "ckpts/landscape.pt"
101
+
102
  print(f"before run_pnp {self.audio_projector_path} -- {self.adapter_ckpt_path}")
103
 
104
  image = self.pnp.run_pnp(