Instructions to use facebook/convnextv2-base-1k-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/convnextv2-base-1k-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="facebook/convnextv2-base-1k-224") 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/convnextv2-base-1k-224") model = AutoModelForImageClassification.from_pretrained("facebook/convnextv2-base-1k-224") - Notebooks
- Google Colab
- Kaggle
Finetune using Huggingface trainer too long.
#4
by jluckyboyj - opened
I use this code https://colab.research.google.com/github/huggingface/notebooks/blob/main/transformers_doc/en/pytorch/image_classification.ipynb and just replace model but It takes 6h to fine-tune full data. Please check this. I run this code on Colab