senguptaumd / Background-Matting

Background Matting: The World is Your Green Screen
https://grail.cs.washington.edu/projects/background-matting/
4.78k stars 662 forks source link

shape miss,After Update(4.8) #9

Closed jjandnn closed 4 years ago

jjandnn commented 4 years ago

CUDA Device: 0 Using image mode Traceback (most recent call last): File "test_background-matting_image.py", line 179, in comp_im_tr1=composite4(fg_out0,back_img10,alpha_out0) File "/content/drive/My Drive/Background-Matting/functions.py", line 8, in composite4 im = alpha fg + (1 - alpha) bg ValueError: operands could not be broadcast together with shapes (1080,1920,1) (1080,1980,3)

background/0002.png miss. 0001.png is ok.

senguptaumd commented 4 years ago

Error with only 0002.png, you mean? It works with 0001.png, right?

I will fix it soon. Thanks for bringing it to notice.

jjandnn commented 4 years ago

Error with only 0002.png。 The actual size of 0002 is 1920 1047. I changed it to 1920 1080 and it is not wrong. I found that the pictures related to _back, including the background picture, as long as the size is not 1920 * 1080, it will not work, it will report an error. thanks。 Your project is really great. Good luck。

senguptaumd commented 4 years ago

Thanks for the detailed bug report. Fixed it :)

jjandnn commented 4 years ago

The boss hard!