|
"All the constants used in this repo." |
|
|
|
from pathlib import Path |
|
|
|
|
|
REPO_DIR = Path(__file__).parent |
|
|
|
CURRENT_DIR = Path(__file__).parent |
|
DEPLOYMENT_DIR = CURRENT_DIR / "deployment_files" |
|
|
|
|
|
SEIZURE_DETECTION_MODEL_PATH = REPO_DIR / "deployment_files" |
|
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 = (1, 1, 32, 32) |
|
|
|
|
|
INPUT_EXAMPLES_DIR = REPO_DIR / "input_examples" |
|
|
|
|
|
EXAMPLES = [str(image) for image in INPUT_EXAMPLES_DIR.glob("**/*")] |
|
|
|
|
|
SERVER_URL = "http://localhost:8000/" |
|
|