Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import paths for various internal imports to play nice with Namex. #2063

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading