def getOpts(opts):
print("config opts...")
opts['validation'] = 0.1
opts['exemplarSize'] = 127
opts['instanceSize'] = 255-2*8
opts['lossRPos'] = 16
opts['lossRNeg'] = 0
opts['labelWeight'] = 'balanced'
opts['numPairs'] = 53200
opts['frameRange'] = 100
opts['trainNumEpochs'] = 50
opts['trainLr'] = np.logspace(-2, -5, opts['trainNumEpochs'])
opts['trainWeightDecay'] = 5e-04
opts['randomSeed'] = 1
opts['momentum'] = 0.9
opts['stddev'] = 0.01
opts['start'] = 0
opts['expName'] = '20170518_tn_o_001'
opts['summaryFile'] = './data_20170518/'+opts['expName']
opts['ckptPath'] = './ckpt/'+opts['expName']
return opts
评论列表
文章目录