wbenbihi / hourglasstensorflow

Tensorflow implementation of Stacked Hourglass Networks for Human Pose Estimation
MIT License
480 stars 179 forks source link

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

Closed WilliamYi96 closed 5 years ago

WilliamYi96 commented 5 years ago

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 commented 5 years ago

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