Update engineers/deformes4D.py
Browse files- engineers/deformes4D.py +4 -0
engineers/deformes4D.py
CHANGED
|
@@ -124,6 +124,10 @@ class Deformes4DEngine:
|
|
| 124 |
total_frames_brutos = self._quantize_to_multiple(int(seconds_per_fragment * FPS), FRAMES_PER_LATENT_CHUNK)
|
| 125 |
frames_a_podar = self._quantize_to_multiple(int(total_frames_brutos * (trim_percent / 100)), FRAMES_PER_LATENT_CHUNK)
|
| 126 |
latents_a_podar = frames_a_podar // FRAMES_PER_LATENT_CHUNK
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
total_latent_frames = total_frames_brutos // FRAMES_PER_LATENT_CHUNK
|
| 128 |
|
| 129 |
DEJAVU_FRAME_TARGET = frames_a_podar - 1 if frames_a_podar > 0 else 0
|
|
|
|
| 124 |
total_frames_brutos = self._quantize_to_multiple(int(seconds_per_fragment * FPS), FRAMES_PER_LATENT_CHUNK)
|
| 125 |
frames_a_podar = self._quantize_to_multiple(int(total_frames_brutos * (trim_percent / 100)), FRAMES_PER_LATENT_CHUNK)
|
| 126 |
latents_a_podar = frames_a_podar // FRAMES_PER_LATENT_CHUNK
|
| 127 |
+
|
| 128 |
+
if frames_a_podar % 2 != 0:
|
| 129 |
+
frames_a_podar = frames_a_podar-1
|
| 130 |
+
|
| 131 |
total_latent_frames = total_frames_brutos // FRAMES_PER_LATENT_CHUNK
|
| 132 |
|
| 133 |
DEJAVU_FRAME_TARGET = frames_a_podar - 1 if frames_a_podar > 0 else 0
|