Instance Normalisation

easy
Checkpoint challenge
Solve this to show you know the material and jump straight to Unit 8. Everything before it counts as cleared.

Instance norm normalises each sample's each channel over its spatial positions only, so the style (contrast) of one image doesn't depend on others in the batch.

Implement instance_norm(x, gamma, beta, eps=1e-5) for x of shape (N, C, H, W) and per-channel gamma, beta of shape (C,). Use the biased variance.

#normalization#style-transfer2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Instance Normalisation · TechGradify