Investigation into the effect of batch size on batch normalisation during inference for image colourisation
The Pix2Pix architecture is widely used for image colourisation. This is the problem of transforming a greyscale image into a realistic colour image. However, the canonical Pix2Pix colourisation model uses batch normalisation during inference, which makes the model output dependent on the other images in the inference batch, and leads to excessive colourfulness in its output. In this work, we analyse the effect of small batch sizes on the colourfulness of the Pix2Pix model output. We propose a method for measuring image colourfulness, allowing us to study the colourisation problem quantitatively. We then propose a method for correcting the output of the batch normalisation layers of the Pix2Pix colourisation model. This reduces its dependence on batch size and enables inference of realistic colour images at small batch sizes.
Authors
- D. J. Armstrong (ORCID: https://orcid.org/0000-0002-5080-4117)
- Hui Wang (ORCID: https://orcid.org/0000-0001-8459-5213)
- Niall McLaughlin (ORCID: https://orcid.org/0000-0002-0917-9145)
Institutions
- Queen's University Belfast (GB)
Publication Details
- Journal
- IET conference proceedings.
- Published
- 2024-10-01
- DOI
- https://doi.org/10.1049/icp.2024.3309
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Engineering and Physical Sciences Research Council