FateScript / CenterNet-better

An easy to understand and better performance version of CenterNet
Apache License 2.0
548 stars 104 forks source link

infrence data without normalization? #31

Closed ddt2014 closed 4 years ago

ddt2014 commented 4 years ago

https://github.com/FateScript/CenterNet-better/blob/2194a15f464d24b955d2aeeb0cb2b6881e0dd3e3/dl_lib/network/centernet.py#L145-L152

hi, the ‘aligned_img’ data that put into the backone is simply copy of the 'images' without being normalized with 'self.mean & self.std', is it right or a bug?

ddt2014 commented 4 years ago

got it. before 'self.inference(images)', it has been 'self.preprocess_image()'.