phormatics icon indicating copy to clipboard operation
phormatics copied to clipboard

AttributeError: 'TfPoseEstimator' object has no attribute 'persistent_sess'

Open xtuyaowu opened this issue 6 years ago • 1 comments

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'

xtuyaowu avatar Jun 07 '18 08:06 xtuyaowu

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

snehmehta avatar Apr 12 '19 09:04 snehmehta