yihui.dev
yihui.dev

Reputation: 602

Caffe: can I avoid loading new data while training?

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?

Upvotes: 0

Views: 46

Answers (1)

Robert Mash
Robert Mash

Reputation: 36

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.

Upvotes: 1

Related Questions