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

AttributeError: 'HourglassModel' object has no attribute 'Session' #58

Closed
WilliamYi96 opened this issue Jul 23, 2019 · 1 comment
Closed

Comments

@WilliamYi96
Copy link

When I was running this code, it appeared to have an error: AttributeError: 'HourglassModel' object has no attribute 'Session'.
And I think this sentence is hard to follow:
out = self.HG.Session.run(self.HG.output, feed_dict={self.HG.img : np.expand_dims(img, axis = 0)})
Where is the method HG.Session defined?
Is there anyone could give me some suggestions?

@WilliamYi96
Copy link
Author

Fixed, If I don't use restore() in hourglass class, then I need to init the session manually by self._init_session().

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

1 participant