-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (27 loc) · 1.35 KB
/
Copy pathconfig.py
File metadata and controls
30 lines (27 loc) · 1.35 KB
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
"""Project-wide constants and settings."""
from pathlib import Path
BASE_DIR = Path(__file__).parent
train_mount_point = Path('/') / "train"
validation_mount_point = Path('/') / "validation"
test_mount_point = Path('/') / "test"
data_paths = {
"classes": {
"descriptions": BASE_DIR / "data" / "oidv6-class-descriptions.csv",
"trainable": BASE_DIR / "data" / "oidv6-classes-trainable.txt",
},
"train": {
"image_locations": BASE_DIR / "data" / "oidv6-train-images-with-labels-with-rotation.csv",
"human_labels": BASE_DIR / "data" / "oidv6-train-annotations-human-imagelabels.csv",
"machine_labels": BASE_DIR / "data" / "train-annotations-machine-imagelabels.csv",
},
"validation": {
"image_locations": BASE_DIR / "data" / "validation-images-with-rotation.csv",
"human_labels": BASE_DIR / "data" / "validation-annotations-human-imagelabels.csv",
"machine_labels": BASE_DIR / "data" / "validation-annotations-machine-imagelabels.csv",
},
"test": {
"image_locations": BASE_DIR / "data" / "test-images-with-rotation.csv",
"human_labels": BASE_DIR / "data" / "test-annotations-human-imagelabels.csv",
"machine_labels": BASE_DIR / "data" / "test-annotations-machine-imagelabels.csv",
}
}