How to use bn22/naflexvit_base_patch16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="bn22/naflexvit_base_patch16")
# Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("bn22/naflexvit_base_patch16") model = AutoModel.from_pretrained("bn22/naflexvit_base_patch16")
How to use bn22/naflexvit_base_patch16 with timm:
import timm model = timm.create_model("hf_hub:bn22/naflexvit_base_patch16", pretrained=True)
The community tab is the place to discuss and collaborate with the HF community!