{"action":"created","issue":{"url":"https://api.github.com/repos/victordibia/handtracking/issues/14","repository_url":"https://api.github.com/repos/victordibia/handtracking","labels_url":"https://api.github.com/repos/victordibia/handtracking/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/victordibia/handtracking/issues/14/comments","events_url":"https://api.github.com/repos/victordibia/handtracking/issues/14/events","html_url":"https://github.com/victordibia/handtracking/issues/14","id":308606571,"number":14,"title":"run detect_*.py errors: Invalid argument: NodeDef mentions attr 'T' not in Op<name=Where","user":{"login":"gangyahaidao","id":25075558,"avatar_url":"https://avatars1.githubusercontent.com/u/25075558?v=4","gravatar_id":"","url":"https://api.github.com/users/gangyahaidao","html_url":"https://github.com/gangyahaidao","followers_url":"https://api.github.com/users/gangyahaidao/followers","following_url":"https://api.github.com/users/gangyahaidao/following{/other_user}","gists_url":"https://api.github.com/users/gangyahaidao/gists{/gist_id}","starred_url":"https://api.github.com/users/gangyahaidao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gangyahaidao/subscriptions","organizations_url":"https://api.github.com/users/gangyahaidao/orgs","repos_url":"https://api.github.com/users/gangyahaidao/repos","events_url":"https://api.github.com/users/gangyahaidao/events{/privacy}","received_events_url":"https://api.github.com/users/gangyahaidao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-26T14:52:58Z","updated_at":"2018-03-29T15:27:45Z","closed_at":null,"author_association":"NONE","body":"when i run cmd: python3 detect_single_threaded.py --source ~/Documents/test.mp4\r\ni got those errors:\r\n\r\n```\r\n> ====== loading HAND frozen graph into memory\r\n2018-03-26 22:47:54.129357: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA\r\n2018-03-26 22:47:54.278568: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2018-03-26 22:47:54.278914: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties: \r\nname: GeForce MX150 major: 6 minor: 1 memoryClockRate(GHz): 1.5315\r\npciBusID: 0000:01:00.0\r\ntotalMemory: 1.95GiB freeMemory: 1.57GiB\r\n2018-03-26 22:47:54.278933: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce MX150, pci bus id: 0000:01:00.0, compute capability: 6.1)\r\n>  ====== Hand Inference graph loaded.\r\n2018-03-26 22:47:54.651759: E tensorflow/core/common_runtime/executor.cc:643] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'T' not in Op<name=Where; signature=input:bool -> index:int64>; NodeDef: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).\r\n\t [[Node: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast)]]\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1323, in _do_call\r\n    return fn(*args)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1302, in _run_fn\r\n    status, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py\", line 473, in __exit__\r\n    c_api.TF_GetCode(self.status.status))\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef mentions attr 'T' not in Op<name=Where; signature=input:bool -> index:int64>; NodeDef: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).\r\n\t [[Node: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast)]]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"detect_single_threaded.py\", line 52, in <module>\r\n    image_np, detection_graph, sess)\r\n  File \"/home/rosrobot/git/handtracking/utils/detector_utils.py\", line 90, in detect_objects\r\n    feed_dict={image_tensor: image_np_expanded})\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 889, in run\r\n    run_metadata_ptr)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1120, in _run\r\n    feed_dict_tensor, options, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1317, in _do_run\r\n    options, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1336, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef mentions attr 'T' not in Op<name=Where; signature=input:bool -> index:int64>; NodeDef: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).\r\n\t [[Node: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast)]]\r\n\r\nCaused by op 'Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where', defined at:\r\n  File \"detect_single_threaded.py\", line 8, in <module>\r\n    detection_graph, sess = detector_utils.load_inference_graph()\r\n  File \"/home/rosrobot/git/handtracking/utils/detector_utils.py\", line 45, in load_inference_graph\r\n    tf.import_graph_def(od_graph_def, name='')\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/importer.py\", line 313, in import_graph_def\r\n    op_def=op_def)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py\", line 2956, in create_op\r\n    op_def=op_def)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/ops.py\", line 1470, in __init__\r\n    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access\r\n\r\nInvalidArgumentError (see above for traceback): NodeDef mentions attr 'T' not in Op<name=Where; signature=input:bool -> index:int64>; NodeDef: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).\r\n\t [[Node: Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where = Where[T=DT_BOOL, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"](Postprocessor/BatchMultiClassNonMaxSuppression/map/while/MultiClassNonMaxSuppression/FilterGreaterThan/Where/Cast)]]\r\n\r\n```\r\n\r\nit's hard to run this project, can anyone help me to solve this problem??"},"comment":{"url":"https://api.github.com/repos/victordibia/handtracking/issues/comments/377273108","html_url":"https://github.com/victordibia/handtracking/issues/14#issuecomment-377273108","issue_url":"https://api.github.com/repos/victordibia/handtracking/issues/14","id":377273108,"user":{"login":"gangyahaidao","id":25075558,"avatar_url":"https://avatars1.githubusercontent.com/u/25075558?v=4","gravatar_id":"","url":"https://api.github.com/users/gangyahaidao","html_url":"https://github.com/gangyahaidao","followers_url":"https://api.github.com/users/gangyahaidao/followers","following_url":"https://api.github.com/users/gangyahaidao/following{/other_user}","gists_url":"https://api.github.com/users/gangyahaidao/gists{/gist_id}","starred_url":"https://api.github.com/users/gangyahaidao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gangyahaidao/subscriptions","organizations_url":"https://api.github.com/users/gangyahaidao/orgs","repos_url":"https://api.github.com/users/gangyahaidao/repos","events_url":"https://api.github.com/users/gangyahaidao/events{/privacy}","received_events_url":"https://api.github.com/users/gangyahaidao/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T15:27:45Z","updated_at":"2018-03-29T15:27:45Z","author_association":"NONE","body":"I see! But how should i avoid to use gpu to run detect_single_threaded.py?\r\ni compiled tensorflow with gpu"}}
{"actor":{"display_login":"gangyahaidao"}}