wenmin-wu/ds-skills/3d-encoder-2d-decoder-segmentation
Claude Code and agent skill by wenmin-wu/ds-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
3D ResNet encoder extracts volumetric features, pools depth dimension, then feeds into a 2D UNet/FPN decoder for segmentation
Install
npx vskill@latest install wenmin-wu/ds-skills/3d-encoder-2d-decoder-segmentationSKILL.md
3D Encoder + 2D Decoder Segmentation
Overview
For volumetric data where the target is a 2D segmentation mask (e.g., ink detection on CT slices, organ segmentation from MRI), a hybrid architecture uses a 3D CNN encoder to capture inter-slice context, then pools the depth dimension from each feature map and feeds the resulting 2D feature maps into a standard 2D UNet/FPN decoder. This combines 3D spatial understanding with efficient 2D decoding.
Quick Start
Workflow
- Pass volumetric input through 3D ResNet encoder (multi-scale feature extraction)
- Mean-pool depth dimension from each scale's feature map: (B,C,D,H,W) → (B,C,H,W)
- Feed 2D feature maps into FPN/UNet decoder with skip connections
- Output 2D segmentation mask at original spatial resolution
Key Decisions
- Depth pooling: mean is default; max preserves strongest activations; attention-weighted is best but heavier
- Encoder: 3D ResNet-18/34 is efficient; deeper models need more GPU memory
- Upscale factor: match encoder's total spatial downsampling (typically 4x or 8x)
- vs pure 2.5D: this captures true 3D features; 2.5D (slices as channels) is faster but less expressive
References
- [3D ResNet baseline [inference]](https://www.kaggle.com/code/yoyobar/3d-resnet-baseline-inference)
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-encoder-2d-decoder-segmentation/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-encoder-2d-decoder-segmentation)