ParticleMixtureAnalysis
This repository accompanies the following publication:
dark particles | light particles |
---|---|
Installation
-
Install conda for your operating system.
-
Open a command line.
-
Clone this repository:
git clone --recurse-submodules https://github.com/maxfrei750/ParticleMixtureAnalysis.git
-
Change into the folder of the repository.
-
Create a new conda environment:
conda env create --file external/paddle/environment.yaml
Training
-
Download the
datasets.zip
file and extract it at the project root. -
Activate the conda environment:
conda activate paddle
-
Run the training:
python train_model.py --config-dir=configs/MaskRCNN --config-name=MultiClassSynthetic400SyntheticValidation400Detections
-
The results of the inference can be found in the
logs
folder.
Inference
-
Download the
datasets.zip
file and extract it at the project root. -
Either complete the training (see above) or download the
model.zip
file and extract it at the project root. -
Activate the conda environment:
conda activate paddle
-
Run the model on a dataset:
python test_model_on_dataset.py MultiClassSynthetic400SyntheticValidation400Detections validation_real_merged_by_vote
-
The results of the inference can be found in the
output
folder.
Citation
If you use this repository for a publication, then please cite it using the following bibtex-entry:
@article{Frei.2022,
author = {Frei, Max and Kruis, Frank Einar},
year = {2022},
title = {Image-Based Analysis of Dense Particle Mixtures via Mask R-CNN},
url = {https://doi.org/10.3390/eng3010007}
}