hugging-face-vision-trainer – skill Thiết kế & UI cho agent AI
Huấn luyện mô hình nhận diện đối tượng, phân loại ảnh và phân đoạn SAM hoặc SAM2 cục bộ hoặc trên Hugging Face Jobs, với thử nghiệm dataset giới hạn và lưu trữ artifact rõ ràng.
Cài skill hugging-face-vision-trainer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/hugging-face-vision-trainer-34ac2.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /hugging-face-vision-trainer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/hugging-face-vision-trainer-34ac2.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $hugging-face-vision-trainer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/hugging-face-vision-trainer-34ac2.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /hugging-face-vision-trainer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/hugging-face-vision-trainer-34ac2.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /hugging-face-vision-trainer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Vision model training
When to Use
Use for an authorized image classification, object detection or binary SAM/SAM2 segmentation pilot with Hugging Face/Transformers. This is not clinical validation, autonomous-vehicle certification or continuous alpha-matting training.
Workflow
1. Confirm task, data rights/consent, sensitive image scope, model/dataset licenses, exact immutable revisions, label/box/mask conventions, held-out evaluation design, output location and compute/storage budget. Preserve existing user authorization; do not require another preference question when it is already settled.
2. Review dependencies and use a pinned compatible environment. PEP723 dependency ranges are declarations, not a reproducible lock or proof that the current libraries work together. Installing packages, downloading data/models or submitting paid Jobs requires authorization.
3. Inspect data before training. The bundled metadata inspector is a bounded public viewer preview, not full validation. It never certifies READY, decodes all images or guesses box format. Even a previously used dataset revision must be checked. Confirm dataset config/split explicitly; sample labels do not enumerate all classes.
4. Start with an approved bounded local pilot using the scripts and their sibling vision_safety.py. No automatic remote code, login, Hub publication or experiment telemetry. Model weights require safetensors; unavailable safe weights fail rather than fall back to pickle.
5. Verify image/annotation alignment, class mapping, negative examples and reproducible split design. Group by person/video/source/time where appropriate; random per-image splitting can leak related observations. Keep test data out of training/tuning and disclose when no independent test exists.
6. Evaluate actual loss/metrics and predictions against the held-out design. Record exact model/data/SDK versions, seed, actual samples, steps, hardware, limitations and any failure. A syntax/offline test does not prove GPU execution or convergence. Never invent training results, hardware fit, timing, cost or successful persistence.
7. Save model, processor, label mapping, metrics and provenance to approved durable private storage. For ephemeral Jobs, verify the artifact route before submission; Hub publication is one optional route, not mandatory. Creating a repository or uploading weights/data needs explicit scope, destination, visibility and license review.
Examples
Read [the pilot guide](references/detailed-guide.md) and the task reference before running. Help works with standard Python without installing the training stack:
python3 scripts/image_classification_training.py --help
python3 scripts/dataset_inspector.py --help
python3 scripts/estimate_cost.py --helpReferences
- [Pilot execution](references/detailed-guide.md)
- [Classification](references/image_classification_training_notebook.md)
- [Detection](references/object_detection_training_notebook.md)
- [Binary SAM/SAM2 segmentation](references/finetune_sam2_trainer.md)
- [timm compatibility](references/timm_trainer.md)
- [Artifact persistence](references/hub_saving.md)
- [Reliability and evidence](references/reliability_principles.md)
Limitations
The scripts are bounded local pilot templates, not production-tested training services. Their guards do not isolate the OS, enforce GPU/RSS/network spending caps, or defend against a malicious concurrent local owner. Use an isolated approved runtime with external time/resource limits and private input/cache paths. Windows ACL behavior and actual GPU/model/SDK compatibility were not validated in this catalog review. Do not use model output for clinical or other safety-critical decisions without the required domain validation.
Skill liên quan
- iconsax-library – Thư viện icon phong phú và kỹ năng tạo icon bằng AI cho thiết kế UI/UX cao cấp.
- image-alt-tag-generator – Công cụ tạo thẻ alt cho hình ảnh. Dùng khi làm việc với hình ảnh hoặc mô tả hình ảnh…
- image-generator – Tạo và chỉnh sửa hình ảnh bằng mô hình Nano Banana Pro của Gemini…
- image-studio – Studio tạo hình ảnh thông minh: tự động định tuyến giữa ai-studio-image (ảnh người…
- imagen – Kỹ năng tạo hình ảnh bằng AI do Google Gemini cung cấp, hỗ trợ tạo nội dung hình ảnh…
- industrial-brutalist-ui – Dùng khi tạo giao diện telemetry công nghiệp hoặc chiến thuật thô, với lưới cứng…
- isometric-design – Hướng dẫn triển khai Isometric Design cho web và ứng dụng. Kích hoạt khi người dùng muốn…
- json-canvas – Tạo và chỉnh sửa file JSON Canvas (.canvas) với node, cạnh, nhóm và kết nối. Dùng khi…