DeepTrackAI / DeepTrack2

DeepTrack2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Train on more than a single image

LRpz opened this issue · comments

commented

Hi,

I was wondering if more than one image could be used when generating the training set for LodeSTAR.

Thank you very much!
L

I think this might be what you're looking for ?

That's right! We recommend using a few crops for training where possible, though there are diminishing returns the more you add.

commented

Yes! In that case, I would call training_images rather than training_set in
generator = dt.models.lodestar.LodeSTARGenerator( training_set, 3, (group, equivariance), batch_size=8, min_data_size=200, max_data_size=201 )
?

Thanks a lot!

An example would be

training_images = [crop1, crop2, crop3, ...]
random_sampler = dt.Value(lambda: random.choice(training_images))
generator = dt.models.lodestar.LodeSTARGenerator(random_sampler, 3, ...)