[Bugfix] Fix HunyuanVL XD-RoPE (#29593)
Signed-off-by: Roger Wang <hey@rogerw.io> Co-authored by: grider-transwithai <grider@transwith.ai>
This commit is contained in:
@@ -195,9 +195,9 @@ class HunYuanVLImageProcessor(BaseImageProcessor):
|
||||
processed_images = []
|
||||
for image in images:
|
||||
if do_resize:
|
||||
resized_width, resized_height = smart_resize(
|
||||
width,
|
||||
height,
|
||||
resized_height, resized_width = smart_resize(
|
||||
height=height,
|
||||
width=width,
|
||||
factor=patch_size * merge_size,
|
||||
min_pixels=self.min_pixels,
|
||||
max_pixels=self.max_pixels,
|
||||
|
||||
Reference in New Issue
Block a user