restoring checkpoint tensorflow object detection model
About a year ago I fine-tuned an object detection model for a couple days on a host with a number of GPUs. I didnt have the opportunity to use it until now, but I can't figure out how to get it loaded.
I have a number of checkpoint files:
model.ckpt-400000.data-00000-of-00001
model.ckpt-400000.index
model.ckpt-400000.meta
in a directory checkpoints
. I've been trying to load them like:
with tf.Session() as sess:
saver = tf.train.import_meta_graph("checkpoints/model.ckpt-400000.meta")
saver.restore(sess, "checkpoints/model.ckpt-400000")
however, this gives the exception:
.virtualenv/lib/python2.7/site-packages/tensorflow/python/framework/importer.pyc in _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
209 # Remove any default attr values that aren't in op_def.
210 if node.op in producer_op_dict:
--> 211 op_def = op_dict[node.op]
212 producer_op_def = producer_op_dict[node.op]
213 # We make a copy of node.attr to iterate through since we may modify
KeyError: u'ClipByValue'
Any insight into what I'm doing wrong? I can provide the pipeline config I used to train the model back then.
python tensorflow
add a comment |
About a year ago I fine-tuned an object detection model for a couple days on a host with a number of GPUs. I didnt have the opportunity to use it until now, but I can't figure out how to get it loaded.
I have a number of checkpoint files:
model.ckpt-400000.data-00000-of-00001
model.ckpt-400000.index
model.ckpt-400000.meta
in a directory checkpoints
. I've been trying to load them like:
with tf.Session() as sess:
saver = tf.train.import_meta_graph("checkpoints/model.ckpt-400000.meta")
saver.restore(sess, "checkpoints/model.ckpt-400000")
however, this gives the exception:
.virtualenv/lib/python2.7/site-packages/tensorflow/python/framework/importer.pyc in _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
209 # Remove any default attr values that aren't in op_def.
210 if node.op in producer_op_dict:
--> 211 op_def = op_dict[node.op]
212 producer_op_def = producer_op_dict[node.op]
213 # We make a copy of node.attr to iterate through since we may modify
KeyError: u'ClipByValue'
Any insight into what I'm doing wrong? I can provide the pipeline config I used to train the model back then.
python tensorflow
add a comment |
About a year ago I fine-tuned an object detection model for a couple days on a host with a number of GPUs. I didnt have the opportunity to use it until now, but I can't figure out how to get it loaded.
I have a number of checkpoint files:
model.ckpt-400000.data-00000-of-00001
model.ckpt-400000.index
model.ckpt-400000.meta
in a directory checkpoints
. I've been trying to load them like:
with tf.Session() as sess:
saver = tf.train.import_meta_graph("checkpoints/model.ckpt-400000.meta")
saver.restore(sess, "checkpoints/model.ckpt-400000")
however, this gives the exception:
.virtualenv/lib/python2.7/site-packages/tensorflow/python/framework/importer.pyc in _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
209 # Remove any default attr values that aren't in op_def.
210 if node.op in producer_op_dict:
--> 211 op_def = op_dict[node.op]
212 producer_op_def = producer_op_dict[node.op]
213 # We make a copy of node.attr to iterate through since we may modify
KeyError: u'ClipByValue'
Any insight into what I'm doing wrong? I can provide the pipeline config I used to train the model back then.
python tensorflow
About a year ago I fine-tuned an object detection model for a couple days on a host with a number of GPUs. I didnt have the opportunity to use it until now, but I can't figure out how to get it loaded.
I have a number of checkpoint files:
model.ckpt-400000.data-00000-of-00001
model.ckpt-400000.index
model.ckpt-400000.meta
in a directory checkpoints
. I've been trying to load them like:
with tf.Session() as sess:
saver = tf.train.import_meta_graph("checkpoints/model.ckpt-400000.meta")
saver.restore(sess, "checkpoints/model.ckpt-400000")
however, this gives the exception:
.virtualenv/lib/python2.7/site-packages/tensorflow/python/framework/importer.pyc in _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
209 # Remove any default attr values that aren't in op_def.
210 if node.op in producer_op_dict:
--> 211 op_def = op_dict[node.op]
212 producer_op_def = producer_op_dict[node.op]
213 # We make a copy of node.attr to iterate through since we may modify
KeyError: u'ClipByValue'
Any insight into what I'm doing wrong? I can provide the pipeline config I used to train the model back then.
python tensorflow
python tensorflow
asked Nov 20 at 17:58
downer
3551422
3551422
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398869%2frestoring-checkpoint-tensorflow-object-detection-model%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53398869%2frestoring-checkpoint-tensorflow-object-detection-model%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown