TensorFlow Restore from Checkpoint multiple times
up vote
0
down vote
favorite
I have a Tensorflow checkpoint from which to restore my model:
logits, endpoints = mobilenet_v2.mobilenet(images)
saver = tf.train.Saver()
saver.restore(sess, checkpoint)
What I need to somehow create multiple instances of this model, which I can feed different inputs and compare the outputs, something like:
logits1, endpoints1 = mobilenet_v2.mobilenet(images1)
logits2, endpoints2 = mobilenet_v2.mobilenet(images2)
saver.restore(sess, checkpoint)
and then I want to use endpoints1
and endpoints2
in my code later on. Of course, this fails as variables try to be initiated twice (I guess).
Is there a way I can achieve this?
python tensorflow neural-network deep-learning
add a comment |
up vote
0
down vote
favorite
I have a Tensorflow checkpoint from which to restore my model:
logits, endpoints = mobilenet_v2.mobilenet(images)
saver = tf.train.Saver()
saver.restore(sess, checkpoint)
What I need to somehow create multiple instances of this model, which I can feed different inputs and compare the outputs, something like:
logits1, endpoints1 = mobilenet_v2.mobilenet(images1)
logits2, endpoints2 = mobilenet_v2.mobilenet(images2)
saver.restore(sess, checkpoint)
and then I want to use endpoints1
and endpoints2
in my code later on. Of course, this fails as variables try to be initiated twice (I guess).
Is there a way I can achieve this?
python tensorflow neural-network deep-learning
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a Tensorflow checkpoint from which to restore my model:
logits, endpoints = mobilenet_v2.mobilenet(images)
saver = tf.train.Saver()
saver.restore(sess, checkpoint)
What I need to somehow create multiple instances of this model, which I can feed different inputs and compare the outputs, something like:
logits1, endpoints1 = mobilenet_v2.mobilenet(images1)
logits2, endpoints2 = mobilenet_v2.mobilenet(images2)
saver.restore(sess, checkpoint)
and then I want to use endpoints1
and endpoints2
in my code later on. Of course, this fails as variables try to be initiated twice (I guess).
Is there a way I can achieve this?
python tensorflow neural-network deep-learning
I have a Tensorflow checkpoint from which to restore my model:
logits, endpoints = mobilenet_v2.mobilenet(images)
saver = tf.train.Saver()
saver.restore(sess, checkpoint)
What I need to somehow create multiple instances of this model, which I can feed different inputs and compare the outputs, something like:
logits1, endpoints1 = mobilenet_v2.mobilenet(images1)
logits2, endpoints2 = mobilenet_v2.mobilenet(images2)
saver.restore(sess, checkpoint)
and then I want to use endpoints1
and endpoints2
in my code later on. Of course, this fails as variables try to be initiated twice (I guess).
Is there a way I can achieve this?
python tensorflow neural-network deep-learning
python tensorflow neural-network deep-learning
asked Nov 7 at 9:07
Vidak
542823
542823
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53186345%2ftensorflow-restore-from-checkpoint-multiple-times%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