TheCacophonyProject / classifier-pipeline

Exports tracked animals through thermal vision.
GNU General Public License v3.0
21 stars 14 forks source link

Memory fix #74

Closed gferraro closed 5 years ago

gferraro commented 5 years ago

Added a config option classify.cache_to_disk which will write frames to a temp h5py file.

Also changed TrackExtractor Mask to be int32 instead of float32

gferraro commented 5 years ago

Also could process frame as is read from cptv file to reduce keeping thermal in memory

And could only cache to disk when file is bigger than x frames.

Was thinking would play around with this when trying to get running on PI

mjs commented 5 years ago

Also could process frame as is read from cptv file to reduce keeping thermal in memory

And could only cache to disk when file is bigger than x frames.

This is definitely a good idea but it seems like you've got memory under control now so let's look at it again when we get it running on the pi.