Spaces:
Build error
Build error
Update deformes4D_engine.py
Browse files- deformes4D_engine.py +4 -16
deformes4D_engine.py
CHANGED
|
@@ -314,7 +314,7 @@ class Deformes4DEngine:
|
|
| 314 |
logger.info(f" [1. GERAÇÃO] Tensor latente bruto gerado com shape: {new_full_latents.shape}.")
|
| 315 |
|
| 316 |
|
| 317 |
-
trim_chunks =
|
| 318 |
|
| 319 |
|
| 320 |
|
|
@@ -328,25 +328,13 @@ class Deformes4DEngine:
|
|
| 328 |
latents_for_video = new_full_latents.clone()
|
| 329 |
|
| 330 |
|
| 331 |
-
base_name = f"ecofragment_{i}_{int(time.time())}"
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
video_path = self._generate_video_from_latents(
|
| 336 |
-
eco_latent_for_next_loop,
|
| 337 |
-
base_name
|
| 338 |
-
)
|
| 339 |
-
|
| 340 |
-
video_path = self._generate_video_from_latents(video_path, base_name)
|
| 341 |
-
video_clips_paths.append(video_path)
|
| 342 |
-
yield {"fragment_path": video_path}
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
-
if transition_type == "cut":
|
| 348 |
-
|
| 349 |
-
|
| 350 |
|
| 351 |
base_name = f"fragment_{i}_{int(time.time())}"
|
| 352 |
|
|
|
|
| 314 |
logger.info(f" [1. GERAÇÃO] Tensor latente bruto gerado com shape: {new_full_latents.shape}.")
|
| 315 |
|
| 316 |
|
| 317 |
+
trim_chunks = 3
|
| 318 |
|
| 319 |
|
| 320 |
|
|
|
|
| 328 |
latents_for_video = new_full_latents.clone()
|
| 329 |
|
| 330 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
+
#if transition_type == "cut":
|
| 336 |
+
# eco_latent_for_next_loop = None
|
| 337 |
+
# handler_latent_for_next_loop = None
|
| 338 |
|
| 339 |
base_name = f"fragment_{i}_{int(time.time())}"
|
| 340 |
|