pre-trained-model

How to get existing model to recognize additional classes?

南笙酒味 提交于 2019-11-30 04:14:00
Thanks to Google, that it provided few pre-trained models with tensorflow API . I would like to know how to retrain a pre-trained model available from the above repository, by adding new classes to the model. For example, COCO dataset trained model has 90 classes, I would like to add 1 or 2 classes to the existing one and get one 92 class object detection model as a result. Running Locally is provided by the repository but it is totally replacing those pre-trained classes with newly trained classes, there only train and eval are mentioned. So, is there any other way to retrain the model and

How to get existing model to recognize additional classes?

安稳与你 提交于 2019-11-29 01:02:33
问题 Thanks to Google, that it provided few pre-trained models with tensorflow API. I would like to know how to retrain a pre-trained model available from the above repository, by adding new classes to the model. For example, COCO dataset trained model has 90 classes, I would like to add 1 or 2 classes to the existing one and get one 92 class object detection model as a result. Running Locally is provided by the repository but it is totally replacing those pre-trained classes with newly trained

Is it possible to make a trainable variable not trainable?

牧云@^-^@ 提交于 2019-11-28 16:32:05
I created a trainable variable in a scope. Later, I entered the same scope, set the scope to reuse_variables , and used get_variable to retrieve the same variable. However, I cannot set the variable's trainable property to False . My get_variable line is like: weight_var = tf.get_variable('weights', trainable = False) But the variable 'weights' is still in the output of tf.trainable_variables . Can I set a shared variable's trainable flag to False by using get_variable ? The reason I want to do this is that I'm trying to reuse the low-level filters pre-trained from VGG net in my model, and I

Is it possible to make a trainable variable not trainable?

三世轮回 提交于 2019-11-27 00:10:43
问题 I created a trainable variable in a scope. Later, I entered the same scope, set the scope to reuse_variables , and used get_variable to retrieve the same variable. However, I cannot set the variable's trainable property to False . My get_variable line is like: weight_var = tf.get_variable('weights', trainable = False) But the variable 'weights' is still in the output of tf.trainable_variables . Can I set a shared variable's trainable flag to False by using get_variable ? The reason I want to