The source code of "MRCNN Particle Detection" (https://git.rwth-aachen.de/avt-fvt/private/mrcnn-particle-detection)
is based on the source code of "Mask R-CNN" (https://github.com/matterport/Mask_RCNN).
The source code of "Mask R-CNN" is licensed under the MIT License (MIT).
Copyright (c) 2017 Matterport, Inc.
Written by Waleed Abdulla
All source code modifications to the source code of "Mask R-CNN" in "MRCNN Particle Detection"
are licensed under the Eclipse Public License v2.0 (EPL 2.0).
Copyright (c) 2022-2023 Fluid Process Engineering (AVT.FVT), RWTH Aachen University
Edited by Stepan Sibirtsev, Mathias Neufang & Jakob Seiler
The coyprights and license terms are given in LICENSE.
Ideas and a small code snippets were adapted from these sources:
https://github.com/mat02/Mask_RCNN
"""
### ----------------------------------- ###
### Necessary Parameters and Data Names ###
### ----------------------------------- ###
# is the script executed on the cluster, e.g., RWTH High Performance Computing cluster? True = yes, False = no
cluster=False
### please specify only for non-cluster executions
# input dataset path to find in "...\datasets\input\..."
dataset_path=r"test"
# path to save the new weights "...\models\...
new_weights_path=r"test"
# name of the excel results file to find in "...\models\<WeightsFolderName>\"
name_result_file="test"
# generate detection masks? True = yes, False = no
masks=False
# is the program execution done on GPU or CPU? True = GPU, False = CPU
device=True
# epochs to train
epochs=50
# should early stopping be used? 0 = no, otherwise value is number of epochs without improvement
early_stopping=0
# loss monitored by early stopping
early_loss="val_loss"
# define base weights
base_weights="coco"
# percentage of the training dataset to be used for training [%], e.g., to determine required number of images in training/validation set for accurate detection performance
dataset_quantity=100
### specifications for Weights & Biases
# use Weights & Biases to collect training data
use_wandb=False
# enter entity name
wandb_entity="test"
# enter project name
wandb_project="test"
# enter group name
wandb_group="test"
# enter run name
wandb_name="test"
### specifications for k-fold cross-validation
# perform a k-fold cross validation? True = yes, False = no
cross_validation=True
# number of folds for k-fold cross-validation
k_fold=5
# fold number to use for validation. Starting with 0