Skip to content

Commit c3b01be

Browse files
authored
Make 3d namespacing consistent (#1288)
1 parent c61cb24 commit c3b01be

40 files changed

+107
-107
lines changed

keras_cv/datasets/waymo/transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from waymo_open_dataset.utils import transform_utils
2828

2929
from keras_cv.datasets.waymo import struct
30-
from keras_cv.layers.object_detection3d import voxel_utils
30+
from keras_cv.layers.object_detection_3d import voxel_utils
3131

3232
WOD_FRAME_OUTPUT_SIGNATURE = {
3333
"frame_id": tf.TensorSpec((), tf.int64),

keras_cv/layers/__init__.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,14 @@
2020
from keras_cv.layers.feature_pyramid import FeaturePyramid
2121
from keras_cv.layers.fusedmbconv import FusedMBConvBlock
2222
from keras_cv.layers.mbconv import MBConvBlock
23-
from keras_cv.layers.object_detection3d.voxelization import DynamicVoxelization
2423
from keras_cv.layers.object_detection.anchor_generator import AnchorGenerator
2524
from keras_cv.layers.object_detection.multi_class_non_max_suppression import (
2625
MultiClassNonMaxSuppression,
2726
)
2827
from keras_cv.layers.object_detection.retina_net_label_encoder import (
2928
RetinaNetLabelEncoder,
3029
)
31-
from keras_cv.layers.preprocessing3d.frustum_random_dropping_points import (
32-
FrustumRandomDroppingPoints,
33-
)
34-
from keras_cv.layers.preprocessing3d.frustum_random_point_feature_noise import (
35-
FrustumRandomPointFeatureNoise,
36-
)
37-
from keras_cv.layers.preprocessing3d.global_random_dropping_points import (
38-
GlobalRandomDroppingPoints,
39-
)
40-
from keras_cv.layers.preprocessing3d.global_random_flip_y import GlobalRandomFlipY
41-
from keras_cv.layers.preprocessing3d.global_random_rotation import GlobalRandomRotation
42-
from keras_cv.layers.preprocessing3d.global_random_scaling import GlobalRandomScaling
43-
from keras_cv.layers.preprocessing3d.global_random_translation import (
44-
GlobalRandomTranslation,
45-
)
46-
from keras_cv.layers.preprocessing3d.group_points_by_bounding_boxes import (
47-
GroupPointsByBoundingBoxes,
48-
)
49-
from keras_cv.layers.preprocessing3d.random_copy_paste import RandomCopyPaste
50-
from keras_cv.layers.preprocessing3d.random_drop_box import RandomDropBox
51-
from keras_cv.layers.preprocessing3d.swap_background import SwapBackground
30+
from keras_cv.layers.object_detection_3d.voxelization import DynamicVoxelization
5231
from keras_cv.layers.preprocessing.aug_mix import AugMix
5332
from keras_cv.layers.preprocessing.augmenter import Augmenter
5433
from keras_cv.layers.preprocessing.auto_contrast import AutoContrast
@@ -95,6 +74,27 @@
9574
from keras_cv.layers.preprocessing.rescaling import Rescaling
9675
from keras_cv.layers.preprocessing.resizing import Resizing
9776
from keras_cv.layers.preprocessing.solarization import Solarization
77+
from keras_cv.layers.preprocessing_3d.frustum_random_dropping_points import (
78+
FrustumRandomDroppingPoints,
79+
)
80+
from keras_cv.layers.preprocessing_3d.frustum_random_point_feature_noise import (
81+
FrustumRandomPointFeatureNoise,
82+
)
83+
from keras_cv.layers.preprocessing_3d.global_random_dropping_points import (
84+
GlobalRandomDroppingPoints,
85+
)
86+
from keras_cv.layers.preprocessing_3d.global_random_flip_y import GlobalRandomFlipY
87+
from keras_cv.layers.preprocessing_3d.global_random_rotation import GlobalRandomRotation
88+
from keras_cv.layers.preprocessing_3d.global_random_scaling import GlobalRandomScaling
89+
from keras_cv.layers.preprocessing_3d.global_random_translation import (
90+
GlobalRandomTranslation,
91+
)
92+
from keras_cv.layers.preprocessing_3d.group_points_by_bounding_boxes import (
93+
GroupPointsByBoundingBoxes,
94+
)
95+
from keras_cv.layers.preprocessing_3d.random_copy_paste import RandomCopyPaste
96+
from keras_cv.layers.preprocessing_3d.random_drop_box import RandomDropBox
97+
from keras_cv.layers.preprocessing_3d.swap_background import SwapBackground
9898
from keras_cv.layers.regularization.drop_path import DropPath
9999
from keras_cv.layers.regularization.dropblock_2d import DropBlock2D
100100
from keras_cv.layers.regularization.squeeze_excite import SqueezeAndExcite2D

keras_cv/layers/object_detection3d/center_net_label_encoder.py renamed to keras_cv/layers/object_detection_3d/center_net_label_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import numpy as np
2121
import tensorflow as tf
2222

23-
from keras_cv.layers.object_detection3d import voxel_utils
23+
from keras_cv.layers.object_detection_3d import voxel_utils
2424

2525
# Infinite voxel size.
2626
INF_VOXEL_SIZE = 100

keras_cv/layers/object_detection3d/center_net_label_encoder_test.py renamed to keras_cv/layers/object_detection_3d/center_net_label_encoder_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import tensorflow as tf
1717

18-
from keras_cv.layers.object_detection3d.center_net_label_encoder import (
18+
from keras_cv.layers.object_detection_3d.center_net_label_encoder import (
1919
CenterNetLabelEncoder,
2020
)
2121

keras_cv/layers/object_detection3d/heatmap_decoder.py renamed to keras_cv/layers/object_detection_3d/heatmap_decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import numpy as np
1919
import tensorflow as tf
2020

21-
from keras_cv.layers.object_detection3d import voxel_utils
21+
from keras_cv.layers.object_detection_3d import voxel_utils
2222

2323

2424
def decode_bin_heading(predictions: tf.Tensor, num_bin: int) -> tf.Tensor:

keras_cv/layers/object_detection3d/voxel_utils_test.py renamed to keras_cv/layers/object_detection_3d/voxel_utils_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import tensorflow as tf
1616

17-
from keras_cv.layers.object_detection3d import voxel_utils
17+
from keras_cv.layers.object_detection_3d import voxel_utils
1818

1919

2020
class PadOrTrimToTest(tf.test.TestCase):

keras_cv/layers/object_detection3d/voxelization.py renamed to keras_cv/layers/object_detection_3d/voxelization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import numpy as np
1919
import tensorflow as tf
2020

21-
from keras_cv.layers.object_detection3d import voxel_utils
21+
from keras_cv.layers.object_detection_3d import voxel_utils
2222

2323
EPSILON = 1e-4
2424
VOXEL_FEATURE_MIN = -1000

keras_cv/layers/object_detection3d/voxelization_test.py renamed to keras_cv/layers/object_detection_3d/voxelization_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import tensorflow as tf
1616

17-
from keras_cv.layers.object_detection3d.voxelization import DynamicVoxelization
17+
from keras_cv.layers.object_detection_3d.voxelization import DynamicVoxelization
1818

1919

2020
class VoxelizationTest(tf.test.TestCase):

0 commit comments

Comments
 (0)