saturated contrast and low brightness in tensorboard when training TF2 object_detection API

876 views Asked by At

I'm trying to fine-tune an efficient det model. Here is a recap of what I've done:

python models/research/object_detection/model_main_tf2.py \
    --pipeline_config_path=efficientdet_d0_coco17_tpu-32/pipeline.config \
    --model_dir=foo/model/ \
    --alsologtostderr

My problem is that as seen in tensorboard (ie after data preprocessing), contrast is maxed out (or sometimes not maxed, but still way too high), and brightness is often too low: enter image description here

I checked the content of the tfrecords with https://github.com/sulc/tfrecord-viewer, the colors are fine. I tried on another machine with a different nvidia GPU model, same problem.

Any idea where the problem could come from? Thanks!

1

There are 1 answers

0
Othman Ali On

this seems to be a visualization issue, and not a training issue. It can be solved by changing the normalization from (-1,1) to (0,1).

follow these changes in the code:

https://github.com/tensorflow/models/pull/9019