File size: 774 Bytes
c3da629
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""

Configuration file for the Land Cover Classification System

"""

# EuroSAT class names
CLASS_NAMES = {
    '0': 'AnnualCrop',
    '1': 'Forest',
    '2': 'HerbaceousVegetation',
    '3': 'Highway',
    '4': 'Industrial',
    '5': 'Pasture',
    '6': 'PermanentCrop',
    '7': 'Residential',
    '8': 'River',
    '9': 'SeaLake'
}

# Model configuration
MODEL_CONFIG = {
    'input_shape': (64, 64, 3),
    'model_path': 'models/ResNet50_eurosat.h5',
    'best_model_path': 'models/model.weights.best.keras',
    'indices_path': 'models/class_indices.npy'
}

# Data processing configuration
DATA_CONFIG = {
    'allowed_formats': ['png', 'jpg', 'jpeg', 'tiff'],
    'max_image_size': (1024, 1024)  # Maximum dimensions for uploaded images
}