brycedrennan/eulerian-magnification

module 'eulerian_magnification' has no attribute 'load_video_float'

Smoltbob opened this issue · 5 comments

Hello,
When using the module downloaded from pip, I get this error when trying out the sample code from the readme.
My video is an .mp4 file taken from the paper.

I don't think this library is currently in a functional state.

Also I think you forgot to include the error.

Oh its in the title 😄 whoops.

pinq- commented

the pip version is old. Just copy github version to python packages and then you should have that function. But when I run em.eulerian_magnification(vid, fps, freq_min=50.0 / 60.0, freq_max=10.0, amplification=20, pyramid_levels=3) I get MemoryError:

     42                 vid_pyramid.append(
     43                     numpy.zeros((video.shape[0], pyramid_sub_frame.shape[0], pyramid_sub_frame.shape[1], 3),
---> 44                                 dtype="float"))
     45
     46             vid_pyramid[pyramid_level][frame_number] = pyramid_sub_frame

you can use like this
import eulerian_magnification as em
from eulerian_magnification.io import load_video_float

vid, fps = load_video_float('data/Normal/Normal1.mp4')