huggingface avatar

Huggingface Vision Trainer

This handles the full pipeline for training vision models on Hugging Face Jobs cloud GPUs: object detection (D-FINE, RT-DETR, DETR, YOLOS), image classification (timm models like MobileNetV3, ResNet, ViT), and SAM/SAM2 segmentation. It includes dataset validation scripts that check format compatibility before you burn GPU credits, automatic bbox preprocessing that converts between COCO and Pascal VOC formats, and augmentation with Albumentations. The workflow is solid: validate your dataset structure, choose between quick test runs or full training, submit the job with proper token secrets, and get your model pushed to the Hub. One heads up: the default 30-minute timeout is way too short for real training, so you'll need to bump that based on dataset size.

skills.sh installs
2K
GitHub stars
11.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add huggingface/skills --skill huggingface-vision-trainer --agent claude-code

Installs into .claude/skills of the current project.

Files

Vision Model Training on Hugging Face Jobs

Train object detection, image classification, and SAM/SAM2 segmentation models on managed cloud GPUs. No local GPU setup required—results are automatically saved to the Hugging Face Hub.

When to Use This Skill

Use this skill when users want to:

  • Fine-tune object detection models (D-FINE, RT-DETR v2, DETR, YOLOS) on cloud GPUs or local
  • Fine-tune image classification models (timm: MobileNetV3, MobileViT, ResNet, ViT/DINOv3, or any Transformers classifier) on cloud GPUs or local
  • Fine-tune SAM or SAM2 models for segmentation / image matting using bbox or point prompts
  • Train bounding-box detectors on custom datasets
  • Train image classifiers on custom datasets
  • Train segmentation models on custom mask datasets with prompts
  • Run vision training jobs on Hugging Face Jobs infrastructure
  • Ensure trained vision models are permanently saved to the Hub

Related Skills

Sponsors

Details

Repository
github.com/huggingface/skills
Categories
DevOps & CI/CD, Code Review & Quality, Data Science & ML, Cloud & Infrastructure
First seen
Jun 3, 2026

More from huggingface/skills

All 24
1k-dense-ai avatarneurokit2k-dense-ai/scientific-agent-skillsUse NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, vari2Kskills.sh installs
2k-dense-ai avatarphylogeneticsk-dense-ai/scientific-agent-skillsBuild and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree2Kskills.sh installs
3nvidia avatarphysical-ai-video-data-augmentationnvidia/skillsUse when running video data augmentation and auto-labeling workflows on OSMO: flow selection, preflight, submit-time interpolation, monitoring, and output retri2Kskills.sh installs
4huggingface avatarhuggingface-trackiohuggingface/skillsTrack and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training diagnostics, or retr2Kskills.sh installs
5refoundai avatarsales-qualificationrefoundai/lenny-skillsHelp users qualify sales leads effectively. Use when someone is wasting time on bad leads, struggling with low conversion rates, needs to build a qualification 1.9Kskills.sh installs
6nvidia avatarvss-search-archivenvidia/skillsUse this skill to run top-level VSS fusion search on archived video, or to ingest video files / RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use v1.9Kskills.sh installs