Disclaimer: The team releasing EfficientNet did not write a model card for this model so this model card has been written by the Hugging Face team.
Model description
EfficientNet is a mobile friendly pure convolutional model (ConvNet) that proposes a new scaling method that uniformly scales all dimensions of depth/width/resolution using a simple yet highly effective compound coefficient.
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:
import torch
from datasets import load_dataset
from transformers import EfficientNetImageProcessor, EfficientNetForImageClassification
dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][0]
preprocessor = EfficientNetImageProcessor.from_pretrained("google/efficientnet-b0")
model = EfficientNetForImageClassification.from_pretrained("google/efficientnet-b0")
inputs = preprocessor(image, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
# model predicts one of the 1000 ImageNet classes
predicted_label = logits.argmax(-1).item()
print(model.config.id2label[predicted_label]),
@article{Tan2019EfficientNetRM,
title={EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks},
author={Mingxing Tan and Quoc V. Le},
journal={ArXiv},
year={2019},
volume={abs/1905.11946}
}
Runs of google efficientnet-b0 on huggingface.co
10.4K
Total runs
0
24-hour runs
631
3-day runs
3.3K
7-day runs
4.4K
30-day runs
More Information About efficientnet-b0 huggingface.co Model
efficientnet-b0 huggingface.co is an AI model on huggingface.co that provides efficientnet-b0's model effect (), which can be used instantly with this google efficientnet-b0 model. huggingface.co supports a free trial of the efficientnet-b0 model, and also provides paid use of the efficientnet-b0. Support call efficientnet-b0 model through api, including Node.js, Python, http.
efficientnet-b0 huggingface.co is an online trial and call api platform, which integrates efficientnet-b0's modeling effects, including api services, and provides a free online trial of efficientnet-b0, you can try efficientnet-b0 online for free by clicking the link below.
google efficientnet-b0 online free url in huggingface.co:
efficientnet-b0 is an open source model from GitHub that offers a free installation service, and any user can find efficientnet-b0 on GitHub to install. At the same time, huggingface.co provides the effect of efficientnet-b0 install, users can directly use efficientnet-b0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.