File size: 617 Bytes
0def483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Configuration constants for HATSAT application.
"""

# Model configuration
MODEL_CHECKPOINT = 'net_g_150000.pth'
REQUIRED_IMAGE_SIZE = (130, 130)
WINDOW_SIZE = 16
UPSCALE_FACTOR = 4

# Model architecture parameters
MODEL_CONFIG = {
    'upscale': 4,
    'in_chans': 3,
    'img_size': 128,
    'window_size': 16,
    'compress_ratio': 3,
    'squeeze_factor': 30,
    'conv_scale': 0.01,
    'overlap_ratio': 0.5,
    'img_range': 1.,
    'depths': [6, 6, 6, 6, 6, 6],
    'embed_dim': 180,
    'num_heads': [6, 6, 6, 6, 6, 6],
    'mlp_ratio': 2,
    'upsampler': 'pixelshuffle',
    'resi_connection': '1conv'
}