|
"All the constants used in this repo." |
|
|
|
from pathlib import Path |
|
|
|
|
|
REPO_DIR = Path(__file__).parent |
|
|
|
|
|
SEIZURE_DETECTION_MODEL_PATH = REPO_DIR / "seizure_detection/deployment" |
|
KEYS_PATH = REPO_DIR / ".fhe_keys" |
|
CLIENT_TMP_PATH = REPO_DIR / "client_tmp" |
|
SERVER_TMP_PATH = REPO_DIR / "server_tmp" |
|
|
|
|
|
KEYS_PATH.mkdir(exist_ok=True) |
|
CLIENT_TMP_PATH.mkdir(exist_ok=True) |
|
SERVER_TMP_PATH.mkdir(exist_ok=True) |
|
|
|
|
|
INPUT_SHAPE = (224, 224) |
|
|
|
|
|
INPUT_EXAMPLES_DIR = REPO_DIR / "input_examples" |
|
|
|
|
|
EXAMPLES = [str(image) for image in INPUT_EXAMPLES_DIR.glob("**/*")] |
|
|
|
|
|
SERVER_URL = "http://localhost:8000/" |
|
|