Open lampsonSong opened 4 years ago
There is a bug in the dataset/augmentation.py , Normalizer(): the img here is range from 0 to 255, but the mean and std used here are range from 0 to 1.
The code :
return {'img': ((image.astype(np.float32) - self.mean) / self.std), 'annot': annots}
should be changed to :
return {'img': ((image.astype(np.float32) / 255. - self.mean) / self.std), 'annot': annots}
I think the problem is only for COCO.
Yes, for coco.
There is a bug in the dataset/augmentation.py , Normalizer():
the img here is range from 0 to 255, but the mean and std used here are range from 0 to 1.
The code :
should be changed to :