I want to overfit my model on a mini-batch of data, to see if my model is correct. My dataset is in lmdb format. The data layer automatically update when I perform solver.step(). How can I avoid solver from loading new data in Caffe?
Asked
Active
Viewed 44 times
1 Answers
1
I use this with the Pycaffe interface:
if overfit: lmdb_cursor.first()
I have a flag (overfit) that when set calls this method which resets the cursor back to the beginning of the database for each batch. Hope this helps.

Robert Mash
- 36
- 1
-
Good solution. However, seems that I can't train using command line and prototxt in this way. – yihui.dev Jun 21 '16 at 15:38