Update deformes4D_engine.py
Browse files- deformes4D_engine.py +2 -2
deformes4D_engine.py
CHANGED
|
@@ -256,14 +256,14 @@ class Deformes4DEngine:
|
|
| 256 |
|
| 257 |
if is_first_fragment:
|
| 258 |
if n_trim_latents > 0 and latents_for_video.shape[2] > n_trim_latents:
|
| 259 |
-
latents_for_video = latents_for_video[:, :,
|
| 260 |
|
| 261 |
elif is_penultimate_fragment:
|
| 262 |
if echo_frames > 0 and latents_for_video.shape[2] > echo_frames:
|
| 263 |
latents_for_video = latents_for_video[:, :, echo_frames:, :, :] # Cortar eco do início
|
| 264 |
|
| 265 |
if n_trim_latents > 0 and latents_for_video.shape[2] > n_trim_latents:
|
| 266 |
-
latents_for_video = latents_for_video[:, :,
|
| 267 |
|
| 268 |
else:
|
| 269 |
if echo_frames > 0 and latents_for_video.shape[2] > echo_frames:
|
|
|
|
| 256 |
|
| 257 |
if is_first_fragment:
|
| 258 |
if n_trim_latents > 0 and latents_for_video.shape[2] > n_trim_latents:
|
| 259 |
+
latents_for_video = latents_for_video[:, :, :n_trim_latents, :, :] # Nota: Cortar 24 do fim
|
| 260 |
|
| 261 |
elif is_penultimate_fragment:
|
| 262 |
if echo_frames > 0 and latents_for_video.shape[2] > echo_frames:
|
| 263 |
latents_for_video = latents_for_video[:, :, echo_frames:, :, :] # Cortar eco do início
|
| 264 |
|
| 265 |
if n_trim_latents > 0 and latents_for_video.shape[2] > n_trim_latents:
|
| 266 |
+
latents_for_video = latents_for_video[:, :, :n_trim_latents, :, :] # Cortar 24 do fim
|
| 267 |
|
| 268 |
else:
|
| 269 |
if echo_frames > 0 and latents_for_video.shape[2] > echo_frames:
|