Visual-Behavior / detr-tensorflow

Tensorflow implementation of DETR : Object Detection with Transformers
MIT License
169 stars 53 forks source link

mean not initialized in inference.py - line 21 #41

Open khshalnuaimi opened 2 years ago

khshalnuaimi commented 2 years ago

elif config is not None and config.normalized_method == "tf_resnet": image = image + mean image = image[..., ::-1] image = image / 255

i tried to initialize it with mean = [103.939, 116.779, 123.68] but all my inferences had a blank picture. i am using tf_backbone, loaded by my weights.

khshalnuaimi commented 2 years ago

the above initialization works. mean = [103.939, 116.779, 123.68]