Instructions to use hustvl/yolos-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hustvl/yolos-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="hustvl/yolos-base")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("hustvl/yolos-base") model = AutoModelForObjectDetection.from_pretrained("hustvl/yolos-base") - Notebooks
- Google Colab
- Kaggle
Does it support fine-tuning?
#3
by mserrasa - opened
I want to fine-tune this model to a specific dataset. I know hustvl/yolos-tiny does support it but i would like to try this one since it achieves better results.
Yes it does, we just updated our fine-tuning guides, which includes support for YOLOS!
Guide: https://huggingface.co/docs/transformers/en/tasks/object_detection
Official scripts (using either the Trainer API or Accelerate): https://github.com/huggingface/transformers/tree/main/examples/pytorch/object-detection