-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration
executable file
·29 lines (26 loc) · 1.26 KB
/
configuration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
DOCKER_ENV="detector/env"
rm "$DOCKER_ENV"
# If you want to overwrite some environment variables,
# just export that variable in another script then run this script
# useful when configuring pipeline
function setEnvVar() {
VAR=$(eval echo \$${1})
if [ -z "$VAR" ]; then
export $1="$2"
fi
VAR=$(eval echo \$${1})
echo "$1=$VAR" >>$DOCKER_ENV
}
# Detector Configurations
setEnvVar DATA_PATH "$PWD/data/" # This path will hold both dataset and output results
setEnvVar LABELED_IMAGE_PATH "$PWD/images" # Path to labeled images
setEnvVar CLASSES "\"classA, classB, classC\"" # Classes for detection, split by comma
setEnvVar MODEL_PATH "$PWD/model" # This path must contain both "pipeline.config" & "model", see README
setEnvVar NUM_TRAIN_STEPS 50000 # Max number of steps in training
setEnvVar IS_GRAYSCALE "True" # True/False whether the input image is in grayscale
setEnvVar THRESHOLD "0.95" # Threshold for accepting a detection
setEnvVar NEEDED_BOXES "\"classA:1, classC:3\"" # Format ClassName:NeededBoxNumber, only take NeededBoxNumber of detection result by confidence
setEnvVar MODEL_TO_DETECT ""
setEnvVar TO_DETECT_PATH_SUFFIX ""
setEnvVar TO_RECOVER ""