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 could I load the head pose estimator pre-trained model by checkpoint? #101

Open
laurence-lin opened this issue Sep 17, 2020 · 1 comment

Comments

@laurence-lin
Copy link

Hello, I'm Laurence, thank you for your kindly sharing.
I'm currently using head pose estimation for my project, however I've noticed that the tensorflow implementation used methods in tensorflow 1.x for operating.

As for the loading yaw_variable, pitch_variable part, the file in .etc use .tf file then tf.train.Saver to restore the variables.

Could I use checkpoint method to load these variables? I haven't found a method to do it.
Thank you!

@mpatacchiola
Copy link
Owner

Hi @laurence-lin you are right, Deepgaze head pose estimation is based on Tensorflow 1.x.
However, it should not be too difficult to load the weights in Tensorflow 2.x since they have been stored as individual tensors.

I suggest you to give a look to the official documentations here. In particular give a look at this section where they explain how to load old checkpoints into TF 2 models. Searching on GitHub you can probably find some projects where this has been done.

Hope this helped.

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