Downloads · 30 days
0
Sm00thix/unet_chemical_map
unet_chemical_map is a machine learning model from Sm00thix. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jun 13, 2025
Repo size
580 MB
Likes
0
Public
Click a slice to open those files.
.pt580 MB · 100%
From the Hugging Face model README

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]. Likewise, load_ensemble_unet.py loads an ensemble of the five U-Nets (weights stored in model_weights/) and uses them to make the predictions shown in ensemble_prediction.png and ensemble_prediction_masked.png.
Note that these scripts are for documentation purposes as actual training and evaluation require 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.
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.
The data used to train the models yielding the weights in model_weights/ was collected during a project receiving funding from MICIU/AEI /10.13039/501100011033/ and FEDER ‘Una manera de hacer Europa’ [grant number RTI2018-096993-B-I00, 2019-2022]; and the Spanish National Institute of Agricultural Research (INIA) [grant number PRE2019-089669, 2020-2024].