Practical-RIFE icon indicating copy to clipboard operation
Practical-RIFE copied to clipboard

np.float

Open Qinolion opened this issue 1 year ago • 1 comments

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

Qinolion avatar Aug 10 '24 11:08 Qinolion

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

NevermindNilas avatar Aug 18 '24 20:08 NevermindNilas