Instance Normalisation

easy
Unit 7 · NLP0/3 to milestone

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