installskill

Skills / huggingface/skills

huggingface-vision-trainer

Trains vision models for detection, classification and SAM segmentation on Hugging Face Jobs.

Pinned commit
aafb3adfb809Committed 2026-11-26
Files
12197 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models — MobileNetV3, MobileViT, ResNet, ViT/DINOv3 — plus any Transformers classifier), and SAM/SAM2 segmentation using Hugging Face Transformers on Hugging Face Jobs cloud GPUs. Covers COCO-format dataset preparation, Albumentations augmentation, mAP/mAR evaluation, accuracy metrics, SAM segmentation with bbox/point prompts, DiceCE loss, hardware selection, cost estimation, Trackio monitoring, and Hub persistence. Use when users mention training object detection, image classification, SAM, SAM2, segmentation, image matting, DETR, D-FINE, RT-DETR, ViT, timm, MobileNet, ResNet, bounding box models, or fine-tuning vision models on Hugging Face Jobs.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install huggingface/skills skills/huggingface-vision-trainer --agent claude-code --pin aafb3adfb80951cc90836cc6fd17bb345aa49eef

gh picks the directory for the agent, names the folder after the source directory (huggingface-vision-trainer), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 1e3b0715031ba94d2c145c89ee3ef899e9f9bc75.

skills CLIpinned

$ npx skills add huggingface/skills@aafb3adfb80951cc90836cc6fd17bb345aa49eef --skill huggingface-vision-trainer -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/huggingface/skills.git "$tmp"
$ git -C "$tmp" checkout --quiet aafb3adfb80951cc90836cc6fd17bb345aa49eef
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/huggingface-vision-trainer" .claude/skills/huggingface-vision-trainer

No extra tooling. Files land byte for byte as published in .claude/skills/huggingface-vision-trainer, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/huggingface-vision-trainer && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expected64691e9e0bacd26cd8e8ad7a6fe5c53e82a8a7e224fdeea6681910786c846e33

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Docs · 6Scripts · 5SKILL.md · 1

Runs commands6

Code that spawns other processes, or shell code blocks in the instructions.

0 in scripts · 6 in docs and other text files

Network access3

Calls that fetch from or send to a remote host.

2 in scripts · 1 in docs and other text files

Installs packages5

Commands that pull and run third-party packages at use time.

1 in scripts · 4 in docs and other text files

Reads env or credentials31

References to environment variables, tokens, keys or credential files.

8 in scripts · 23 in docs and other text files

Privileged or destructiveNo match

sudo, recursive deletes, permission changes and similar commands.

Dynamic or encoded codeNo match

eval, exec, base64 decoding and remote-script piping, which hide what runs.

Outside hosts mentioned

Hostnames of every URL in the text files.

  • huggingface.co×33
  • hf.co×3
  • albumentations.ai×2
  • datasets-server.huggingface.co×2
  • colab.research.google.com×1
  • github.com×1
  • images.pexels.com×1
  • pytorch.org×1

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
64691e9e0bacd26cd8e8ad7a6fe5c53e82a8a7e224fdeea6681910786c846e33
Git tree SHA
1e3b0715031ba94d2c145c89ee3ef899e9f9bc75
PathKindSizeSHA-256
SKILL.mdSKILL.md29 KB8eaf8c8112fafb7c…
references/finetune_sam2_trainer.mdDocs6.3 KB0d8f2efe145ccb00…
references/hub_saving.mdDocs17 KBb4fc7120ba3874d5…
references/image_classification_training_notebook.mdDocs11 KBdf702e1c21f8ee16…
references/object_detection_training_notebook.mdDocs29 KBae88afa3af1cabcf…
references/reliability_principles.mdDocs9.3 KB9818dd7fa84003d4…
references/timm_trainer.mdDocs3.5 KBe7bdc0985d28c461…
scripts/dataset_inspector.pyScripts31 KBe46216b3818cb5e2…
scripts/estimate_cost.pyScripts · executable7.2 KBff86501855704557…
scripts/image_classification_training.pyScripts13 KB08db90dc053724a7…
scripts/object_detection_training.pyScripts27 KBe5ad30d2681fa857…
scripts/sam_segmentation_training.pyScripts14 KBa9880d7b233dd2e3…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
775limit 1,024 characters
SKILL.md body
590 linesthe spec suggests under 500 lines
Fields outside the spec
None
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)

Change history

No changes recorded since the first snapshot on 2026-11-28.

Follow changes to this skill in a feed reader: Atom feed · all skills

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.