Skip to content

Commit

Permalink
Fix import path for keras_cv.utils in Resizing Layer
Browse files Browse the repository at this point in the history
This is causing not-so-nice behavior with Namex, because for a pip-installed version of KerasCV this import path doesn't exist, but Namex can't add the `src` prefix to it because of how it's imported.
  • Loading branch information
ianstenbit authored Sep 8, 2023
1 parent 330f666 commit 82630bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions keras_cv/layers/preprocessing/resizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

import tensorflow as tf

import keras_cv.utils
from keras_cv import bounding_box
from keras_cv.api_export import keras_cv_export
from keras_cv.backend import ops
from keras_cv.layers.preprocessing.base_image_augmentation_layer import (
BaseImageAugmentationLayer,
)
from keras_cv.utils import get_interpolation

H_AXIS = -3
W_AXIS = -2
Expand Down Expand Up @@ -91,9 +91,7 @@ def __init__(
self.interpolation = interpolation
self.crop_to_aspect_ratio = crop_to_aspect_ratio
self.pad_to_aspect_ratio = pad_to_aspect_ratio
self._interpolation_method = keras_cv.utils.get_interpolation(
interpolation
)
self._interpolation_method = get_interpolation(interpolation)
self.bounding_box_format = bounding_box_format
self.force_output_dense_images = True

Expand Down

0 comments on commit 82630bf

Please sign in to comment.