diff --git a/html/reference-cloud.json b/html/reference-cloud.json index 4f8f17fff..6c7ce0981 100644 --- a/html/reference-cloud.json +++ b/html/reference-cloud.json @@ -13,4 +13,4 @@ "tags": "cloud", "skip": true } -} \ No newline at end of file +} diff --git a/html/reference-community.json b/html/reference-community.json index cf340a0f4..b76aab420 100644 --- a/html/reference-community.json +++ b/html/reference-community.json @@ -129,4 +129,4 @@ "tags": "community", "skip": true } -} \ No newline at end of file +} diff --git a/html/reference-quant.json b/html/reference-quant.json index ef5d51f4e..55add287f 100644 --- a/html/reference-quant.json +++ b/html/reference-quant.json @@ -216,4 +216,4 @@ "tags": "quantized", "date": "2025 January" } -} \ No newline at end of file +} diff --git a/launch.py b/launch.py index 54944a19c..f74e96584 100755 --- a/launch.py +++ b/launch.py @@ -70,7 +70,6 @@ def get_custom_args(): ld = [f'{k}={v}' for k, v in os.environ.items() if k.startswith('LD_')] compute = [f'{k}={v}' for k, v in os.environ.items() if 'TORCH' in k or 'CUDA' in k or 'ROCM' in k or 'MIOPEN' in k] installer.log.debug(f'Flags: sd={env} ld={ld} compute={compute}') - installer.log.debug(f'Flags ') rec('args') diff --git a/modules/processing_callbacks.py b/modules/processing_callbacks.py index 327fb8100..eed7f985f 100644 --- a/modules/processing_callbacks.py +++ b/modules/processing_callbacks.py @@ -121,15 +121,14 @@ def diffusers_callback(pipe, step: int = 0, timestep: int = 0, kwargs: dict = {} width = max(getattr(p, 'width', 0), getattr(p, 'hr_upscale_to_x', 0)) height = max(getattr(p, 'height', 0), getattr(p, 'hr_upscale_to_y', 0)) else: - width = getattr(p, 'width', 0) - height = getattr(p, 'height', 0) + width = getattr(p, 'width', 1024) + height = getattr(p, 'height', 1024) shared.state.current_latent = pipe._unpack_latents(kwargs['latents'], height, width, pipe.vae_scale_factor) # pylint: disable=protected-access if current_noise_pred is not None: shared.state.current_noise_pred = pipe._unpack_latents(current_noise_pred, height, width, pipe.vae_scale_factor) # pylint: disable=protected-access else: shared.state.current_noise_pred = current_noise_pred elif hasattr(pipe, "_unpatchify_latents"): # FLUX.2 - unpack [B, seq, patch_ch] to [B, ch, H, W] - # Get dimensions for unpacking, same logic as FLUX.1 vae_scale = getattr(pipe, 'vae_scale_factor', 8) if p.hr_resize_mode > 0 and (p.hr_upscaler != 'None' or p.hr_resize_mode == 5) and p.is_hr_pass: width = max(getattr(p, 'width', 0), getattr(p, 'hr_upscale_to_x', 0)) diff --git a/modules/video_models/video_save.py b/modules/video_models/video_save.py index 495bb64e5..05190af27 100644 --- a/modules/video_models/video_save.py +++ b/modules/video_models/video_save.py @@ -4,6 +4,7 @@ import cv2 import numpy as np import torch import einops +from PIL import Image from modules import shared, errors ,timer, rife, processing from modules.video_models.video_utils import check_av