-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
31 lines (25 loc) · 1.21 KB
/
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
class Config():
def __init__(self):
self.debug = True
self.input_size = 224 # Side length of square image patch
self.batch_size = 10
self.val_batch_size = 4
self.test_batch_size = 1
self.verbose_testing = True
self.k = 64 # Number of classes
self.num_epochs = 32 #250 for real
self.data_dir = "./datasets/BSDS500val" # Directory of images
self.showdata = False # Debug the data augmentation by showing the data we're training on.
self.useInstanceNorm = False # Instance Normalization
self.useBatchNorm = True # Only use one of either instance or batch norm
self.useDropout = True
self.drop = 0.65
# Each item in the following list specifies a module.
# Each item is the number of input channels to the module.
# The number of output channels is 2x in the encoder, x/2 in the decoder.
self.encoderLayerSizes = [64, 128, 256, 512]
self.decoderLayerSizes = [1024,512, 256]
self.showSegmentationProgress = True
self.segmentationProgressDir = './latent_images/'
self.variationalTranslation = 0 # Pixels, 0 for off. 1 works fine
self.saveModel = True