I have created a net for image segmentation, in particular brain tumors. The jupyter notebook with the code is here.
When I train the CNN with minibatch size of 1, I get a fairly good result:
But when I change the size to something larger ( 2 or more) the results are terrible:
Tensorboard shows the diference in the loss. Clearly the the net with batchsize 2 is not minimizing the loss (blue)
Any ideas on why this could be the case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…