forked from keras-team/keras-hub
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ushareng
committed
Oct 7, 2024
1 parent
35217ba
commit 2e1e9c0
Showing
9 changed files
with
235 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from keras_hub.src.api_export import keras_hub_export | ||
from keras_hub.src.models.image_classifier import ImageClassifier | ||
from keras_hub.src.models.mobilenet.mobilenet_backbone import MobileNetBackbone | ||
|
||
from keras_hub.src.models.mobilenet.mobilenet_image_classifier_preprocessor import ( | ||
MobileNetImageClassifierPreprocessor, | ||
) | ||
|
||
@keras_hub_export("keras_hub.models.MobileNetImageClassifier") | ||
class MobileNetImageClassifier(ImageClassifier): | ||
backbone_cls = MobileNetBackbone | ||
preprocessor_cls = MobileNetImageClassifierPreprocessor |
14 changes: 14 additions & 0 deletions
14
keras_hub/src/models/mobilenet/mobilenet_image_classifier_preprocessor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from keras_hub.src.api_export import keras_hub_export | ||
from keras_hub.src.models.image_classifier_preprocessor import ( | ||
ImageClassifierPreprocessor, | ||
) | ||
from keras_hub.src.models.mobilenet.mobilenet_backbone import MobileNetBackbone | ||
from keras_hub.src.models.mobilenet.mobilenet_image_converter import ( | ||
MobileNetImageConverter, | ||
) | ||
|
||
|
||
@keras_hub_export("keras_hub.models.MobileNetImageClassifierPreprocessor") | ||
class MobileNetImageClassifierPreprocessor(ImageClassifierPreprocessor): | ||
backbone_cls = MobileNetBackbone | ||
image_converter_cls = MobileNetImageConverter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from keras_hub.src.api_export import keras_hub_export | ||
from keras_hub.src.layers.preprocessing.image_converter import ImageConverter | ||
from keras_hub.src.models.mobilenet.mobilenet_backbone import MobileNetBackbone | ||
|
||
|
||
@keras_hub_export("keras_hub.layers.MobileNetImageConverter") | ||
class MobileNetImageConverter(ImageConverter): | ||
backbone_cls = MobileNetBackbone |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.