-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
27 lines (22 loc) · 983 Bytes
/
config.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
import torch
# data preprocessing parameters
TEST_SPLIT = 0.20 # percentage of test samples from ALL samples
VAL_SPLIT = 0.10 # percentage of validation samples from TRAINING samples
SEED_SPLIT = 42
# dataset parameters
IMG_FORMAT = "RGD"
CORNELL_PATH = r'C:\Users\vholo\PycharmProjects\exploring_rotated_object_detectors_final\dataset\cornell'
OCID_PATH = r'C:\Users\vholo\PycharmProjects\exploring_rotated_object_detectors_final\dataset\ocid'
DOTA_PATH = r'C:\Users\vholo\PycharmProjects\exploring_rotated_object_detectors_final\DOTA_dataset'
# training models parameters
MODELS_PATH = r'C:\Users\vholo\PycharmProjects\exploring_rotated_object_detectors_final\models'
TRAIN_DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
EVAL_DEVICE = "cpu"
EPOCHS = 1
LEARNING_RATE = 0.0001
# batch sizes
TRAIN_BS = 8
TEST_BS = 1
VAL_BS = 1
NUM_WORKERS = 4
MMROTATE_PATH = r'C:\Users\vholo\PycharmProjects\exploring_rotated_object_detectors_final\libraries\mmrotate'