LArbys / LArCV

Liquid Argon Computer Vision
11 stars 9 forks source link

APICaffe: if requested by user, put entry number into top blob #30

Closed twongjirad closed 7 years ago

twongjirad commented 8 years ago

otherwise don't.

This is for analyses. This way they can run forward() with ROOT random access and have a way to get entry info without having to figure out way to align trees.

During training, will probably not want to load this info into top blob.

drinkingkazu commented 8 years ago

For now, you can access processed entries through ThreadFillerFactory which holds an instance used by caffe.

larcv.ThreadFillerFactory.get("Train")

should return ThreadDatumFiller instance used by caffe if "Train" is the name assigned for a filler (this is prototxt configuration).

We can add more into Datum but the more variables we want to expose, probably it's better to use organized data structure than 1D array datum. Flexible analysis variable filling into a struct or something could be an future extension!