skills/cv/nested-unet-dense-skip-connections/SKILL.md
UNet++ dense cross-depth skip connections that propagate deeper decoder features into all shallower decoder levels
npx skillsauth add wenmin-wu/ds-skills cv-nested-unet-dense-skip-connectionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Vanilla U-Net concatenates only one encoder feature into each decoder stage. UNet++ instead upsamples features from each decoder stage multiple times, concatenating them into all shallower decoder levels. This dense pattern gives every decoder output access to multi-scale features at the original resolution, improving segmentation of small and fine-grained structures.
from keras.layers import Conv2DTranspose, concatenate
# Deepest decoder (level 4)
deconv4 = Conv2DTranspose(filters*16, (3,3), strides=(2,2), padding='same')(convm)
# Upsample deconv4 to shallower levels for cross-depth skips
deconv4_up1 = Conv2DTranspose(filters*16, (3,3), strides=(2,2), padding='same')(deconv4)
deconv4_up2 = Conv2DTranspose(filters*16, (3,3), strides=(2,2), padding='same')(deconv4_up1)
deconv4_up3 = Conv2DTranspose(filters*16, (3,3), strides=(2,2), padding='same')(deconv4_up2)
deconv3 = Conv2DTranspose(filters*8, (3,3), strides=(2,2), padding='same')(uconv4)
deconv3_up1 = Conv2DTranspose(filters*8, (3,3), strides=(2,2), padding='same')(deconv3)
deconv3_up2 = Conv2DTranspose(filters*8, (3,3), strides=(2,2), padding='same')(deconv3_up1)
# Shallower decoders concatenate all upstream upsampled features
uconv3 = concatenate([deconv3, deconv4_up1, conv3])
uconv2 = concatenate([deconv2, deconv3_up1, deconv4_up2, conv2])
uconv1 = concatenate([deconv1, deconv2_up1, deconv3_up2, deconv4_up3, conv1])
data-ai
Scaled Pinball Loss (SPL) metric for evaluating quantile forecasts, normalized by mean absolute successive differences of training data
data-ai
Walk backward through a time series and multiplicatively rescale segments when jumps exceed a fraction of the running mean to correct data collection anomalies
testing
Transform forecasting target to next/current ratio minus one so that optimizing MAE or squared error implicitly minimizes SMAPE
tools
Convert point forecasts to prediction intervals by scaling with logit-transformed quantile ratios passed through a Normal CDF