You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C API (stable-diffusion.h) defines sd_hires_params_t inside sd_vid_gen_params_t for the trained Spatial Latent Upscaler (e.g. LTX 2.3's ltx-2.3-spatial-upscaler-x2-1.1.safetensors). The ctypes struct in the Python bindings already has this field, but generate_video() does not accept or pass through the hires parameters.
Note: The constructor's upscaler_path is for ESRGAN pixel upscalers only and causes a segfault when used with the LTX spatial upscaler.
Patch
Three changes to stable_diffusion.py:
1. New parameters in generate_video() signature
hires: bool = False,
hires_path: str = "",
hires_upscaler: Union[str, SDHiresUpscaler, int, float] = "model",
hires_scale: float = 2.0,
hires_width: int = 0,
hires_height: int = 0,
hires_steps: int = 0,
hires_denoising_strength: float = 0.7,
hires_upscale_tile_size: int = 128,
Activity