{"action":"created","issue":{"url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/9","repository_url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose","labels_url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/9/comments","events_url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/9/events","html_url":"https://github.com/Superlee506/Mask_RCNN_Humanpose/issues/9","id":312386226,"number":9,"title":"AttributeError: 'ShapesConfig' object has no attribute 'KEYPOINT_MASK_SHAPE'","user":{"login":"wuhuhu800","id":21167490,"avatar_url":"https://avatars1.githubusercontent.com/u/21167490?v=4","gravatar_id":"","url":"https://api.github.com/users/wuhuhu800","html_url":"https://github.com/wuhuhu800","followers_url":"https://api.github.com/users/wuhuhu800/followers","following_url":"https://api.github.com/users/wuhuhu800/following{/other_user}","gists_url":"https://api.github.com/users/wuhuhu800/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhuhu800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhuhu800/subscriptions","organizations_url":"https://api.github.com/users/wuhuhu800/orgs","repos_url":"https://api.github.com/users/wuhuhu800/repos","events_url":"https://api.github.com/users/wuhuhu800/events{/privacy}","received_events_url":"https://api.github.com/users/wuhuhu800/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T04:07:54Z","updated_at":"2018-04-10T14:38:35Z","closed_at":null,"author_association":"NONE","body":"hey：\r\n    I'm runing train_shape.ipynb  ,when run the line\r\n```python\r\n# Create model in training mode\r\nmodel = modellib.MaskRCNN(mode=\"training\", config=config,\r\n                          model_dir=MODEL_DIR)\r\n```\r\nI get some errors like that:\r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-10-ae82d0e47c39> in <module>()\r\n      1 # Create model in training mode\r\n      2 model = modellib.MaskRCNN(mode=\"training\", config=config,\r\n----> 3                           model_dir=MODEL_DIR)\r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/model.py in __init__(self, mode, config, model_dir)\r\n   2514         self.model_dir = model_dir\r\n   2515         self.set_log_dir()\r\n-> 2516         self.keras_model = self.build(mode=mode, config=config)\r\n   2517 \r\n   2518     def build(self, mode, config):\r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/model.py in build(self, mode, config)\r\n   2679             rois, target_class_ids, target_bbox, target_keypoint, target_keypoint_weight, target_mask = \\\r\n   2680                 DetectionKeypointTargetLayer(config, name=\"proposal_targets\")\\\r\n-> 2681                     ([target_rois, input_gt_class_ids, gt_boxes, gt_keypoints, input_gt_masks])\r\n   2682 \r\n   2683             # Network Heads\r\n\r\n~/anaconda3/lib/python3.6/site-packages/keras/engine/topology.py in __call__(self, inputs, **kwargs)\r\n    617 \r\n    618             # Actually call the layer, collecting output(s), mask(s), and shape(s).\r\n--> 619             output = self.call(inputs, **kwargs)\r\n    620             output_mask = self.compute_mask(inputs, previous_mask)\r\n    621 \r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/model.py in call(self, inputs)\r\n    838             lambda r, x, y, z, m: detection_keypoint_targets_graph(\r\n    839                 r, x, y, z, m,self.config),\r\n--> 840             self.config.IMAGES_PER_GPU, names=names)\r\n    841         return outputs\r\n    842 \r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/utils.py in batch_slice(inputs, graph_fn, batch_size, names)\r\n    992     for i in range(batch_size):\r\n    993         inputs_slice = [x[i] for x in inputs]\r\n--> 994         output_slice = graph_fn(*inputs_slice)\r\n    995         if not isinstance(output_slice, (tuple, list)):\r\n    996             output_slice = [output_slice]\r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/model.py in <lambda>(r, x, y, z, m)\r\n    837             [proposals, gt_class_ids, gt_boxes, gt_keypoints, gt_masks],\r\n    838             lambda r, x, y, z, m: detection_keypoint_targets_graph(\r\n--> 839                 r, x, y, z, m,self.config),\r\n    840             self.config.IMAGES_PER_GPU, names=names)\r\n    841         return outputs\r\n\r\n~/keyPoints/Mask_rcnn/Mask_RCNN_Humanpose/model.py in detection_keypoint_targets_graph(proposals, gt_class_ids, gt_boxes, gt_keypoints, gt_masks, config)\r\n    726     y2 = y2[:, 0]\r\n    727     x2 = x2[:, 0]\r\n--> 728     scale_x = tf.cast(config.KEYPOINT_MASK_SHAPE[1] / ((x2 - x1) * config.IMAGE_SHAPE[1]), tf.float32)\r\n    729     scale_y = tf.cast(config.KEYPOINT_MASK_SHAPE[0] / ((y2 - y1) * config.IMAGE_SHAPE[0]), tf.float32)\r\n    730     keypoint_lables = []\r\n\r\nAttributeError: 'ShapesConfig' object has no attribute 'KEYPOINT_MASK_SHAPE'\r\n\r\n```\r\nhow can I fix it ,thank you \r\n"},"comment":{"url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/comments/380124540","html_url":"https://github.com/Superlee506/Mask_RCNN_Humanpose/issues/9#issuecomment-380124540","issue_url":"https://api.github.com/repos/Superlee506/Mask_RCNN_Humanpose/issues/9","id":380124540,"user":{"login":"wuhuhu800","id":21167490,"avatar_url":"https://avatars1.githubusercontent.com/u/21167490?v=4","gravatar_id":"","url":"https://api.github.com/users/wuhuhu800","html_url":"https://github.com/wuhuhu800","followers_url":"https://api.github.com/users/wuhuhu800/followers","following_url":"https://api.github.com/users/wuhuhu800/following{/other_user}","gists_url":"https://api.github.com/users/wuhuhu800/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhuhu800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhuhu800/subscriptions","organizations_url":"https://api.github.com/users/wuhuhu800/orgs","repos_url":"https://api.github.com/users/wuhuhu800/repos","events_url":"https://api.github.com/users/wuhuhu800/events{/privacy}","received_events_url":"https://api.github.com/users/wuhuhu800/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T14:38:35Z","updated_at":"2018-04-10T14:38:35Z","author_association":"NONE","body":"@Superlee506 Got it,thank you very much."}}
{"actor":{"display_login":"wuhuhu800"}}