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: 'TfPoseEstimator' object has no attribute 'persistent_sess' #1

Open
xtuyaowu opened this issue Jun 7, 2018 · 1 comment

Comments

@xtuyaowu
Copy link

xtuyaowu commented Jun 7, 2018

got such errors,help!
[phormatics]# python server/app.py
Traceback (most recent call last):
File "server/app.py", line 27, in
pose_estimator = TfPoseEstimator(graph_path=settings.GRAPH_PATH, target_size=settings.PROCESSING_DIMS)
File "/data/app/yaowu/phormatics/server/helpers/estimator.py", line 257, in init
graph_def.ParseFromString(f.read())
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 120, in read
self._preread_check()
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 80, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: /data/app/yaowu/phormatics/models/mobilenet/graph_opt.pb; No such file or directory
Exception ignored in: <bound method TfPoseEstimator.del of <helpers.estimator.TfPoseEstimator object at 0x7fdeb5b2da58>>
Traceback (most recent call last):
File "/data/app/yaowu/phormatics/server/helpers/estimator.py", line 280, in del
self.persistent_sess.close()
AttributeError: 'TfPoseEstimator' object has no attribute 'persistent_sess'

@snehmehta
Copy link

got such errors,help!
[phormatics]# python server/app.py
Traceback (most recent call last):
File "server/app.py", line 27, in
pose_estimator = TfPoseEstimator(graph_path=settings.GRAPH_PATH, target_size=settings.PROCESSING_DIMS)
File "/data/app/yaowu/phormatics/server/helpers/estimator.py", line 257, in init
graph_def.ParseFromString(f.read())
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 120, in read
self._preread_check()
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 80, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "/data/app/Anaconda/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: /data/app/yaowu/phormatics/models/mobilenet/graph_opt.pb; No such file or directory
Exception ignored in: <bound method TfPoseEstimator.del of <helpers.estimator.TfPoseEstimator object at 0x7fdeb5b2da58>>
Traceback (most recent call last):
File "/data/app/yaowu/phormatics/server/helpers/estimator.py", line 280, in del
self.persistent_sess.close()
AttributeError: 'TfPoseEstimator' object has no attribute 'persistent_sess'

hey i got same error so did you find any solution for it

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