mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Fix: siglip image processor rgb_convert is not being applied correctly. (#34301)
Fix: do_convert_rgb
This commit is contained in:
parent
0db91c3c8d
commit
3cd78be34e
1 changed files with 3 additions and 3 deletions
|
|
@ -198,12 +198,12 @@ class SiglipImageProcessor(BaseImageProcessor):
|
|||
size=size,
|
||||
resample=resample,
|
||||
)
|
||||
# All transformations expect numpy arrays.
|
||||
images = [to_numpy_array(image) for image in images]
|
||||
|
||||
if do_convert_rgb:
|
||||
images = [convert_to_rgb(image) for image in images]
|
||||
|
||||
# All transformations expect numpy arrays.
|
||||
images = [to_numpy_array(image) for image in images]
|
||||
|
||||
if is_scaled_image(images[0]) and do_rescale:
|
||||
logger.warning_once(
|
||||
"It looks like you are trying to rescale already rescaled images. If the input"
|
||||
|
|
|
|||
Loading…
Reference in a new issue