Update api/ltx_server.py
Browse files- api/ltx_server.py +11 -8
api/ltx_server.py
CHANGED
|
@@ -426,15 +426,18 @@ class VideoService:
|
|
| 426 |
|
| 427 |
if steps > 1:
|
| 428 |
i = 0
|
|
|
|
| 429 |
while i < steps:
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
|
|
|
|
|
|
| 438 |
else:
|
| 439 |
print(f"[DEBUG] numero chunks minimo")
|
| 440 |
print(f"[DEBUG] latents_brutos[:, :, :, :, :] = {latents_brutos.shape[2]}")
|
|
|
|
| 426 |
|
| 427 |
if steps > 1:
|
| 428 |
i = 0
|
| 429 |
+
end=1
|
| 430 |
while i < steps:
|
| 431 |
+
start = end-1
|
| 432 |
+
end += num_latente_por_chunk
|
| 433 |
+
if end+2>=sum_latent:
|
| 434 |
+
end = sum_latent-1
|
| 435 |
+
i = steps
|
| 436 |
+
else:
|
| 437 |
+
i += 1
|
| 438 |
+
chunk = latents_brutos[:, :, start:end, :, :].clone()
|
| 439 |
+
chunks.append(chunk)
|
| 440 |
+
print(f"[DEBUG] chunk{i}[:, :, {start}:{end}, :, :] = {chunk.shape[2]}")
|
| 441 |
else:
|
| 442 |
print(f"[DEBUG] numero chunks minimo")
|
| 443 |
print(f"[DEBUG] latents_brutos[:, :, :, :, :] = {latents_brutos.shape[2]}")
|