Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shape miss,After Update(4.8) #9

Closed
jjandnn opened this issue Apr 9, 2020 · 4 comments
Closed

shape miss,After Update(4.8) #9

jjandnn opened this issue Apr 9, 2020 · 4 comments

Comments

@jjandnn
Copy link

jjandnn commented Apr 9, 2020

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
Copy link
Owner

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
Copy link
Author

jjandnn commented Apr 9, 2020

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
Copy link
Owner

Thanks for the detailed bug report. Fixed it :)

@jjandnn
Copy link
Author

jjandnn commented Apr 10, 2020

The boss hard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants