1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00
This commit is contained in:
yiyi@huggingface.co
2025-11-27 05:25:28 +00:00
parent a0b2fe02b0
commit db0127cb9d

View File

@@ -90,7 +90,7 @@ class HunyuanVideo15ImageProcessor(VideoProcessor):
def calculate_default_height_width(self, height: int, width: int, target_size: int):
crop_size_list = generate_crop_size_list(base_size=target_size, patch_size=self.vae_scale_factor)
crop_size_list = generate_crop_size_list(base_size=target_size, patch_size=self.config.vae_scale_factor)
aspect_ratios = np.array([round(float(h) / float(w), 5) for h, w in crop_size_list])
height, width = get_closest_ratio(height, width, aspect_ratios, crop_size_list)[0]