Fig. 3: Samples of trained layer masks to be displayed on SLM for Fashion MNIST and Imagenette.

a, Example sample from the Fashion MNIST dataset alongside its corresponding layer masks, combined with trainable parameters, according to both schemas. The colour code represents phase modulation ranging from 0 to 2π. b, Example sample from the Imagenette dataset, and its corresponding layer masks combined with trainable parameters for both schemas.