Skip to content

Commit

Permalink
Safer import
Browse files Browse the repository at this point in the history
  • Loading branch information
amyeroberts committed May 1, 2024
1 parent b5be4e9 commit 3268821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/image_processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from .dynamic_module_utils import custom_object_save
from .feature_extraction_utils import BatchFeature as BaseBatchFeature
from .image_transforms import center_crop, normalize, rescale
from .image_utils import ChannelDimension, PILImageResampling, is_scaled_image, to_numpy_array, valid_images
from .image_utils import ChannelDimension, is_scaled_image, to_numpy_array, valid_images
from .utils import (
IMAGE_PROCESSOR_NAME,
PushToHubMixin,
Expand All @@ -44,6 +44,8 @@
if is_vision_available():
from PIL import Image

from .image_utils import PILImageResampling

logger = logging.get_logger(__name__)


Expand Down

0 comments on commit 3268821

Please sign in to comment.