Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,8 @@ class AnimateController:
|
|
| 94 |
def generate(self, file=None, audio=None, prompt=None,
|
| 95 |
cfg_scale=5, image_path=None,
|
| 96 |
pnp_f_t=0.8, pnp_attn_t=0.8,):
|
|
|
|
|
|
|
| 97 |
|
| 98 |
image = self.pnp.run_pnp(
|
| 99 |
n_timesteps=50,
|
|
@@ -122,6 +124,7 @@ class AnimateController:
|
|
| 122 |
self.audio_projector_path = "ckpts/audio_projector_gh.pth"
|
| 123 |
self.adapter_ckpt_path = "ckpts/greatest_hits.pt"
|
| 124 |
|
|
|
|
| 125 |
|
| 126 |
# self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
|
| 127 |
# self.pnp.changed_model = True
|
|
|
|
| 94 |
def generate(self, file=None, audio=None, prompt=None,
|
| 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(
|
| 101 |
n_timesteps=50,
|
|
|
|
| 124 |
self.audio_projector_path = "ckpts/audio_projector_gh.pth"
|
| 125 |
self.adapter_ckpt_path = "ckpts/greatest_hits.pt"
|
| 126 |
|
| 127 |
+
print(f"audio_projector_path {self.audio_projector_path} -- {self.adapter_ckpt_path}")
|
| 128 |
|
| 129 |
# self.pnp.set_audio_projector(gate_dict_path, audio_projector_path)
|
| 130 |
# self.pnp.changed_model = True
|