{
  "id": 293601,
  "title": "[Notebook Threw Exception] Solve",
  "url": "/competitions/tensorflow-great-barrier-reef/discussion/293601",
  "author_name": "",
  "post_date": "2021-12-06T08:27:05.237153400Z",
  "votes": 5,
  "comment_count": 2,
  "views": 0,
  "content": "<p>You may encounter a ”Notebook Threw Exception“ during the race,  you can check if your generated boundaries are out of range</p>",
  "messages": [
    {
      "id": "1608105",
      "postDate": "12/06/2021 08:27:05",
      "content": "<p>You may encounter a ”Notebook Threw Exception“ during the race,  you can check if your generated boundaries are out of range</p>",
      "rawMarkdown": "You may encounter a ”Notebook Threw Exception“ during the race,  you can check if your generated boundaries are out of range",
      "votes": null
    },
    {
      "id": "1642340",
      "postDate": "01/08/2022 09:32:47",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/xuxu1234\" target=\"_blank\">@xuxu1234</a> ,<br>\nI am getting this error , can you be more detail with your solution ? <br>\nThanks.</p>",
      "rawMarkdown": "Hi @xuxu1234 ,\nI am getting this error , can you be more detail with your solution ? \nThanks.",
      "votes": null
    },
    {
      "id": "1642382",
      "postDate": "01/08/2022 10:12:16",
      "content": "<p>I solved this problem with the following code：<br>\n<code>bboxes[:, 2] = bboxes[:, 2].astype(np.int32).clip(min=0, max=720)</code><br>\n<code>bboxes[:, 0] = bboxes[:, 0].astype(np.int32).clip(min=0, max=720)</code><br>\n<code>bboxes[:, 1] = bboxes[:, 1].astype(np.int32).clip(min=0, max=1280)</code><br>\n<code>bboxes[:, 3] = bboxes[:, 3].astype(np.int32).clip(min=0, max=1280)</code></p>",
      "rawMarkdown": "I solved this problem with the following code：\n`bboxes[:, 2] = bboxes[:, 2].astype(np.int32).clip(min=0, max=720)`\n`bboxes[:, 0] = bboxes[:, 0].astype(np.int32).clip(min=0, max=720)`\n`bboxes[:, 1] = bboxes[:, 1].astype(np.int32).clip(min=0, max=1280)`\n`bboxes[:, 3] = bboxes[:, 3].astype(np.int32).clip(min=0, max=1280)`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1642340,
      "author_name": "bluelight22",
      "author_url": "",
      "post_date": "01/08/2022 09:32:47",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/xuxu1234\" target=\"_blank\">@xuxu1234</a> ,<br>\nI am getting this error , can you be more detail with your solution ? <br>\nThanks.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1642382,
          "author_name": "xuxu1234",
          "author_url": "",
          "post_date": "01/08/2022 10:12:16",
          "content": "<p>I solved this problem with the following code：<br>\n<code>bboxes[:, 2] = bboxes[:, 2].astype(np.int32).clip(min=0, max=720)</code><br>\n<code>bboxes[:, 0] = bboxes[:, 0].astype(np.int32).clip(min=0, max=720)</code><br>\n<code>bboxes[:, 1] = bboxes[:, 1].astype(np.int32).clip(min=0, max=1280)</code><br>\n<code>bboxes[:, 3] = bboxes[:, 3].astype(np.int32).clip(min=0, max=1280)</code></p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1608105": "You may encounter a ”Notebook Threw Exception“ during the race,  you can check if your generated boundaries are out of range",
    "1642340": "Hi @xuxu1234 ,\nI am getting this error , can you be more detail with your solution ? \nThanks.",
    "1642382": "I solved this problem with the following code：\n`bboxes[:, 2] = bboxes[:, 2].astype(np.int32).clip(min=0, max=720)`\n`bboxes[:, 0] = bboxes[:, 0].astype(np.int32).clip(min=0, max=720)`\n`bboxes[:, 1] = bboxes[:, 1].astype(np.int32).clip(min=0, max=1280)`\n`bboxes[:, 3] = bboxes[:, 3].astype(np.int32).clip(min=0, max=1280)`"
  },
  "source": "meta"
}