Skip to content

Commit

Permalink
Add BASNet Segmentation Model (#2006) (#2271)
Browse files Browse the repository at this point in the history
* BASNet model initial code structure

* adding test and initial preset details

* adding comments

* cleaning and formatting code

* keras 3 support added

* disabling preset test for BASNet
  • Loading branch information
hamidriasat authored and sampathweb committed Jan 31, 2024
1 parent 1474615 commit b362546
Show file tree
Hide file tree
Showing 6 changed files with 660 additions and 0 deletions.
1 change: 1 addition & 0 deletions keras_cv/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
from keras_cv.models.object_detection.yolo_v8.yolo_v8_detector import (
YOLOV8Detector,
)
from keras_cv.models.segmentation import BASNet
from keras_cv.models.segmentation import DeepLabV3Plus
from keras_cv.models.segmentation import SAMMaskDecoder
from keras_cv.models.segmentation import SAMPromptEncoder
Expand Down
1 change: 1 addition & 0 deletions keras_cv/models/segmentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from keras_cv.models.segmentation.basnet import BASNet
from keras_cv.models.segmentation.deeplab_v3_plus import DeepLabV3Plus
from keras_cv.models.segmentation.segformer import SegFormer
from keras_cv.models.segmentation.segment_anything import SAMMaskDecoder
Expand Down
15 changes: 15 additions & 0 deletions keras_cv/models/segmentation/basnet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 The KerasCV 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.

from keras_cv.models.segmentation.basnet.basnet import BASNet
Loading

0 comments on commit b362546

Please sign in to comment.