payload: {"action":"created","issue":{"url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194","repository_url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10","labels_url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194/comments","events_url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194/events","html_url":"https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194","id":383382092,"node_id":"MDU6SXNzdWUzODMzODIwOTI=","number":194,"title":"Unable to train model using train.py","user":{"login":"Sajjadmanal","id":6897398,"node_id":"MDQ6VXNlcjY4OTczOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6897398?v=4","gravatar_id":"","url":"https://api.github.com/users/Sajjadmanal","html_url":"https://github.com/Sajjadmanal","followers_url":"https://api.github.com/users/Sajjadmanal/followers","following_url":"https://api.github.com/users/Sajjadmanal/following{/other_user}","gists_url":"https://api.github.com/users/Sajjadmanal/gists{/gist_id}","starred_url":"https://api.github.com/users/Sajjadmanal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sajjadmanal/subscriptions","organizations_url":"https://api.github.com/users/Sajjadmanal/orgs","repos_url":"https://api.github.com/users/Sajjadmanal/repos","events_url":"https://api.github.com/users/Sajjadmanal/events{/privacy}","received_events_url":"https://api.github.com/users/Sajjadmanal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-22T05:05:11Z","updated_at":"2019-05-06T12:17:41Z","closed_at":null,"author_association":"NONE","body":"System information\r\nOS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows\r\nTensorFlow installed from (source or binary): Source\r\nTensorFlow version (use command below): 1.12.0\r\nCUDA/cuDNN version: NA\r\nGPU model and memory: CPU 16 GB\r\nExact command to reproduce: `python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config`\r\n\r\nfaster_rcnn_inception_v2_pets.config file:\r\n\r\n```\r\n# Faster R-CNN with Inception v2, configured for Oxford-IIIT Pets Dataset.\r\n# Users should configure the fine_tune_checkpoint field in the train config as\r\n# well as the label_map_path and input_path fields in the train_input_reader and\r\n# eval_input_reader. Search for \"PATH_TO_BE_CONFIGURED\" to find the fields that\r\n# should be configured.\r\n\r\nmodel {\r\n  faster_rcnn {\r\n    num_classes: 6\r\n    image_resizer {\r\n      keep_aspect_ratio_resizer {\r\n        min_dimension: 600\r\n        max_dimension: 1024\r\n      }\r\n    }\r\n    feature_extractor {\r\n      type: 'faster_rcnn_inception_v2'\r\n      first_stage_features_stride: 16\r\n    }\r\n    first_stage_anchor_generator {\r\n      grid_anchor_generator {\r\n        scales: [0.25, 0.5, 1.0, 2.0]\r\n        aspect_ratios: [0.5, 1.0, 2.0]\r\n        height_stride: 16\r\n        width_stride: 16\r\n      }\r\n    }\r\n    first_stage_box_predictor_conv_hyperparams {\r\n      op: CONV\r\n      regularizer {\r\n        l2_regularizer {\r\n          weight: 0.0\r\n        }\r\n      }\r\n      initializer {\r\n        truncated_normal_initializer {\r\n          stddev: 0.01\r\n        }\r\n      }\r\n    }\r\n    first_stage_nms_score_threshold: 0.0\r\n    first_stage_nms_iou_threshold: 0.7\r\n    first_stage_max_proposals: 300\r\n    first_stage_localization_loss_weight: 2.0\r\n    first_stage_objectness_loss_weight: 1.0\r\n    initial_crop_size: 14\r\n    maxpool_kernel_size: 2\r\n    maxpool_stride: 2\r\n    second_stage_box_predictor {\r\n      mask_rcnn_box_predictor {\r\n        use_dropout: false\r\n        dropout_keep_probability: 1.0\r\n        fc_hyperparams {\r\n          op: FC\r\n          regularizer {\r\n            l2_regularizer {\r\n              weight: 0.0\r\n            }\r\n          }\r\n          initializer {\r\n            variance_scaling_initializer {\r\n              factor: 1.0\r\n              uniform: true\r\n              mode: FAN_AVG\r\n            }\r\n          }\r\n        }\r\n      }\r\n    }\r\n    second_stage_post_processing {\r\n      batch_non_max_suppression {\r\n        score_threshold: 0.0\r\n        iou_threshold: 0.6\r\n        max_detections_per_class: 100\r\n        max_total_detections: 300\r\n      }\r\n      score_converter: SOFTMAX\r\n    }\r\n    second_stage_localization_loss_weight: 2.0\r\n    second_stage_classification_loss_weight: 1.0\r\n  }\r\n}\r\n\r\ntrain_config: {\r\n  batch_size: 1\r\n  optimizer {\r\n    momentum_optimizer: {\r\n      learning_rate: {\r\n        manual_step_learning_rate {\r\n          initial_learning_rate: 0.0002\r\n          schedule {\r\n            step: 0\r\n            learning_rate: .0002\r\n          }\r\n          schedule {\r\n            step: 900000\r\n            learning_rate: .00002\r\n          }\r\n          schedule {\r\n            step: 1200000\r\n            learning_rate: .000002\r\n          }\r\n        }\r\n      }\r\n      momentum_optimizer_value: 0.9\r\n    }\r\n    use_moving_average: false\r\n  }\r\n  gradient_clipping_by_norm: 10.0\r\n  fine_tune_checkpoint: \"C:/tensorflow1/models/research/object_detection/faster_rcnn_inception_v2_coco_2018_01_28/model.ckpt\"\r\n  from_detection_checkpoint: true\r\n  # Note: The below line limits the training process to 200K steps, which we\r\n  # empirically found to be sufficient enough to train the pets dataset. This\r\n  # effectively bypasses the learning rate schedule (the learning rate will\r\n  # never decay). Remove the below line to train indefinitely.\r\n  num_steps: 200000\r\n  data_augmentation_options {\r\n    random_horizontal_flip {\r\n    }\r\n  }\r\n}\r\n\r\n\r\ntrain_input_reader: {\r\n  tf_record_input_reader {\r\n    input_path: \"C:/tensorflow1/models/research/object_detection/train.record\"\r\n  }\r\n  label_map_path: \"C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt\"\r\n}\r\n\r\neval_config: {\r\n  num_examples: 67\r\n  # Note: The below line limits the evaluation process to 10 evaluations.\r\n  # Remove the below line to evaluate indefinitely.\r\n  max_evals: 10\r\n}\r\n\r\neval_input_reader: {\r\n  tf_record_input_reader {\r\n    input_path: \"C:/tensorflow1/models/research/object_detection/test.record\"\r\n  }\r\n  label_map_path: \"C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt\"\r\n  shuffle: false\r\n  num_readers: 1\r\n}\r\n```\r\n\r\n\r\nError:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"train.py\", line 184, in <module>\r\n    tf.app.run()\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\tensorflow\\python\\platform\\app.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\tensorflow\\python\\util\\deprecation.py\", line 306, in new_func\r\n    return func(*args, **kwargs)\r\n  File \"train.py\", line 180, in main\r\n    graph_hook_fn=graph_rewriter_fn)\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\object_detection-0.1-py3.6.egg\\object_detection\\legacy\\trainer.py\", line 248, in train\r\n    detection_model = create_model_fn()\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\object_detection-0.1-py3.6.egg\\object_detection\\builders\\model_builder.py\", line 121, in build\r\n    add_summaries)\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\object_detection-0.1-py3.6.egg\\object_detection\\builders\\model_builder.py\", line 430, in _build_faster_rcnn_model\r\n    num_classes=num_classes)\r\n  File \"C:\\Users\\sm50014\\AppData\\Local\\conda\\conda\\envs\\tensorflow\\lib\\site-packages\\object_detection-0.1-py3.6.egg\\object_detection\\builders\\box_predictor_builder.py\", line 617, in build\r\n    config_box_predictor.convolve_then_upsample_masks))\r\nAttributeError: 'MaskRCNNBoxPredictor' object has no attribute 'convolve_then_upsample_masks'\r\n```"},"comment":{"url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/comments/489599973","html_url":"https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194#issuecomment-489599973","issue_url":"https://api.github.com/repos/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/194","id":489599973,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4OTU5OTk3Mw==","user":{"login":"Rajamohanreddyai","id":48503904,"node_id":"MDQ6VXNlcjQ4NTAzOTA0","avatar_url":"https://avatars2.githubusercontent.com/u/48503904?v=4","gravatar_id":"","url":"https://api.github.com/users/Rajamohanreddyai","html_url":"https://github.com/Rajamohanreddyai","followers_url":"https://api.github.com/users/Rajamohanreddyai/followers","following_url":"https://api.github.com/users/Rajamohanreddyai/following{/other_user}","gists_url":"https://api.github.com/users/Rajamohanreddyai/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajamohanreddyai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajamohanreddyai/subscriptions","organizations_url":"https://api.github.com/users/Rajamohanreddyai/orgs","repos_url":"https://api.github.com/users/Rajamohanreddyai/repos","events_url":"https://api.github.com/users/Rajamohanreddyai/events{/privacy}","received_events_url":"https://api.github.com/users/Rajamohanreddyai/received_events","type":"User","site_admin":false},"created_at":"2019-05-06T12:17:41Z","updated_at":"2019-05-06T12:17:41Z","author_association":"NONE","body":"hello,\r\n\r\nuse full path for config file\r\n\r\nC:/Users/sm50014/tensorflow1/models/research/object_detection/training/labelmap.pbtxt\r\n\r\nHi, check this link\r\nhttps://youtu.be/nZUxoHPFf4w"}}
other: {"actor":{"display_login":"Rajamohanreddyai"}}