brycedrennan / eulerian-magnification

A tool to discover hidden variation in video.
MIT License
491 stars 121 forks source link

Memory error #11

Closed AdrienLemaire closed 7 years ago

AdrienLemaire commented 9 years ago

With a 35" video (58MB), I get a frame_count of 1179, a height of 1080 and width of 1920.

Since you're creating a 4d matrix of uint8 zeros, this means:

In[1] > print "{} TB required!".format(1179 * 1080 * 1920 * 3 * 256.0 / 1024**4)
1.70765519142 TB required!

I would need to degrade my video to 320*180 in order to have a feasible (48.5GB) size, and I assume the result will be disastrous.

Do you have an idea for a better way to handle this magnification, which doesn't require 30872 times more memory than the input video size ?

Thanks for your suggestions

brycedrennan commented 9 years ago

It's been a while since I worked on this project so I probably won't be much help. One thing that might help is to tweak the pyramid to be of a lower resolution despite the videos resolution. Other than that I don't know sorry.

Sent from my iPhone

On Jan 5, 2015, at 6:52 AM, Adrien Lemaire notifications@github.com wrote:

With a 35" video (58MB), I get a frame_count of 1179, a height of 1080 and width of 1920.

Since you're creating a 4d matrix of uint8 zeros, this means:

In[1] > print "{} TB required!".format(1179 * 1080 * 1920 * 3 * 256.0 / 1024*_4) 1.70765519142 TB required! I would need to degrade my video to 320_180 in order to have a feasible (48.5GB) size, and I assume the result will be disastrous.

Do you have an idea for a better way to handle this magnification, which doesn't require 30872 times more memory than the input video size ?

Thanks for your suggestions

— Reply to this email directly or view it on GitHub.

AdrienLemaire commented 9 years ago

Ok. thanks for the answer.