Author: Miriam Cobo (CSIC)
Description: This work provides a tool to train and evaluate an image regression model. The code is adapted to liquid volume estimation of glass containers as part of the BrainGut-WineUp project.
Acknowledgements: Miriam Cobo acknowledges support from Consejo Superior de Investigaciones Científicas (CSIC) and Instituto de Física de Cantabria (IFCA) via the “Proyecto Branyas” project.
This work is an adaptation to regression tasks of the original image classification DEEP Hybrid-DataCloud project that has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 777435. It was developed by Ignacio Heredia (CSIC). You can find more information about it in the DEEP Marketplace.
Table of contents
You can have more info on how to interact directly with the module by examining the
./notebooks
folder:
-
glasses examples notebook: Visualize examples of the liquid containers used to train the classifier.
-
sets preparation notebook: Split the data into training, validation and test sets.
-
model training notebook: Visualize training and validation model statistics.
-
computing predictions notebook: Test the classifier on multiple images.
-
predictions statistics notebook: Make and store the predictions of the
test.txt
file (if you provided one). Once you have done that you can visualize the statistics of the predictions like popular metrics (Mean Abosulte Error, Root Mean Squared Error and Coefficient of Determination) and visualize violin plots of the predictions. -
saliency maps notebook: Visualize the saliency maps of the predicted images, which show what were the most relevant pixels in order to make the prediction.
The main changes of the original code were done in order to adapt the code from classification to regression tasks:
If you consider this project to be useful, please consider citing this repository.
Cobo, Miriam, et al. "Artificial intelligence to estimate wine volume from single-view images." Heliyon 8.9 (2022): e10557.