awesome-semantic-segmentation-pytorch icon indicating copy to clipboard operation
awesome-semantic-segmentation-pytorch copied to clipboard

> There might be something wrong with the version of `pillow`. Try this : `border=(0, 0, padw, padh)` -> `border=20`

Open bea-CC opened this issue 4 years ago • 3 comments
trafficstars

There might be something wrong with the version of pillow. Try this : border=(0, 0, padw, padh) -> border=20

Thank you very much, I solved it. But I don't know why "img = ImageOps.expand(img, border=(0, 0, padw, padh), fill=0)" can run but "mask = ImageOps.expand(mask, border=(0, 0, padw, padh), fill=0)" can not?

Originally posted by @cy998412 in https://github.com/Tramac/awesome-semantic-segmentation-pytorch/issues/184#issuecomment-921523343

bea-CC avatar Nov 07 '21 14:11 bea-CC

border=20 It's ok, but I don't understand why?

bea-CC avatar Nov 07 '21 14:11 bea-CC

i do this ,but i can't solve the problem

yao123yuhui avatar Nov 16 '21 13:11 yao123yuhui