{"action":"created","issue":{"url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/19","repository_url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp","labels_url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/19/comments","events_url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/19/events","html_url":"https://github.com/davidjesusacu/polyrnn-pp/issues/19","id":346456490,"node_id":"MDU6SXNzdWUzNDY0NTY0OTA=","number":19,"title":"ValueError: graph_def is invalid at node u'GatherTree': Input types mismatch","user":{"login":"Kongsea","id":4168984,"node_id":"MDQ6VXNlcjQxNjg5ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4168984?v=4","gravatar_id":"","url":"https://api.github.com/users/Kongsea","html_url":"https://github.com/Kongsea","followers_url":"https://api.github.com/users/Kongsea/followers","following_url":"https://api.github.com/users/Kongsea/following{/other_user}","gists_url":"https://api.github.com/users/Kongsea/gists{/gist_id}","starred_url":"https://api.github.com/users/Kongsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kongsea/subscriptions","organizations_url":"https://api.github.com/users/Kongsea/orgs","repos_url":"https://api.github.com/users/Kongsea/repos","events_url":"https://api.github.com/users/Kongsea/events{/privacy}","received_events_url":"https://api.github.com/users/Kongsea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T05:47:46Z","updated_at":"2018-08-01T05:51:11Z","closed_at":null,"author_association":"NONE","body":"When I restore the PolygonRNN++ model, it raised the following error:\r\n\r\n```\r\nINFO:tensorflow:Building PolygonRNN++ ...\r\nTraceback (most recent call last):\r\n  File \"src/inference.py\", line 135, in <module>\r\n    tf.app.run(inference)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 124, in run\r\n    _sys.exit(main(argv))\r\n  File \"src/inference.py\", line 79, in inference\r\n    model = PolygonModel(FLAGS.PolyRNN_metagraph, polyGraph)\r\n  File \"/home/konghaiyang/polygon/polyrnn-pp/src/PolygonModel.py\", line 43, in __init__\r\n    self._restore_graph(meta_graph_path)\r\n  File \"/home/konghaiyang/polygon/polyrnn-pp/src/PolygonModel.py\", line 47, in _restore_graph\r\n    self.saver = tf.train.import_meta_graph(meta_graph_path, clear_devices=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py\", line 1838, in import_meta_graph\r\n    **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/meta_graph.py\", line 660, in import_scoped_meta_graph\r\n    producer_op_list=producer_op_list)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py\", line 316, in new_func\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py\", line 657, in import_graph_def\r\n    ', '.join(x.name for x in op._input_dtypes))))\r\nValueError: graph_def is invalid at node u'GatherTree': Input types mismatch (expected 'int32, int32, int32, int32' but got 'int32, int32, int32').\r\n```\r\n\r\nCould anybody tell me what's the reason and how to fix it?\r\nThank you."},"comment":{"url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/comments/409457256","html_url":"https://github.com/davidjesusacu/polyrnn-pp/issues/19#issuecomment-409457256","issue_url":"https://api.github.com/repos/davidjesusacu/polyrnn-pp/issues/19","id":409457256,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ1NzI1Ng==","user":{"login":"Kongsea","id":4168984,"node_id":"MDQ6VXNlcjQxNjg5ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4168984?v=4","gravatar_id":"","url":"https://api.github.com/users/Kongsea","html_url":"https://github.com/Kongsea","followers_url":"https://api.github.com/users/Kongsea/followers","following_url":"https://api.github.com/users/Kongsea/following{/other_user}","gists_url":"https://api.github.com/users/Kongsea/gists{/gist_id}","starred_url":"https://api.github.com/users/Kongsea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kongsea/subscriptions","organizations_url":"https://api.github.com/users/Kongsea/orgs","repos_url":"https://api.github.com/users/Kongsea/repos","events_url":"https://api.github.com/users/Kongsea/events{/privacy}","received_events_url":"https://api.github.com/users/Kongsea/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T05:51:11Z","updated_at":"2018-08-01T05:51:11Z","author_association":"NONE","body":"It's because I'm using tensorflow 1.5. I should switch it to 1.3.0."}}
{"actor":{"display_login":"Kongsea"}}