This repository contains source code showing the model architecture, loss function, and training pipeline used by Engstrøm et al. [1] to generate chemical maps of pork bellies with a modified U-Net [2]. Executing train_unet_chemmap.py will train, validate, and evaluate the modified U-Net under the five-fold cross-validation scheme explained by Engstrøm et al. [1]. Note that this script is only for documentation purposes, as actual training requires access to the dataset by Albano-Gaglio et al. [3].
If you want a U-Net implementation, this repository releases a U-Net implementation under the permissive Apache 2.0 License.
The weights for the ensemble of five modified U-Nets used by Engstrøm et al. [1] is available on Hugging Face.
This work has been carried out as part of an industrial Ph.D. project receiving funding from FOSS Analytical A/S and The Innovation Fund Denmark. Grant number 1044-00108B.
