ZeroGPU
Browse files
demo.py
CHANGED
|
@@ -422,6 +422,7 @@ def generate_animation(
|
|
| 422 |
# f"Generating animation with EF = {ejection_fraction}, steps = {sampling_steps}, CFG = {cfg_scale}"
|
| 423 |
# )
|
| 424 |
# print(latent_image.shape, type(latent_image))
|
|
|
|
| 425 |
|
| 426 |
if latent_image is None:
|
| 427 |
return None
|
|
@@ -495,6 +496,8 @@ def generate_animation(
|
|
| 495 |
|
| 496 |
# print("Synthetic video:", synthetic_video.shape)
|
| 497 |
|
|
|
|
|
|
|
| 498 |
return synthetic_video.detach() # B x C x T x H x W
|
| 499 |
|
| 500 |
|
|
|
|
| 422 |
# f"Generating animation with EF = {ejection_fraction}, steps = {sampling_steps}, CFG = {cfg_scale}"
|
| 423 |
# )
|
| 424 |
# print(latent_image.shape, type(latent_image))
|
| 425 |
+
print("Generating animation...")
|
| 426 |
|
| 427 |
if latent_image is None:
|
| 428 |
return None
|
|
|
|
| 496 |
|
| 497 |
# print("Synthetic video:", synthetic_video.shape)
|
| 498 |
|
| 499 |
+
print("Animation generated")
|
| 500 |
+
|
| 501 |
return synthetic_video.detach() # B x C x T x H x W
|
| 502 |
|
| 503 |
|