brycedrennan / eulerian-magnification

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

module 'eulerian_magnification' has no attribute 'load_video_float' #26

Open Smoltbob opened 5 years ago

Smoltbob commented 5 years ago

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.

brycedrennan commented 5 years ago

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

brycedrennan commented 5 years ago

Also I think you forgot to include the error.

brycedrennan commented 5 years ago

Oh its in the title :smile: whoops.

pinq- commented 5 years ago

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
GuoQuanhao commented 4 years ago

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')