wenmin-wu

60 mods across 1 repository, 58 stars between them.

wenmin-wu/ds-skills

Skill Claude CodeCodex

Converts a pretrained 2D CNN into a 3D CNN by recursively replacing Conv2d/BN2d/Pool2d layers and inflating kernel weights along the depth axis.

58 4mo ago A 51 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Select center slices from a 3D volume and zero-pad along depth when the scan has fewer slices than the target count.

58 4mo ago A 34 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Applies Mixup augmentation to 3D volumetric images and their segmentation masks, interpolating both inputs and loss targets.

58 4mo ago A 35 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Resample a 3D medical volume to a fixed network input shape using physical voxel spacing (dz, dy, dx), correcting the Z dimension by the dz/dy ratio so anisotropic CT scans (1mm in-plane, 5mm slice) end up anatomically isotropic before trilinear interpolation.

58 4mo ago A 73 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

ArcFace angular margin loss layer for learning discriminative embeddings — used in image retrieval, product matching, and face recognition.

58 4mo ago A 31 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Show-Attend-Tell decoder: Bahdanau additive attention over CNN spatial features driving a gated LSTMCell for autoregressive image-to-sequence generation.

58 4mo ago A 41 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Wrap albumentations bbox transforms in a 10-attempt retry loop that re-rolls the augmentation when all boxes get cropped out, preventing empty-target samples from poisoning the detection loss with NaN gradients.

58 4mo ago A 49 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Combines BCE-with-logits and soft Dice loss with configurable weights for binary and multilabel segmentation training.

58 4mo ago A 30 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Replace a pretrained ResNet's conv1 with a wider input conv to accept stacked BEV raster channels (semantic map + agent history) while keeping downstream weights.

58 4mo ago A 41 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Two-stage CT classifier where a 2D CNN dumps per-slice features once, then a bidirectional GRU runs over the slice sequence to produce both per-slice predictions (TimeDistributed head) and an exam-level prediction (avg+max pooled head) — turns expensive 3D CNN training into cheap sequence modeling.

58 4mo ago A 74 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Crops uninformative black or dark borders from images by deriving a binary mask from the grayscale channel and trimming rows/columns.

58 4mo ago A 33 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Detect all-black DICOM/MRI slices (mean==0) and replace them by randomly sampling a non-black slice from the same series.

58 4mo ago A 34 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Fuse low-resolution multispectral bands with a high-resolution panchromatic band using the Brovey transform to produce sharp multi-band imagery.

58 4mo ago A 35 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Select a fixed number of Z-slices centered around the volume midpoint for memory-efficient 2.5D input from 3D CT/MRI stacks.

58 4mo ago A 37 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Score each face in a video as anomalous by computing L2 distance from the embedding centroid of all faces, then convert to probability via logistic function.

58 4mo ago A 37 tokens

wenmin-wu/ds-skills

Skill Claude CodeCodex

Memory-efficient Keras generator that streams sharded CSV files in chunks, renders strokes to images on-the-fly, and yields batches for training on datasets too large for memory.

58 4mo ago A 43 tokens