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

"assert len(arr) == framesize" throws an error

Open Thaldos opened this issue 4 years ago • 3 comments

Hello,

I tried to run the command "python3 inference_video.py --exp=1 --video=video.mp4" on my own custom video, but I got the error :

[email protected] in /shared/httpd/arXiv2020-RIFE $ python3 inference_video.py --exp=1 --video=video.mp4
video.mp4, 642.0 frames in total, 29.850746268656717FPS to 59.701492537313435FPS
The audio will be merged after interpolation process
  0%|                                                                                         | 0/642.0 [00:00<?, ?it/s][W NNPACK.cpp:80] Could not initialize NNPACK! Reason: Unsupported hardware.
Unhandled exception in thread started by <function build_read_buffer at 0x7f465cec4950>
Traceback (most recent call last):
  File "/home/devilbox/.local/lib/python3.7/site-packages/skvideo/io/ffmpeg.py", line 271, in _read_frame_data
    assert len(arr) == framesize
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "inference_video.py", line 130, in build_read_buffer
    for frame in videogen:
  File "/home/devilbox/.local/lib/python3.7/site-packages/skvideo/io/io.py", line 253, in vreader
    for frame in reader.nextFrame():
  File "/home/devilbox/.local/lib/python3.7/site-packages/skvideo/io/ffmpeg.py", line 297, in nextFrame
    yield self._readFrame()
  File "/home/devilbox/.local/lib/python3.7/site-packages/skvideo/io/ffmpeg.py", line 281, in _readFrame
    s = self._read_frame_data()
  File "/home/devilbox/.local/lib/python3.7/site-packages/skvideo/io/ffmpeg.py", line 275, in _read_frame_data
    raise RuntimeError("%s" % (err1,))
RuntimeError
Killed

Does anyone know the reason ? It seems to be about the "framesize", but I don't know what it is exactly :/

Thanks for your help

Thaldos avatar Jan 01 '21 22:01 Thaldos

This error is caused because sk-video can not open your video successfully. Would you mind upload your video to Google drive and send it to me?

hzwer avatar Jan 05 '21 03:01 hzwer

Yes sure : https://drive.google.com/file/d/1QQ506nmI4K8YG3Lwpf1hVq24feiCCPdu/view?usp=sharing

Thanks

Thaldos avatar Jan 05 '21 05:01 Thaldos

Same issue here.

snkedive avatar Jan 08 '21 20:01 snkedive