MobileNets are small, low-latency, low-power models parameterized to meet the resource constraints of a variety of use cases. They can be built upon for classification, detection, embeddings and segmentation similar to how other popular large scale models, such as Inception, are used. MobileNets can be run efficiently on mobile devices [...] MobileNets trade off between latency, size and accuracy while comparing favorably with popular models from the literature.
The checkpoints are named
mobilenet_v2_
depth
_
size
, for example
mobilenet_v2_1.0_224
, where
1.0
is the depth multiplier and
224
is the resolution of the input images the model was trained on.
Intended uses & limitations
You can use the raw model for image classification. See the
model hub
to look for fine-tuned versions on a task that interests you.
How to use
Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import requests
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
preprocessor = AutoImageProcessor.from_pretrained("google/mobilenet_v2_1.0_224")
model = AutoModelForImageClassification.from_pretrained("google/mobilenet_v2_1.0_224")
inputs = preprocessor(images=image, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes
predicted_class_idx = logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[predicted_class_idx])
Note: This model actually predicts 1001 classes, the 1000 classes from ImageNet plus an extra “background” class (index 0).
Currently, both the feature extractor and model support PyTorch.
BibTeX entry and citation info
@inproceedings{mobilenetv22018,
title={MobileNetV2: Inverted Residuals and Linear Bottlenecks},
author={Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen},
booktitle={CVPR},
year={2018}
}
Runs of google mobilenet_v2_1.0_224 on huggingface.co
52.8K
Total runs
0
24-hour runs
2.6K
3-day runs
-1.1K
7-day runs
-25.8K
30-day runs
More Information About mobilenet_v2_1.0_224 huggingface.co Model
mobilenet_v2_1.0_224 huggingface.co is an AI model on huggingface.co that provides mobilenet_v2_1.0_224's model effect (), which can be used instantly with this google mobilenet_v2_1.0_224 model. huggingface.co supports a free trial of the mobilenet_v2_1.0_224 model, and also provides paid use of the mobilenet_v2_1.0_224. Support call mobilenet_v2_1.0_224 model through api, including Node.js, Python, http.
mobilenet_v2_1.0_224 huggingface.co is an online trial and call api platform, which integrates mobilenet_v2_1.0_224's modeling effects, including api services, and provides a free online trial of mobilenet_v2_1.0_224, you can try mobilenet_v2_1.0_224 online for free by clicking the link below.
google mobilenet_v2_1.0_224 online free url in huggingface.co:
mobilenet_v2_1.0_224 is an open source model from GitHub that offers a free installation service, and any user can find mobilenet_v2_1.0_224 on GitHub to install. At the same time, huggingface.co provides the effect of mobilenet_v2_1.0_224 install, users can directly use mobilenet_v2_1.0_224 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mobilenet_v2_1.0_224 install url in huggingface.co: