{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/4898","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/4898/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/4898/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/4898/events","html_url":"https://github.com/tensorflow/models/issues/4898","id":344552354,"node_id":"MDU6SXNzdWUzNDQ1NTIzNTQ=","number":4898,"title":"ImportError: cannot import name 'graph_rewriter_builder' when running train.py","user":{"login":"fdkssdks","id":41481304,"node_id":"MDQ6VXNlcjQxNDgxMzA0","avatar_url":"https://avatars2.githubusercontent.com/u/41481304?v=4","gravatar_id":"","url":"https://api.github.com/users/fdkssdks","html_url":"https://github.com/fdkssdks","followers_url":"https://api.github.com/users/fdkssdks/followers","following_url":"https://api.github.com/users/fdkssdks/following{/other_user}","gists_url":"https://api.github.com/users/fdkssdks/gists{/gist_id}","starred_url":"https://api.github.com/users/fdkssdks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdkssdks/subscriptions","organizations_url":"https://api.github.com/users/fdkssdks/orgs","repos_url":"https://api.github.com/users/fdkssdks/repos","events_url":"https://api.github.com/users/fdkssdks/events{/privacy}","received_events_url":"https://api.github.com/users/fdkssdks/received_events","type":"User","site_admin":false},"labels":[{"id":387356495,"node_id":"MDU6TGFiZWwzODczNTY0OTU=","url":"https://api.github.com/repos/tensorflow/models/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"nealwu","id":726075,"node_id":"MDQ6VXNlcjcyNjA3NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/726075?v=4","gravatar_id":"","url":"https://api.github.com/users/nealwu","html_url":"https://github.com/nealwu","followers_url":"https://api.github.com/users/nealwu/followers","following_url":"https://api.github.com/users/nealwu/following{/other_user}","gists_url":"https://api.github.com/users/nealwu/gists{/gist_id}","starred_url":"https://api.github.com/users/nealwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nealwu/subscriptions","organizations_url":"https://api.github.com/users/nealwu/orgs","repos_url":"https://api.github.com/users/nealwu/repos","events_url":"https://api.github.com/users/nealwu/events{/privacy}","received_events_url":"https://api.github.com/users/nealwu/received_events","type":"User","site_admin":false},"assignees":[{"login":"nealwu","id":726075,"node_id":"MDQ6VXNlcjcyNjA3NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/726075?v=4","gravatar_id":"","url":"https://api.github.com/users/nealwu","html_url":"https://github.com/nealwu","followers_url":"https://api.github.com/users/nealwu/followers","following_url":"https://api.github.com/users/nealwu/following{/other_user}","gists_url":"https://api.github.com/users/nealwu/gists{/gist_id}","starred_url":"https://api.github.com/users/nealwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nealwu/subscriptions","organizations_url":"https://api.github.com/users/nealwu/orgs","repos_url":"https://api.github.com/users/nealwu/repos","events_url":"https://api.github.com/users/nealwu/events{/privacy}","received_events_url":"https://api.github.com/users/nealwu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-25T18:15:33Z","updated_at":"2018-07-26T07:01:51Z","closed_at":null,"author_association":"NONE","body":"I followed the guide to generate and place all the files required for training in the proper models/research/object_detection directory structure.\r\n\r\nI found out the train.py file is in legacy folder so I run:\r\n```\r\npython legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_coco.config\r\n```\r\nI get this error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"legacy/train.py\", line 50, in <module>\r\n    from object_detection.builders import graph_rewriter_builder\r\nImportError: cannot import name 'graph_rewriter_builder'\r\n```\r\nI checked the file is present in the directory.\r\n\r\nI copied train.py out of legacy directory ran it and same error again.\r\n\r\nI also passed the path `export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim` and no success.\r\n\r\n### System information\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Ubuntu 16.04 LTS\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: 1.9.0\r\n- **Bazel version (if compiling from source)**:\r\n- **CUDA/cuDNN version**: 9.0 / 7.1\r\n- **GPU model and memory**: GTX960M 4GB\r\n- **Exact command to reproduce**: python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_coco.config\r\n\r\n[Link to Tensorflow tutorial](https://pythonprogramming.net/creating-tfrecord-files-tensorflow-object-detection-api-tutorial/)\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/407997635","html_url":"https://github.com/tensorflow/models/issues/4898#issuecomment-407997635","issue_url":"https://api.github.com/repos/tensorflow/models/issues/4898","id":407997635,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzk5NzYzNQ==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T07:01:51Z","updated_at":"2018-07-26T07:01:51Z","author_association":"MEMBER","body":"Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.\nWhat is the top-level directory of the model you are using\nHave I written custom code"}}
{"actor":{"display_login":"tensorflowbutler"}}