wenmin-wu/ds-skills/3d-mixup-augmentation
Claude Code and agent skill by wenmin-wu/ds-skills
- community
Checking that the SKILL.md file is still in the repository.
Applies Mixup augmentation to 3D volumetric images and their segmentation masks, interpolating both inputs and loss targets.
Install
npx vskill@latest install wenmin-wu/ds-skills/3d-mixup-augmentationSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/3d-mixup-augmentation.
3D Mixup Augmentation
Overview
Mixup creates virtual training samples by linearly interpolating pairs of inputs and their labels. For 3D medical imaging (CT, MRI), this regularizes the model by blending volumetric scans and their segmentation masks. The loss is computed against both original and shuffled targets, weighted by the interpolation factor lambda. Reduces overfitting on small 3D datasets where traditional augmentations (flip, rotate) are limited.
Quick Start
Workflow
- Sample lambda from Beta(alpha, alpha) distribution
- Shuffle batch to get pairing indices
- Blend images:
lam * img_A + (1-lam) * img_B - Compute loss against both original and shuffled targets, weighted by lambda
Key Decisions
- alpha: 1.0 gives uniform lambda; lower values (0.2-0.4) keep lambda closer to 0 or 1
- Probability: Apply mixup stochastically (30-50% of batches) to preserve some clean samples
- Segmentation vs classification: For segmentation, blend masks too; for classification, blend labels
- CutMix alternative: Replace a random 3D patch instead of blending the whole volume
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/3d-mixup-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/3d-mixup-augmentation)