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