Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -407,12 +407,12 @@ class VideoService:
|
|
| 407 |
"negative_prompt": negative_prompt,
|
| 408 |
"height": downscaled_height,
|
| 409 |
"width": downscaled_width,
|
| 410 |
-
"num_frames": ((actual_num_frames//8)
|
| 411 |
"frame_rate": int(DEFAULT_FPS),
|
| 412 |
"generator": torch.Generator(device=self.device).manual_seed(used_seed),
|
| 413 |
"output_type": "latent",
|
| 414 |
"vae_per_channel_normalize": True,
|
| 415 |
-
"is_video": True,
|
| 416 |
"conditioning_items": conditioning_items,
|
| 417 |
"guidance_scale": float(guidance_scale),
|
| 418 |
**(self.config.get("first_pass", {}))
|
|
|
|
| 407 |
"negative_prompt": negative_prompt,
|
| 408 |
"height": downscaled_height,
|
| 409 |
"width": downscaled_width,
|
| 410 |
+
"num_frames": ((actual_num_frames//8))+1,
|
| 411 |
"frame_rate": int(DEFAULT_FPS),
|
| 412 |
"generator": torch.Generator(device=self.device).manual_seed(used_seed),
|
| 413 |
"output_type": "latent",
|
| 414 |
"vae_per_channel_normalize": True,
|
| 415 |
+
#"is_video": True,
|
| 416 |
"conditioning_items": conditioning_items,
|
| 417 |
"guidance_scale": float(guidance_scale),
|
| 418 |
**(self.config.get("first_pass", {}))
|