hugging-face-vision-trainer
Skill này làm gì
Công cụ này huấn luyện mô hình AI để hiểu hình ảnh. Nó có thể học nhận diện vật thể, phân loại hình ảnh hoặc phân đoạn các phần của ảnh, dùng máy tính đám mây mạnh và tự động lưu kết quả.
Khi nào nên dùng
- ✓Khi bạn muốn dạy AI nhận diện những vật thể cụ thể trong ảnh.
- ✓Khi bạn muốn AI phân loại hình ảnh (ví dụ: mèo, chó, xe hơi).
- ✓Khi bạn muốn huấn luyện AI tách một phần của ảnh, như nền.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hugging-face-vision-trainer/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Huấn luyện một mô hình để phát hiện chó trong ảnh, dùng tập dữ liệu 'my-dog-dataset' của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn cung cấp dữ liệu hình ảnh và cho AI biết cần học gì (nhận diện vật thể, phân loại hoặc phân đoạn). AI dùng máy tính đám mây để học từ dữ liệu của bạn và lưu mô hình đã huấn luyện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
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
Prerequisites Checklist
Before starting any training job, verify:
Account & Authentication
- Hugging Face Account with Pro, Team, or Enterprise plan (Jobs require paid plan)
- Authenticated login: Check with
hf_whoami()(tool) orhf auth whoami(terminal) - Token has write permissions
- MUST pass token in job secrets — see directive #3 below for syntax (MCP tool vs Python API)
Dataset Requirements — Object Detection
- Dataset must exist on Hub
- Annotations must use the
objectscolumn withbbox,category(and optionallyarea) sub-fields - Bboxes can be in xywh (COCO) or xyxy (Pascal VOC) format — auto-detected and converted
- Categories can be integers or strings — strings are auto-remapped to integer IDs
image_idcolumn is optional — generated automatically if missing- ALWAYS validate unknown datasets before GPU training (see Dataset Validation section)
Dataset Requirements — Image Classification
- Dataset must exist on Hub
- Must have an
imagecolumn (PIL images) and alabelcolumn (integer class IDs or strings) - The label column can be
ClassLabeltype (with names) or plain integers/strings — strings are auto-remapped - Common column names auto-detected:
label,labels,class,fine_label - ALWAYS validate unknown datasets before GPU training (see Dataset Validation section)
Dataset Requirements — SAM/SAM2 Segmentation
- Dataset must exist on Hub
- Must have an
imagecolumn (PIL images) and amaskcolumn (binary ground-truth segmentation mask) - Must have a prompt — either:
- A
promptcolumn with JSON containing{"bbox": [x0,y0,x1,y1]}or{"point": [x,y]} - OR a dedicated
bboxcolumn with[x0,y0,x1,y1]values - OR a dedicated
pointcolumn with[x,y]or[[x,y],...]values
- A
- Bboxes should be in xyxy format (absolute pixel coordinates)
- Example dataset:
merve/MicroMat-mini(image matting with bbox prompts) - ALWAYS validate unknown datasets before GPU training (see Dataset Validation section)
Critical Settings
- Timeout must exceed expected training time — Default 30min is TOO SHORT. See directive #6 for recommended values.
- Hub push must be enabled —
push_to_hub=True,hub_model_id="username/model-name", token insecrets
Limitations
- Use this skill only when the task clearly matches its upstream product or API scope.
- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Câu hỏi thường gặp
Tôi có cần máy tính mạnh không?
Không, việc huấn luyện được thực hiện trên máy tính đám mây mạnh (Hugging Face Jobs); bạn chỉ cần có tài khoản Hugging Face trả phí.
Kết quả được lưu ở đâu?
Các mô hình đã huấn luyện được tự động lưu vào Hugging Face Hub, một nơi trực tuyến để chia sẻ mô hình.
Dữ liệu của tôi có cần định dạng đặc biệt không?
Có, dữ liệu hình ảnh cần được tổ chức trên Hugging Face Hub với các chú thích cụ thể tùy theo mục tiêu huấn luyện (nhận diện vật thể, phân loại hoặc phân đoạn).
Chi tiết
Mô tả gốc của tác giả
Train object detection, image classification, and SAM or SAM2 segmentation models locally or on Hugging Face Jobs, with dataset validation and results saved to the Hub.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4844
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.