{
  "id": 215440,
  "title": "An error in Mask RCNN in the mode training",
  "url": "/competitions/vinbigdata-chest-xray-abnormalities-detection/discussion/215440",
  "author_name": "Yadavendra",
  "post_date": "2021-01-29T19:47:45.724000",
  "votes": 1,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi <br>\nI am trying to implement Mask RCNN for this dataset when I call the model mask RCNN in training mode.</p>\n<p>model = modellib.MaskRCNN( mode='training', config=config, model_dir=ROOT_DIR)</p>\n<p>got an error<br>\nTypeError: Could not build a TypeSpec for  with type KerasTensor</p>\n<p>please help me to solve this error.</p>\n<p>thanks </p>",
  "messages": [
    {
      "id": 1185286,
      "postDate": "2021-02-04T05:15:46.783Z",
      "content": "<p>These are the references I follow to implement MaskRCNN, hoping it helps</p>\n<ol>\n<li><a href=\"https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection\" target=\"_blank\">https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection</a>)</li>\n<li><a href=\"https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus\" target=\"_blank\">https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus</a></li>\n<li><a href=\"https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr\" target=\"_blank\">https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr</a><br>\nAlso, I created a notebook for Inference MaskRCNN: <a href=\"https://www.kaggle.com/daiquoctran/inference-maskrcnn\" target=\"_blank\">https://www.kaggle.com/daiquoctran/inference-maskrcnn</a></li>\n</ol>",
      "rawMarkdown": "These are the references I follow to implement MaskRCNN, hoping it helps\n1. https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection)\n2. https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus\n3. https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr\nAlso, I created a notebook for Inference MaskRCNN: https://www.kaggle.com/daiquoctran/inference-maskrcnn\n\n",
      "votes": 1
    },
    {
      "id": 1176808,
      "postDate": "2021-01-29T19:47:45.723Z",
      "content": "<p>Hi <br>\nI am trying to implement Mask RCNN for this dataset when I call the model mask RCNN in training mode.</p>\n<p>model = modellib.MaskRCNN( mode='training', config=config, model_dir=ROOT_DIR)</p>\n<p>got an error<br>\nTypeError: Could not build a TypeSpec for  with type KerasTensor</p>\n<p>please help me to solve this error.</p>\n<p>thanks </p>",
      "rawMarkdown": "Hi \nI am trying to implement Mask RCNN for this dataset when I call the model mask RCNN in training mode.\n\nmodel = modellib.MaskRCNN( mode='training', config=config, model_dir=ROOT_DIR)\n\ngot an error\nTypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) dtype=float32 (created by layer 'tf.math.truediv_1')> with type KerasTensor\n\nplease help me to solve this error.\n\nthanks \n\n",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 1185286,
      "author_name": "Dai Tran",
      "author_url": "",
      "post_date": "2021-02-04T05:15:46.783000",
      "content": "<p>These are the references I follow to implement MaskRCNN, hoping it helps</p>\n<ol>\n<li><a href=\"https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection\" target=\"_blank\">https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection</a>)</li>\n<li><a href=\"https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus\" target=\"_blank\">https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus</a></li>\n<li><a href=\"https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr\" target=\"_blank\">https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr</a><br>\nAlso, I created a notebook for Inference MaskRCNN: <a href=\"https://www.kaggle.com/daiquoctran/inference-maskrcnn\" target=\"_blank\">https://www.kaggle.com/daiquoctran/inference-maskrcnn</a></li>\n</ol>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1185286": "These are the references I follow to implement MaskRCNN, hoping it helps\n1. https://www.kaggle.com/frlemarchand/maskrcnn-for-chest-x-ray-anomaly-detection)\n2. https://github.com/matterport/Mask_RCNN/tree/master/samples/nucleus\n3. https://www.kaggle.com/hmendonca/mask-rcnn-and-medical-transfer-learning-siim-acr\nAlso, I created a notebook for Inference MaskRCNN: https://www.kaggle.com/daiquoctran/inference-maskrcnn\n\n",
    "1176808": "Hi \nI am trying to implement Mask RCNN for this dataset when I call the model mask RCNN in training mode.\n\nmodel = modellib.MaskRCNN( mode='training', config=config, model_dir=ROOT_DIR)\n\ngot an error\nTypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) dtype=float32 (created by layer 'tf.math.truediv_1')> with type KerasTensor\n\nplease help me to solve this error.\n\nthanks \n\n"
  }
}