Skip to content

Conversation

@y-melamed
Copy link

In generator_collection.py in DIPGenerator class (line99) the raw_data was saved as field as well as the detrended data.
Since the raw data wasn't been used elsewhere it can be replaced and be called self.data from the reading of the video and by that save quite a lot of RAM usage.

In addition, in the detrend function (same file, line 127) the output from the regression is being saved as float64, while in most cases the video is no more then float32 so it can be cast to float32 and saving memory as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant