wenmin-wu/ds-skills/albumentations-detection-augmentation
Claude Code and agent skill by wenmin-wu/ds-skills
- community
Checking that the SKILL.md file is still in the repository.
Applies albumentations augmentations to object detection data while preserving bbox-label correspondence via BboxParams.
Install
npx vskill@latest install wenmin-wu/ds-skills/albumentations-detection-augmentationSKILL.md
Albumentations Detection Augmentation
Overview
Albumentations supports spatial transforms (flip, rotate, crop, resize) that automatically adjust bounding boxes alongside the image. The key is BboxParams — it tells the pipeline the bbox format (pascal_voc, coco, yolo) and which field maps labels to boxes. Without this, augmented bboxes get shuffled or lost. This pattern wraps albumentations into a detection framework's data mapper (Detectron2, MMDetection) or a custom PyTorch Dataset.
Quick Start
Workflow
- Define augmentation pipeline with
A.ComposeandA.BboxParams - Specify bbox format:
pascal_voc,coco(x,y,w,h), oryolo(normalized) - Map label fields so they track with bboxes through transforms
- Set
min_areaandmin_visibilityto drop degenerate boxes after cropping - Apply in Dataset
__getitem__or framework-specific mapper
Key Decisions
- Format: Match your annotation format —
pascal_vocfor [x1,y1,x2,y2],yolofor normalized [cx,cy,w,h] - min_area/min_visibility: Prevents training on tiny slivers; 100px² area and 0.3 visibility are safe defaults
- Spatial only: Non-spatial transforms (brightness, contrast) don't affect bboxes — safe to add freely
- Label tracking:
label_fieldslinks labels to bboxes; without it, augmented boxes lose their class IDs
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cv/albumentations-detection-augmentation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wenmin-wu/ds-skills/albumentations-detection-augmentation)