Fix PT weights; Add TF weights c072a43
Joao Gante commited on
How to use facebook/convnext-xlarge-224-22k-1k with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="facebook/convnext-xlarge-224-22k-1k")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("facebook/convnext-xlarge-224-22k-1k")
model = AutoModelForImageClassification.from_pretrained("facebook/convnext-xlarge-224-22k-1k", device_map="auto")