Update api/ltx_server.py
Browse files- api/ltx_server.py +1 -5
api/ltx_server.py
CHANGED
|
@@ -423,9 +423,7 @@ class VideoService:
|
|
| 423 |
print(f"[DEBUG] Num LATENTES por chunk = {num_latente_por_chunk}")
|
| 424 |
print(f"[DEBUG] Número de chunks = {steps}")
|
| 425 |
|
| 426 |
-
|
| 427 |
-
end = num_latente_por_chunk
|
| 428 |
-
|
| 429 |
if steps > 1:
|
| 430 |
while i < steps:
|
| 431 |
start = i*num_latente_por_chunk
|
|
@@ -435,8 +433,6 @@ class VideoService:
|
|
| 435 |
chunk = latents_brutos[:, :, start:end, :, :].clone()
|
| 436 |
chunks.append(chunk)
|
| 437 |
print(f"[DEBUG] chunk{i+1}[:, :, {start}:{end}, :, :] = {chunk.shape[2]}")
|
| 438 |
-
start += steps
|
| 439 |
-
i += 1
|
| 440 |
else:
|
| 441 |
print(f"[DEBUG] numero chunks minimo")
|
| 442 |
print(f"[DEBUG] latents_brutos[:, :, :, :, :] = {latents_brutos.shape[2]}")
|
|
|
|
| 423 |
print(f"[DEBUG] Num LATENTES por chunk = {num_latente_por_chunk}")
|
| 424 |
print(f"[DEBUG] Número de chunks = {steps}")
|
| 425 |
|
| 426 |
+
|
|
|
|
|
|
|
| 427 |
if steps > 1:
|
| 428 |
while i < steps:
|
| 429 |
start = i*num_latente_por_chunk
|
|
|
|
| 433 |
chunk = latents_brutos[:, :, start:end, :, :].clone()
|
| 434 |
chunks.append(chunk)
|
| 435 |
print(f"[DEBUG] chunk{i+1}[:, :, {start}:{end}, :, :] = {chunk.shape[2]}")
|
|
|
|
|
|
|
| 436 |
else:
|
| 437 |
print(f"[DEBUG] numero chunks minimo")
|
| 438 |
print(f"[DEBUG] latents_brutos[:, :, :, :, :] = {latents_brutos.shape[2]}")
|