PathoAI / core /config.py
woffluon's picture
First Upload
25a71e0
raw
history blame contribute delete
819 Bytes
import os
class Config:
"""Central Configuration Management"""
APP_NAME = "PathoAI"
VERSION = "v1.0.0"
# Image Parameters
IMG_SIZE = (224, 224)
INPUT_SHAPE = (224, 224, 3)
# Class Definitions
CLASSES = [
'Benign (Normal Doku)',
'Adenocarcinoma (Akciğer Kanseri Tip 1)',
'Squamous Cell Carcinoma (Akciğer Kanseri Tip 2)'
]
# File Paths
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MODEL_DIR = os.path.join(BASE_DIR, "models")
CLS_MODEL_PATH = os.path.join(MODEL_DIR, "resnet50_best.keras")
SEG_MODEL_PATH = os.path.join(MODEL_DIR, "cia_net_final_sota.keras")
# Thresholds
NUC_THRESHOLD = 0.4 # Nucleus detection sensitivity
CON_THRESHOLD = 0.3 # Contour detection sensitivity