{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22843","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22843/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22843/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22843/events","html_url":"https://github.com/tensorflow/tensorflow/issues/22843","id":368308473,"node_id":"MDU6SXNzdWUzNjgzMDg0NzM=","number":22843,"title":"Error with transform_graph tool:  \"Failed to parse --transform argument\"","user":{"login":"aejaex","id":7286405,"node_id":"MDQ6VXNlcjcyODY0MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/7286405?v=4","gravatar_id":"","url":"https://api.github.com/users/aejaex","html_url":"https://github.com/aejaex","followers_url":"https://api.github.com/users/aejaex/followers","following_url":"https://api.github.com/users/aejaex/following{/other_user}","gists_url":"https://api.github.com/users/aejaex/gists{/gist_id}","starred_url":"https://api.github.com/users/aejaex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aejaex/subscriptions","organizations_url":"https://api.github.com/users/aejaex/orgs","repos_url":"https://api.github.com/users/aejaex/repos","events_url":"https://api.github.com/users/aejaex/events{/privacy}","received_events_url":"https://api.github.com/users/aejaex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ymodak","id":42785357,"node_id":"MDQ6VXNlcjQyNzg1MzU3","avatar_url":"https://avatars1.githubusercontent.com/u/42785357?v=4","gravatar_id":"","url":"https://api.github.com/users/ymodak","html_url":"https://github.com/ymodak","followers_url":"https://api.github.com/users/ymodak/followers","following_url":"https://api.github.com/users/ymodak/following{/other_user}","gists_url":"https://api.github.com/users/ymodak/gists{/gist_id}","starred_url":"https://api.github.com/users/ymodak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymodak/subscriptions","organizations_url":"https://api.github.com/users/ymodak/orgs","repos_url":"https://api.github.com/users/ymodak/repos","events_url":"https://api.github.com/users/ymodak/events{/privacy}","received_events_url":"https://api.github.com/users/ymodak/received_events","type":"User","site_admin":false},"assignees":[{"login":"ymodak","id":42785357,"node_id":"MDQ6VXNlcjQyNzg1MzU3","avatar_url":"https://avatars1.githubusercontent.com/u/42785357?v=4","gravatar_id":"","url":"https://api.github.com/users/ymodak","html_url":"https://github.com/ymodak","followers_url":"https://api.github.com/users/ymodak/followers","following_url":"https://api.github.com/users/ymodak/following{/other_user}","gists_url":"https://api.github.com/users/ymodak/gists{/gist_id}","starred_url":"https://api.github.com/users/ymodak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymodak/subscriptions","organizations_url":"https://api.github.com/users/ymodak/orgs","repos_url":"https://api.github.com/users/ymodak/repos","events_url":"https://api.github.com/users/ymodak/events{/privacy}","received_events_url":"https://api.github.com/users/ymodak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-09T17:04:15Z","updated_at":"2018-10-13T17:50:42Z","closed_at":null,"author_association":"NONE","body":"\r\n------------------------\r\n\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: NO\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Mac OS X High Sierra\r\n- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device**: - \r\n- **TensorFlow installed from (source or binary)**: PIP INSTALLED\r\n- **TensorFlow version (use command below)**: 1.10.1\r\n- **Python version**: 2.7.12\r\n- **Bazel version (if compiling from source)**: - \r\n- **GCC/Compiler version (if compiling from source)**: -\r\n- **CUDA/cuDNN version**: - \r\n- **GPU model and memory**: - \r\n- **Exact command to reproduce**: \r\nbazel run transform_graph -- --in_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/frozen_inference_graph.pb --out_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/out_graph.pb --inputs='image_tensor' --outputs='detection_boxes,detection_scores,detection_classes,num_detections' --transforms='\r\nstrip_unused_nodes(type=float,shape=“1,299,299,3”)\r\nfold_constants(ignore_errors=true)\r\nfold_batch_norms\r\nfold_old_batch_norms'\r\n\r\n### Describe the problem\r\n\r\nI have used the Object Detection API to create a transfer learning model based upon MobileNet-V2-Coco. I have used \"export_for_inference.py\" on my checkpoint files to create a frozen model.\r\n\r\nI am now trying to optimise the frozen model as described here:\r\nhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/graph_transforms/README.md#introduction\r\n\r\nHowever, I am receiving an error:\r\n\r\ntensorflow/tools/graph_transforms/transform_graph.cc:241] **Failed to parse --transform argument, error was Looking for parameter name, but found “1,299,299,3”)\r\nfold_constants(ignore_errors=true)\r\nfold_batch_norms\r\nfold_old_batch_norms**\r\n\r\n\r\n### Source code / logs\r\n\r\nTRACEBACK\r\n\r\nMac-Air:graph_transforms mac$ bazel run transform_graph -- --in_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/frozen_inference_graph.pb --out_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/out_graph.pb --inputs='image_tensor' --outputs='detection_boxes,detection_scores,detection_classes,num_detections' --transforms='\r\nstrip_unused_nodes(type=float,shape=“1,299,299,3”)\r\nfold_constants(ignore_errors=true)\r\nfold_batch_norms\r\nfold_old_batch_norms'\r\nINFO: Analysed target //tensorflow/tools/graph_transforms:transform_graph (0 packages loaded).\r\nINFO: Found 1 target...\r\nTarget //tensorflow/tools/graph_transforms:transform_graph up-to-date:\r\n  bazel-bin/tensorflow/tools/graph_transforms/transform_graph\r\nINFO: Elapsed time: 0.554s, Critical Path: 0.00s\r\nINFO: 0 processes.\r\nINFO: Build completed successfully, 1 total action\r\nINFO: Running command line: bazel-bin/tensorflow/tools/graph_transforms/transform_graph '--in_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/frozen_inference_graph.pb' '--out_graph=/Users/Documents/modelsmaster/research/object_detection/inference_graphX/out_graph.pb' '--inputs=image_tensor' '--outputs=detection_boxes,detection_scores,detection_classes,num_detections' '--transforms=\r\nstrip_unused_nodes(type=float,shape=“1,299,299,3”)\r\nfold_constants(ignore_errors=true)\r\nfold_batch_norms\r\nINFO: Build completed successfully, 1 total action\r\n2018-10-09 22:25:41.764013: E tensorflow/tools/graph_transforms/transform_graph.cc:241] Failed to parse --transform argument, error was Looking for parameter name, but found “1,299,299,3”)\r\nfold_constants(ignore_errors=true)\r\nfold_batch_norms\r\nfold_old_batch_norms\r\n\r\n\r\nPlease help me in sorting out this issue.\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/429561670","html_url":"https://github.com/tensorflow/tensorflow/issues/22843#issuecomment-429561670","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22843","id":429561670,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTU2MTY3MA==","user":{"login":"aejaex","id":7286405,"node_id":"MDQ6VXNlcjcyODY0MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/7286405?v=4","gravatar_id":"","url":"https://api.github.com/users/aejaex","html_url":"https://github.com/aejaex","followers_url":"https://api.github.com/users/aejaex/followers","following_url":"https://api.github.com/users/aejaex/following{/other_user}","gists_url":"https://api.github.com/users/aejaex/gists{/gist_id}","starred_url":"https://api.github.com/users/aejaex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aejaex/subscriptions","organizations_url":"https://api.github.com/users/aejaex/orgs","repos_url":"https://api.github.com/users/aejaex/repos","events_url":"https://api.github.com/users/aejaex/events{/privacy}","received_events_url":"https://api.github.com/users/aejaex/received_events","type":"User","site_admin":false},"created_at":"2018-10-13T17:50:42Z","updated_at":"2018-10-13T17:50:42Z","author_association":"NONE","body":"Please look into this issue .."}}
{"actor":{"display_login":"aejaex"}}