-
Notifications
You must be signed in to change notification settings - Fork 188
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
why resize input image to 320x320 #17
Comments
Thank you for your suggestion! But I remember that crop has been down in this code, see funtion 'prreprocessing_single' in matting.py. |
For line 25 and 26 in test.py, are you resizing the input images into size of 320x320 then feeding them into the neural network to predict the alpha matte? My thinking is that if the neural network is trained to find alpha matte for a patch of a image, then you are supposed to use it to find the alpha matte of a patch only. |
@xiranwang |
Looking forward to your update :) |
Based on the paper, I think you want to crop the entire image into 320x320 patches and then feed those with uncertain pixels into the neural network, but your code seems to just resize the entire input image into a single 320x320 image and feed into the neural network. This is totally different from what is done by the paper, which might explain why your results differ from theirs.
The text was updated successfully, but these errors were encountered: