Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i restore the model_c to continue train and do test? #25

Open
dalaoshe opened this issue May 16, 2018 · 1 comment
Open

How can i restore the model_c to continue train and do test? #25

dalaoshe opened this issue May 16, 2018 · 1 comment

Comments

@dalaoshe
Copy link

I mean, what's the model the model_c use to train? the L_Resnet_E_IR.py or some other *.py?
because, when i use the latest code to restore as follow:

if args.ckpt_file:
model_path = tf.train.latest_checkpoint(args.ckpt_file)
print('restore model from model_path:{} {}'.format(model_path, args.ckpt_file))
saver.restore(sess, model_path)
else:
print('re train model')
sess.run(tf.global_variables_initializer())
where,model_path is InsightFace_iter_best_1950000.ckpt, but it fails, the tf report is:
Key resnet_v1_50/block1/unit_1/bottleneck_v1/conv1/kernel not found in checkpoint

so, can you tell me how can i to do restore from the model_c in the right way? and is there something
different in model layer between mgpu and single gpu??? thank you very much!

@Neltherion
Copy link

Neltherion commented Jun 19, 2018

@dalaoshe

I get a similar error... Did you manage to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants