Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
divyashreepathihalli committed Dec 18, 2023
1 parent 821a3a1 commit 0a6c635
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions keras_cv/callbacks/pycoco_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@

from keras_cv import bounding_box
from keras_cv.api_export import keras_cv_export
from keras_cv.backend import keras
from keras_cv.backend import ops
from keras_cv.backend.keras.callbacks import Callback
from keras_cv.metrics.coco import compute_pycoco_metrics
from keras_cv.models.object_detection.__internal__ import unpack_input
from keras_cv.utils.conditional_imports import assert_pycocotools_installed


@keras_cv_export("keras_cv.callbacks.PyCOCOCallback")
class PyCOCOCallback(Callback):
class PyCOCOCallback(keras.callbacks.Callback):
def __init__(
self, validation_data, bounding_box_format, cache=True, **kwargs
):
Expand Down
4 changes: 2 additions & 2 deletions keras_cv/callbacks/waymo_evaluation_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import tensorflow as tf

from keras_cv.api_export import keras_cv_export
from keras_cv.backend.keras.callbacks import Callback
from keras_cv.backend import keras
from keras_cv.bounding_box_3d import CENTER_XYZ_DXDYDZ_PHI
from keras_cv.utils import assert_waymo_open_dataset_installed

Expand All @@ -30,7 +30,7 @@


@keras_cv_export("keras_cv.callbacks.WaymoEvaluationCallback")
class WaymoEvaluationCallback(Callback):
class WaymoEvaluationCallback(keras.callbacks.Callback):
def __init__(self, validation_data, config=None, **kwargs):
"""Creates a callback to evaluate Waymo Open Dataset (WOD) metrics on a
validation dataset.
Expand Down
6 changes: 3 additions & 3 deletions keras_cv/layers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from keras_cv.backend.keras.layers import CenterCrop
from keras_cv.backend.keras.layers import RandomHeight
from keras_cv.backend.keras.layers import RandomWidth
from tensorflow.keras.layers import CenterCrop
from tensorflow.keras.layers import RandomHeight
from tensorflow.keras.layers import RandomWidth
from keras_cv.layers.augmenter import Augmenter
from keras_cv.layers.feature_pyramid import FeaturePyramid
from keras_cv.layers.fusedmbconv import FusedMBConvBlock
Expand Down
7 changes: 4 additions & 3 deletions keras_cv/layers/preprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
# Also export the image KPLs from core keras, so that user can import all the
# image KPLs from one place.

from keras_cv.backend.keras.layers import CenterCrop
from keras_cv.backend.keras.layers import RandomHeight
from keras_cv.backend.keras.layers import RandomWidth
from tensorflow.keras.layers import CenterCrop
from tensorflow.keras.layers import RandomHeight
from tensorflow.keras.layers import RandomWidth

from keras_cv.layers.preprocessing.aug_mix import AugMix
from keras_cv.layers.preprocessing.auto_contrast import AutoContrast
from keras_cv.layers.preprocessing.base_image_augmentation_layer import (
Expand Down
2 changes: 1 addition & 1 deletion keras_cv/training/contrastive/simclr_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from keras_Cv.backend import keras
from keras_cv.backend import keras

from keras_cv.backend.keras import layers
from keras_cv.layers import preprocessing
Expand Down

0 comments on commit 0a6c635

Please sign in to comment.