ILSVRC/imagenet-1k
Viewer • Updated • 1.43M • 81.2k • 834
How to use unionpoint/tf_efficientnetv2_s.ft_plantdoc_384 with timm:
import timm
model = timm.create_model("hf_hub:unionpoint/tf_efficientnetv2_s.ft_plantdoc_384", pretrained=True)How to use unionpoint/tf_efficientnetv2_s.ft_plantdoc_384 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="unionpoint/tf_efficientnetv2_s.ft_plantdoc_384")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("unionpoint/tf_efficientnetv2_s.ft_plantdoc_384", dtype="auto")A EfficientNet-v2 small image classification model. Trained on PlantDoc
Built with:
import torch
import timm
# create model
model = timm.create_model(
"tf_efficientnetv2_s",
pretrained=False,
num_classes=39,
)
# load weights
state_dict = torch.load("model.bin", map_location="cpu")
model.load_state_dict(state_dict)