This repository contains source code of my solution of Assignment 3 for Image Based Biometry course at University of Ljubljana.
Report with IMRAD structure is available as release asset.
Python 3.8.2 was used with the following packages installed:
matplotlib==3.3.2
numpy==1.18.5
pandas==1.1.3
tensorflow==2.3.1Additionally, folder data must contain AWE dataset unzipped so that e.g. data/001/01.png is a valid path.
Script train.py can be run as-is.
It will download EfficientNet-B0 weights and load saved weights of our CNN model trained without image augmentations.
To switch to model with image augmentations, change parameters near top of the file to contain:
EXP_ID = "model-b"
AUGMENTATIONS = TrueTo enable model training, change parameters to:
TRAIN = TrueScript evaluate.py plots figures (to folder figures) and prints performance metrics to console.
It uses state of models provided in folder out.
This state can be recomputed by executing script train.py (once with augmentations and once without them) as described in previous section.
Source code of LaTeX report is contained in report/jj1712.tex.
Before compiling it, make sure you have generated figures as described in Evaluation.