Retrain Tensorflow Object detection API

这一生的挚爱 提交于 2019-12-18 03:43:54

问题


I have read tutorials on how to train a new class using TensorFlow Object Detection API. But what I want to do is to add a new class to the already trained classes of a pre-trained model.

For example : MS-COCO pre-trained model has 90 classes. I want to add one more class and detect objects for 91 classes.


回答1:


Tensorflow object detection API supports starting from a pre-trained MS COCO checkpoint. Just set

fine_tune_checkpoint: "/usr/home/username/tmp/model.ckpt-#####"
from_detection_checkpoint: true

In your detection pipeline. (Official reference: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/configuring_jobs.md)

You should add the images with your extra class to the coco dataset and finetune for all 91 classes, or your network might forget what it learned previously and only detect the new object.



来源:https://stackoverflow.com/questions/47591750/retrain-tensorflow-object-detection-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!