Skip to content

Commit

Permalink
fix owlv2 size dict
Browse files Browse the repository at this point in the history
  • Loading branch information
yonigozlan committed Oct 30, 2024
1 parent ccbac25 commit 8e6a2d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformers/models/owlv2/image_processing_owlv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import numpy as np

from ...image_processing_utils import BaseImageProcessor, BatchFeature
from ...image_processing_utils import BaseImageProcessor, BatchFeature, get_size_dict
from ...image_transforms import (
center_to_corners_format,
pad,
Expand Down Expand Up @@ -399,6 +399,7 @@ def preprocess(
image_std = image_std if image_std is not None else self.image_std

size = size if size is not None else self.size
size = get_size_dict(size) # for BC

images = make_list_of_images(images)

Expand Down

0 comments on commit 8e6a2d9

Please sign in to comment.