Inpaint-Anything icon indicating copy to clipboard operation
Inpaint-Anything copied to clipboard

Remove Anything Video fails on large files

Open duffey opened this issue 1 year ago • 1 comments

Perhaps it is possible to read the stream the video in and out?

Traceback (most recent call last):
  File "C:\Users\user\code\Inpaint-Anything\remove_anything_video.py", line 357, in <module>
    all_frame = iio.mimread(video_raw_p)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\imageio\v2.py", line 444, in mimread
    raise RuntimeError(
RuntimeError: imageio.mimread() has read over 256000000B of image data.
Stopped to avoid memory problems. Use imageio.get_reader(), increase threshold, or memtest=False

duffey avatar May 16 '23 23:05 duffey

Seems I/O problem. iio may not support such a large video. You can try splitting the video into clips.

geekyutao avatar May 17 '23 06:05 geekyutao

simply add memtest=False solved it.

dragen1860 avatar May 31 '23 06:05 dragen1860

Sorry I forgot to close this. Can't confirm whether this works because I lost interest in what I was using this for.

duffey avatar Sep 27 '23 11:09 duffey