-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
34 lines (28 loc) · 994 Bytes
/
constants.py
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
30
31
32
33
34
"""
Script containing important constants.
Please change as needed.
"""
import os.path
# Seed value used for script seeding.
SEED = 42
# Name of the dataset configuration.
CONFIG_NAME = "aquatic"
# Helper dict with model name aliases.
FRAMEWORKS = {
"mrcnn": "Mask R-CNN",
"cmask": "CenterMask",
"cinst": "CondInst",
"solov2": "SOLOv2"
}
# Train and validation set folder, raw image,
# AMSRCR enhanced image and JSON directories.
TRAIN_VAL_FOLDER = os.path.join("data", "train_val")
IMG_DIR = os.path.join(TRAIN_VAL_FOLDER, "raw", "")
AMSRCR_IMG_DIR = os.path.join(TRAIN_VAL_FOLDER, "amsrcr", "")
JSON_DIR = os.path.join(TRAIN_VAL_FOLDER, "json", "")
# Test set folder, raw image,
# AMSRCR enhanced image and JSON directories.
TEST_FOLDER = os.path.join("data", "test")
TEST_IMG_DIR = os.path.join(TEST_FOLDER, "raw", "")
AMSRCR_TEST_IMG_DIR = os.path.join(TEST_FOLDER, "amsrcr", "")
TEST_JSON_DIR = os.path.join(TEST_FOLDER, "json", "")