hzwer / Practical-RIFE

More practical frame interpolation approach.
MIT License
603 stars 66 forks source link

np.float #89

Open Qinolion opened 2 months ago

Qinolion commented 2 months ago

Traceback (most recent call last): File "/host/home/yanai-lab/Sotsuken24/xiong-p/test/Practical-RIFE/inference_video.py", line 115, in lastframe = next(videogen) ^^^^^^^^^^^^^^ File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/skvideo/io/io.py", line 251, in vreader reader = FFmpegReader(fname, inputdict=inputdict, outputdict=outputdict, verbosity=verbosity) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/skvideo/io/ffmpeg.py", line 103, in init self.inputfps = np.float(parts[0])/np.float(parts[1]) ^^^^^^^^ File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/numpy/init.py", line 324, in getattr raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

NevermindNilas commented 2 months ago

Not sure but a quick google search says that the last known version with np.float seems to be 1.22.0

I'd first do a: pip uninstall numpy -y Just to get rid of the current numpy install.

Then I'd try this. pip install numpy==1.22.0