ml-computer-vision
Use when the user asks about image classification, object detection, segmentation, Ultralytics YOLO, torchvision models, augmentation, mAP/IoU or CV model…
от j4flmao★ 47 звёзд на GitHub
Установить ml-computer-vision в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ML Computer Vision
Quick Start
from ultralytics import YOLO
model = YOLO("yolov8n.pt")
results = model("image.jpg")
results[0].show()
Purpose
Design computer vision pipelines for image classification, object detection, and segmentation with appropriate model selection, preprocessing, augmentation, and training configuration.
Architecture/Decision Trees
Task Selection
What visual task do you need?
├── Assign single label to entire image → Image Classification
│ ├── Small dataset (<1K/class) → ResNet (transfer learning)
│ ├── Large dataset (>10K/class) → ConvNeXt, EfficientNet, ViT
│ └── Zero-shot → CLIP (text-image alignment)
├── Locate objects with bounding boxes → Object Detection
│ ├── Real-time (30+ FPS) → YOLOv8 (n/s/m/l/x)
│ ├── High accuracy, slower → RT-DETR, Faster R-CNN
│ └── Few classes, fixed size → YOLO (single-stage)
├── Pixel-level classification → Segmentation
│ ├── Each pixel → Semantic Segmentation (U-Net, DeepLabV3+)
│ ├── Each object instance → Instance Segmentation (Mask R-CNN, YOLOv8-seg)
│ ├── Both → Panoptic Segmentation (Mask2Former)
│ └── Zero-shot → SAM (Segment Anything)
└── Image similarity / retrieval
├── Feature extraction → DINOv2 (self-supervised)
└── Image + text → CLIP embedding
Model Size vs Accuracy Tradeoff
Accuracy
↑
ViT-L/14 ● │
ConvNeXt-XL ● │
EfficientNet-B7 ● │
ResNet-152 ● │
YOLOv8x ● │
ViT-B/16 ● │
ResNet-50 ● │
EfficientNet-B3● │
YOLOv8n ● │
MobileNetV3 ● │
└─────────────→
Parameters (log)
Augmentation Strategy Decision Tree
Dataset size per class
├── Large (>1000 images/class)
│ ├── Light augmentation: HorizontalFlip, slight rotation
│ ├── Color jitter (brightness=0.2, contrast=0.2)
│ └── Random crop (90-100%)
├── Medium (100-1000 images/class)
│ ├── Light + color jitter (0.1-0.3 each)
│ ├── Random scaling (0.8-1.2), rotation (±15°)
│ ├── Cutout (1-2 holes), random affine
│ └── Mosaic for detection (YOLO)
└── Small (<100 images/class)
├── Heavy + Mixup (α=0.2), CutMix
├── RandAugment (auto magnitude)
├── Grid distortion, elastic transform
├── Coarse dropout, random erasing
└── Test-time augmentation (multi-scale + flip)
Agent Protocol
Trigger
User request includes: computer vision, OpenCV, YOLO, Detectron2, image classification, object detection, segmentation, ResNet, EfficientNet, YOLOv8, DETR, image augmentation, image preprocessing, visual recognition.
Input Context
Before activating, verify:
- CV task type (classification, object detection, instance segmentation, semantic segmentation).
- Number of classes and class distribution (balanced, long-tail, few-shot).
- Image resolution and aspect ratio characteristics.
- Dataset size per class (few-shot <100, medium 100-1000, large >1000).
- Deployment constraints (edge device, cloud GPU, real-time FPS target).
Output Artifact
Computer vision pipeline with task definition, model selection, training config, augmentation strategy.
Response Format
## CV Pipeline
### Task
{classification / detection / segmentation}
Classes: {N} | Input Size: {W}x{H}
### Model
Architecture: {ResNet / EfficientNet / YOLOv8 / DETR / U-Net / SAM}
Backbone: {name} | Pretrained: {ImageNet / COCO / SAM}
Parameters: {N} | FPS Target: {N}
### Preprocessing
Resize: {W}x{H} | Interpolation: {bilinear / bicubic / nearest}
Normalize: {mean: [m1,m2,m3], std: [s1,s2,s3]}
Color: {RGB / BGR / grayscale}
### Augmentation
Pipeline: {albumentations / torchvision / imgaug}
Transforms: [HorizontalFlip, Rotate, ColorJitter, RandomCrop, Normalize]
Strength: {light / medium / heavy}
### Training
Optimizer: {AdamW / SGD} | LR: {value}
Schedule: {cosine / step / plateau} | Epochs: {N}
Batch Size: {N} | Precision: {fp16 / bf16}
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- Task type identified with class count and input resolution.
- Model architecture selected matching accuracy and speed requirements.
- Preprocessing pipeline defined with resize, normalization, and color space.
- Augmentation strategy configured for dataset size and variability.
- Training configuration set with optimizer, schedule, and loss function.
- Inference optimization planned (export, quantization, acceleration).
- Per-class metrics tracked to identify weak categories.
Max Response Length
300 lines of configuration and code.
Workflow
Step 1: Task & Model Selection
Image classification: ResNet (simple, reliable), EfficientNet (better accuracy/parameter ratio), ConvNeXt (modernized), ViT (best accuracy with sufficient data). Object detect
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/computer-vision-advanced.md
- references/computer-vision-fundamentals.md
- references/cv-deployment.md
- references/cv-pipeline.md
- references/detection-segmentation.md
- references/image-preprocessing.md
- references/image-segmentation.md
- references/video-analysis.md
FAQ
Что делает скилл ml-computer-vision?
Use when the user asks about image classification, object detection, segmentation, Ultralytics YOLO, torchvision models, augmentation, mAP/IoU or CV model export (ONNX, TensorRT). Produces task and model choice, preprocessing and augmentation pipeline and training/eval config. Not for VLM image understanding (use multimodal-pipelines) or image generation (use genai-vision).
Как установить скилл ml-computer-vision?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ml-computer-vision запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…