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

demo image is perfect but for my image it has some problem. #5

Closed wuboris closed 4 years ago

wuboris commented 4 years ago

0001_masksDL 0_out the first mask is generate by my FCN, the second mask is generate by Background-Matting. Moreover, the size of image is change.

senguptaumd commented 4 years ago

@wuboris Is the Background-MAtting mask 512x512? Then it seems like you have disabled the resizing. It usually takes the segmentation, crops a 512x512 region around it, pass it through the network and then uncrop the output back to the original resolution.

Please follow https://github.com/senguptaumd/Background-Matting#notes-on-capturing-images for capturing images. It seems like you either have a very strong reflection or shadows on the backdrop. You need to avoid that. Traditional green-screen also avoid shadows or reflection on the backdrop.

senguptaumd commented 4 years ago

Fixed the cropping/aspect ratio issue. Hopefully, now it works better.

senguptaumd commented 4 years ago

Check the latest update and see if it helps.

wuboris commented 4 years ago

great,thankyou for your help