File size: 819 Bytes
25a71e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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