-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
50 lines (36 loc) · 1.16 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""
This module contains project-wide settings and paths to data sources.
Author: Luca Clissa <clissa@bo.infn.it>
Created: 2023-05-31
License: Apache License 2.0
"""
import sys
import inspect
from pathlib import Path
SCRIPT_PATH = inspect.getfile(inspect.currentframe())
FLUOCELLS_PATH = Path(SCRIPT_PATH).parent.absolute() # type: ignore
sys.path.append(str(FLUOCELLS_PATH))
import fluocells as fluo
REPO_PATH = Path(fluo.__path__[0]).parent
# metadata
METADATA = dict(
dataset_name="Fluorescent Neuronal Cells dataset",
data_url="<CHECK-AMS-ACTA-DOI>",
contributors=["Luca Clissa", "Roberto Morelli", "et al."],
current_version="v2",
)
# reproducibility
TEST_PCT = 0.25
TRAINVAL_TEST_SEED = 10
# data
RAW_DATA_PATH = REPO_PATH / "raw_data"
DATA_PATH = REPO_PATH / f"dataset_{METADATA['current_version']}"
DATA_PATH_r = DATA_PATH / "red"
DATA_PATH_y = DATA_PATH / "yellow"
DATA_PATH_g = DATA_PATH / "green"
UNLABELLED_IMG_PATH_r = DATA_PATH_r / "unlabelled/images"
UNLABELLED_IMG_PATH_y = DATA_PATH_y / "unlabelled/images"
UNLABELLED_IMG_PATH_g = DATA_PATH_g / "unlabelled/images"
DEBUG_PATH = REPO_PATH / "debug"
# models
MODELS_PATH = REPO_PATH / "models"