Open fight-think opened 4 years ago
looks like segmentation might have failed and rcnn
variable is empty.
I get it, maybe I missed process of segmentation. I will try again. Thanks.
------------------ 原始邮件 ------------------ 发件人: "Soumyadip Sengupta"<notifications@github.com>; 发送时间: 2020年5月8日(星期五) 晚上6:45 收件人: "senguptaumd/Background-Matting"<Background-Matting@noreply.github.com>; 抄送: "1297518605"<1297518605@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [senguptaumd/Background-Matting] Error occured while I running code on my video, some limits to video or misconfig enviorment? (#34)
looks like segmentation might have failed and rcnn variable is empty.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Is it is because the frame is the same as the background, aka empty. And there is nothing to segment and code crashes coz can't handle that?
!CUDA_VISIBLE_DEVICES=0 python test_background-matting_image.py -m real-fixed-cam -i sample_video_fixed/input/ -o sample_video_fixed/output/ -tb sample_video_fixed/background/ -b sample_video_fixed/teaser_back.png
CUDA Device: 0 Using video mode Traceback (most recent call last): File "test_background-matting_image.py", line 121, in
bbox=get_bbox(rcnn,R=bgr_img0.shape[0],C=bgr_img0.shape[1])
File "/content/drive/My Drive/background_matting/Background-Matting/functions.py", line 38, in get_bbox
x1, y1 = np.amin(where, axis=1)
File "<__array_function__ internals>", line 6, in amin
File "/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py", line 2746, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py", line 90, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity