Update api/ltx_server.py
Browse files- api/ltx_server.py +6 -6
api/ltx_server.py
CHANGED
|
@@ -424,15 +424,15 @@ class VideoService:
|
|
| 424 |
print(f"[DEBUG] Número de chunks = {n_chunks}")
|
| 425 |
if n_chunks > 1:
|
| 426 |
i=0
|
| 427 |
-
while i < n_chunks
|
| 428 |
-
start = num_latente_por_chunk*i
|
| 429 |
-
end = start+num_latente_por_chunk+overlap
|
| 430 |
-
if
|
| 431 |
chunk = latents_brutos[:, :, start:end, :, :].clone().detach()
|
| 432 |
-
print(f"[DEBUG] chunk{i}[:, :, {start}:{end}, :, :] = {chunk.shape[2]}")
|
| 433 |
else:
|
| 434 |
chunk = latents_brutos[:, :, start:, :, :].clone().detach()
|
| 435 |
-
print(f"[DEBUG] chunk{i}[:, :, {start}:, :, :] = {chunk.shape[2]}")
|
| 436 |
chunks.append(chunk)
|
| 437 |
i+=1
|
| 438 |
else:
|
|
|
|
| 424 |
print(f"[DEBUG] Número de chunks = {n_chunks}")
|
| 425 |
if n_chunks > 1:
|
| 426 |
i=0
|
| 427 |
+
while i < n_chunks:
|
| 428 |
+
start = (num_latente_por_chunk*i)
|
| 429 |
+
end = (start+num_latente_por_chunk+overlap)
|
| 430 |
+
if i+1 < n_chunks
|
| 431 |
chunk = latents_brutos[:, :, start:end, :, :].clone().detach()
|
| 432 |
+
print(f"[DEBUG] chunk{i+1}[:, :, {start}:{end}, :, :] = {chunk.shape[2]}")
|
| 433 |
else:
|
| 434 |
chunk = latents_brutos[:, :, start:, :, :].clone().detach()
|
| 435 |
+
print(f"[DEBUG] chunk{i+1}[:, :, {start}:, :, :] = {chunk.shape[2]}")
|
| 436 |
chunks.append(chunk)
|
| 437 |
i+=1
|
| 438 |
else:
|