Skip to content

Commit beae2f4

Browse files
authored
Add Bounding Box Utils (#1791)
* Bounding box utils * - Correct test cases * - Remove hard tensorflow dtype * - fix api gen * - Fix import for test cases - Use setup for converters test case * - fix api_gen issue * - FIx api gen * - Fix api gen error * - Correct test cases as per new api changes
1 parent fdf6b6b commit beae2f4

File tree

10 files changed

+1362
-0
lines changed

10 files changed

+1362
-0
lines changed

keras_nlp/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
since your modifications would be overwritten.
1818
"""
1919

20+
from keras_nlp.api import bounding_box
2021
from keras_nlp.api import layers
2122
from keras_nlp.api import metrics
2223
from keras_nlp.api import models
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 The KerasNLP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""DO NOT EDIT.
15+
16+
This file was autogenerated. Do not edit it by hand,
17+
since your modifications would be overwritten.
18+
"""
19+
20+
from keras_nlp.src.bounding_box.converters import convert_format
21+
from keras_nlp.src.bounding_box.to_dense import to_dense
22+
from keras_nlp.src.bounding_box.to_ragged import to_ragged
23+
from keras_nlp.src.bounding_box.validate_format import validate_format
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2024 The KerasNLP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.

0 commit comments

Comments
 (0)