BATCH_SIZE=([1,2][TWO_TRAINS])*2*1000//25# == 80 Each batch of tiles has balanced D/S tiles, shuffled batches but not inside batches
SUFFIX=(str(NET_ARCH1)+'-'+str(NET_ARCH2)+
(["R","A"][ABSOLUTE_DISPARITY])+
(["NS","S8"][SYM8_SUB])+
"WLAM"+str(WLOSS_LAMBDA)+
"SLAM"+str(SLOSS_LAMBDA)+
"SCLP"+str(SLOSS_CLIP)+
(['_nG','_G'][SPREAD_CONVERGENCE])+
(['_nI','_I'][INTER_CONVERGENCE])+
(['_nHF',"_HF"][HOR_FLIP])+
('_CP'+str(DISP_DIFF_CAP))+
('_S'+str(DISP_DIFF_SLOPE))
)
NN_LAYOUTS={0:[0,0,0,32,20,16],
1:[0,0,0,256,128,64],
2:[0,128,32,32,32,16],
3:[0,0,40,32,20,16],
4:[0,0,0,0,16,16],
5:[0,0,64,32,32,16],
6:[0,0,32,16,16,16],
7:[0,0,64,16,16,16],
8:[0,0,0,64,20,16],
9:[0,0,256,64,32,16],
10:[0,256,128,64,32,16],
11:[0,0,0,0,64,32],
}
NN_LAYOUT1=NN_LAYOUTS[NET_ARCH1]
NN_LAYOUT2=NN_LAYOUTS[NET_ARCH2]
USE_PARTIALS=notPARTIALS_WEIGHTSisNone# False - just a single Siamese net, True - partial outputs that use concentric squares of the first level subnets
tf_img_test9:img_gain_test9})# previous value of *_avg #Fetch argument 0.0 has invalid type <class 'float'>, must be a string or Tensor. (Can not convert a float into a Tensor or Operation.)
Remove dataset_img (if it is not [0] to reduce memory footprint
"""
ifntest>0:
image_data[ntest]=None
# Close writers
train_writer.close()
test_writer.close()
test_writer1.close()
#reports error: Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7efc5f720ef0>> if there is no print before exit()