KaiyangZhou / pytorch-vsumm-reinforce

Unsupervised video summarization with deep reinforcement learning (AAAI'18)
MIT License
471 stars 150 forks source link

error in summary2video.py #62

Closed Sujit1011 closed 3 years ago

Sujit1011 commented 3 years ago

Hello, I'm getting an error in this way

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 13 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x00000020/' ???'
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
Traceback (most recent call last):
  File "summary2video.py", line 42, in <module>
    frm2video(args.frm_dir, summary, vid_writer)
  File "summary2video.py", line 27, in frm2video
    frm = cv2.resize(frm, (args.width, args.height))
cv2.error: C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp:3289: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize

Can anyone resolve it for me, please

Thank you

SinDongHwan commented 3 years ago

Hi, @Sujit1011. Check a "frm" variable. Maybe image is not read.

sky-16 commented 3 years ago

Hi, @Sujit1011. Check a "frm" variable. Maybe image is not read.

From which folder I need to read image. I am unable to get your point.

SinDongHwan commented 3 years ago

Hi, @sky-16. following a error is occured, when a image wasn't read. (i.e. "frm" variable is None.) if not have a original dataset, you have to download it. and then convert videos to fraems.

Hello, I'm getting an error in this way

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 13 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x00000020/' ???'
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
Traceback (most recent call last):
  File "summary2video.py", line 42, in <module>
    frm2video(args.frm_dir, summary, vid_writer)
  File "summary2video.py", line 27, in frm2video
    frm = cv2.resize(frm, (args.width, args.height))
cv2.error: C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp:3289: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize

Can anyone resolve it for me, please

Thank you

sky-16 commented 3 years ago

Hi, @sky-16. following a error is occured, when a image wasn't read. (i.e. "frm" variable is None.) if not have a original dataset, you have to download it. and then convert videos to fraems.

Hello, I'm getting an error in this way

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 13 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x00000020/' ???'
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
Traceback (most recent call last):
  File "summary2video.py", line 42, in <module>
    frm2video(args.frm_dir, summary, vid_writer)
  File "summary2video.py", line 27, in frm2video
    frm = cv2.resize(frm, (args.width, args.height))
cv2.error: C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp:3289: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize

Can anyone resolve it for me, please Thank you

I have downloaded the dataset mentioned in https://github.com/KaiyangZhou/pytorch-vsumm-reinforce/issues/40. Is there any other dataset because in this one I can not find frames that need to be read.