tensorflow - 训练 TF2 object_detection API 时张量板中的饱和对比度和低亮度

标签 tensorflow tensorflow2.0 tensorboard

我正在尝试微调一个高效的检测模型。以下是我所做工作的回顾:

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

我的问题是,如张量板中所示(即数据预处理后),对比度已达到最大(或有时未达到最大,但仍然太高),并且亮度通常太低: enter image description here

我用https://github.com/sulc/tfrecord-viewer检查了tfrecords的内容,颜色很好。 我在另一台具有不同 nvidia GPU 型号的机器上尝试过,同样的问题。

知道问题出在哪里吗?谢谢!

最佳答案

这似乎是一个可视化问题,而不是一个训练问题。可以通过将归一化从(-1,1)更改为(0,1)来解决。

在代码中进行以下更改:

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

关于tensorflow - 训练 TF2 object_detection API 时张量板中的饱和对比度和低亮度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64082229/

相关文章:

python - 在学习期间将数据添加到自动编码器中的解码器

python - 如何在 Tensorflow 中创建优化器

tensorflow - model.fit和model.predict中的批处理大小

tensorflow - TensorFlow 2 和 Keras 中不同的正向和反向传播

python - 在 Tensorboard 中显示更多图像 - Tensorflow 对象检测

python - eval_metric_ops 显示在张量板上的 family 下

python - Tensorflow 的对象检测 API 的输出是什么?

python - 如何在 TensorFlow 2.0 中控制冗长

python - 如何打印来自 tf.data 的数据集示例?

tensorflow - Tensorboard 无法获取运行的第一个事件时间戳