Skip to content

Commit

Permalink
Add Bounding Box Utils (keras-team#1791)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sineeli authored and mattdangerw committed Sep 10, 2024
1 parent 1ad61e8 commit 0ecf860
Show file tree
Hide file tree
Showing 10 changed files with 1,362 additions and 0 deletions.
1 change: 1 addition & 0 deletions keras_nlp/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
since your modifications would be overwritten.
"""

from keras_nlp.api import bounding_box
from keras_nlp.api import layers
from keras_nlp.api import metrics
from keras_nlp.api import models
Expand Down
23 changes: 23 additions & 0 deletions keras_nlp/api/bounding_box/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2024 The KerasNLP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
"""

from keras_nlp.src.bounding_box.converters import convert_format
from keras_nlp.src.bounding_box.to_dense import to_dense
from keras_nlp.src.bounding_box.to_ragged import to_ragged
from keras_nlp.src.bounding_box.validate_format import validate_format
13 changes: 13 additions & 0 deletions keras_nlp/src/bounding_box/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 The KerasNLP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Loading

0 comments on commit 0ecf860

Please sign in to comment.