initial commit 78ebd09
Ross Wightman commited on
How to use timm/maxxvitv2_rmlp_base_rw_224.sw_in12k with timm:
import timm
model = timm.create_model("hf-hub:timm/maxxvitv2_rmlp_base_rw_224.sw_in12k", pretrained=True)How to use timm/maxxvitv2_rmlp_base_rw_224.sw_in12k with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="timm/maxxvitv2_rmlp_base_rw_224.sw_in12k")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("timm/maxxvitv2_rmlp_base_rw_224.sw_in12k", device_map="auto")