-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParamConfig.py
43 lines (35 loc) · 1.51 KB
/
ParamConfig.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
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
"""
Parameters setting
Created on Feb 2018
@author: fangshuyang ([email protected])
"""
####################################################
#### MAIN PARAMETERS ####
####################################################
SimulateData = True # If False denotes training the CNN with SEGSaltData
ReUse = False # If False always re-train a network
DataDim = [2000,301] # Dimension of original one-shot seismic data
data_dsp_blk = (5,1) # Downsampling ratio of input
ModelDim = [201,301] # Dimension of one velocity model
label_dsp_blk = (1,1) # Downsampling ratio of output
dh = 10 # Space interval
####################################################
#### NETWORK PARAMETERS ####
####################################################
if SimulateData:
Epochs = 100 # Number of epoch
TrainSize = 1600 # Number of training set
TestSize = 100 # Number of testing set
TestBatchSize = 10
else:
Epochs = 50
TrainSize = 130
TestSize = 10
TestBatchSize = 1
BatchSize = 10 # Number of batch size
LearnRate = 1e-3 # Learning rate
Nclasses = 1 # Number of output channels
Inchannels = 29 # Number of input channels, i.e. the number of shots
SaveEpoch = 20
DisplayStep = 2 # Number of steps till outputting stats