BiSeNet icon indicating copy to clipboard operation
BiSeNet copied to clipboard

why do not set the ignore index 255 to 0??

Open ZuyongWu opened this issue 3 years ago • 1 comments
trafficstars

the code pad image through: im = np.pad(im, ((pad_h, pad_h), (pad_w, pad_w), (0, 0))) lb = np.pad(lb, ((pad_h, pad_h), (pad_w, pad_w)), 'constant', constant_values=255)

my doubt is, why we not set the padded pixes to 0, corresponding to the backgroung ?? like: lb = np.pad(lb, ((pad_h, pad_h), (pad_w, pad_w)), 'constant', constant_values=0)

ZuyongWu avatar Jun 17 '22 09:06 ZuyongWu

Hi,

I used the trainId following this: https://github.com/mcordts/cityscapesScripts/blob/aeb7b82531f86185ce287705be28f452ba3ddbb8/cityscapesscripts/helpers/labels.py#L64

Here it said ignored trainId is 255.

CoinCheung avatar Jun 20 '22 02:06 CoinCheung