-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (30 loc) · 1004 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
28
29
30
31
32
33
34
35
import os
from dotenv import load_dotenv
from classes.Enum import Enum
load_dotenv()
ENV = Enum (
DECISION_FPS = int(os.getenv('DECISIONS_FPS')),
EYES_FPS = int(os.getenv('EYES_FPS')),
INTENTS_FPS = int(os.getenv('INTENTS_FPS')),
INTENTS_THRESHOLD = float(os.getenv('INTENTS_THRESHOLD')),
NAME = os.getenv('NAME'),
PYTHON = "python3",
TRAINING_EPOCHS = int(os.getenv('TRAINING_EPOCHS')),
)
ModelConfig = Enum (
INPUTS = 5,
LAYERS = [30],
OUTPUTS = 6,
TRAIN_THRESHOLD = 0.6,
MODEL_DATA_PATH = os.path.join(os.path.dirname(__file__), 'models/data/decisions-training.csv'),
MODEL_DATA_VALIDATION_PATH = os.path.join(os.path.dirname(__file__), 'models/data/decisions-validation.csv'),
MODEL_PATH = os.path.join(os.path.dirname(__file__), 'models/build/decisions.model.npy'),
MODEL_OUTPUT_ANNOTATION = [
'wakeup',
'train',
'blink',
'alert',
'anger',
'joy'
]
)