Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.79k stars 580 forks source link

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

Open bea-CC opened 2 years ago

bea-CC commented 2 years ago

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 commented 2 years ago

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

yao123yuhui commented 2 years ago

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

simplystart-from-begining commented 1 month ago

我将pillow版本降为6.x版本解决这个错误了