Views
No views yet
pip install -U -q keras-hub
pip install -U -q keras| Preset name | Parameters | Description |
|---|---|---|
| mobilenet_v3_small_050_imagenet | 278.78K | Small MobileNet V3 model pre-trained on the ImageNet 1k dataset at a 224x224 resolution. |
| mobilenet_v3_large_100_imagenet | ||
| mobilenet_v3_large_100_imagenet_21k | ||
| mobilenet_v3_small_100_imagenet |
Rescaling(scale=1 / 255)
layer.layers.Input())
to use as image input for the model.alpha < 1.0, proportionally decreases the number
of filters in each layer.alpha > 1.0, proportionally increases the number
of filters in each layer.alpha = 1, default number of filters from the paper
are used at each layer.1import keras_cv
2import numpy as np
3
4input_data = np.ones(shape=(8, 224, 224, 3))
5
6model = keras_cv.models.MobileNetV3Backbone.from_preset("mobilenet_v3_small_050_imagenet")
7output = model(input_data)1import keras_cv
2import numpy as np
3
4input_data = np.ones(shape=(8, 224, 224, 3))
5
6model = keras_cv.models.MobileNetV3Backbone.from_preset("hf://keras/mobilenet_v3_small_050_imagenet")
7output = model(input_data)