A non-transitory computer readable medium comprising computer readable code which, when executed by one or more processors, cause said one or more processors to generate a training dataset for training a machine learning model to predict illumination conditions for different positions relative to a scene, said training dataset comprising training images and reference data, wherein said computer readable code causes said one or more processors to:
- obtain a training image of a training scene, to be included in the training dataset, acquired by a first camera having a first coordinate system associated thereto,
- determine a plurality of local illumination maps, each local illumination map being associated to a respective position relative to the training scene in a respective second coordinate system and representing in said respective second coordinate system the illumination received from different directions of arrival around said respective position,
- transform the position of each local illumination map from the respective second coordinate system to the first coordinate system,
- responsive to determining that the transformed position of a local illumination map is visible in the training image:
- transform said local illumination map from the respective second coordinate system to the first coordinate system and include the transformed local illumination map and its transformed position in the reference data associated to the training image.