{
  "id": 168179,
  "title": "Two small tricks for Submission ERROR",
  "url": "/competitions/global-wheat-detection/discussion/168179",
  "author_name": "",
  "post_date": "2020-07-19T14:36:34.058109700Z",
  "votes": 3,
  "comment_count": 2,
  "views": 0,
  "content": "<p>1.Due to online test data set may inclue images that are not 1024x1024, it's beter to resize images when cv2.imread.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fb05a6ffe54382829960e6123d88cff24%2FQQ20200725153852.png?generation=1595663020446565&amp;alt=media\" alt=\"\"></p>\n\n<p>2.Due to online test data set may inclue images without boxes,  use if when generate results.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fec6139ad68e18e5e163103461592f18f%2FQQ20200725155218.png?generation=1595663574438369&amp;alt=media\" alt=\"\"></p>\n\n<p>Submission is quite important, if you have any other tricks,  add in comments.</p>",
  "messages": [
    {
      "id": "935644",
      "postDate": "07/19/2020 14:36:34",
      "content": "<p>1.Due to online test data set may inclue images that are not 1024x1024, it's beter to resize images when cv2.imread.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fb05a6ffe54382829960e6123d88cff24%2FQQ20200725153852.png?generation=1595663020446565&amp;alt=media\" alt=\"\"></p>\n\n<p>2.Due to online test data set may inclue images without boxes,  use if when generate results.\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fec6139ad68e18e5e163103461592f18f%2FQQ20200725155218.png?generation=1595663574438369&amp;alt=media\" alt=\"\"></p>\n\n<p>Submission is quite important, if you have any other tricks,  add in comments.</p>",
      "rawMarkdown": "1.Due to online test data set may inclue images that are not 1024x1024, it's beter to resize images when cv2.imread.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fb05a6ffe54382829960e6123d88cff24%2FQQ20200725153852.png?generation=1595663020446565&amp;alt=media)\n\n2.Due to online test data set may inclue images without boxes,  use if when generate results.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fec6139ad68e18e5e163103461592f18f%2FQQ20200725155218.png?generation=1595663574438369&amp;alt=media)\n \nSubmission is quite important, if you have any other tricks,  add in comments.",
      "votes": null
    },
    {
      "id": "935672",
      "postDate": "07/19/2020 14:57:40",
      "content": "<p>Should I change like this?</p>\n\n<pre><code>    if len(boxes)&amp;gt;0:\n        result = {\n       'image_id': images_info['filename'][:-4],\n       'PredictionString': format_prediction_string(boxes, scores)}\n    else:\n        result = {\n       'image_id': images_info['filename'][:-4],\n       'PredictionString': ''}\n    results.append(result)\n</code></pre>",
      "rawMarkdown": "Should I change like this?\n\n        if len(boxes)&gt;0:\n            result = {\n           'image_id': images_info['filename'][:-4],\n           'PredictionString': format_prediction_string(boxes, scores)}\n        else:\n            result = {\n           'image_id': images_info['filename'][:-4],\n           'PredictionString': ''}\n        results.append(result)",
      "votes": null
    },
    {
      "id": "936098",
      "postDate": "07/20/2020 01:18:19",
      "content": "<p>Yes, after changing like this, it works.</p>",
      "rawMarkdown": "Yes, after changing like this, it works.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 935672,
      "author_name": "m1nglei",
      "author_url": "",
      "post_date": "07/19/2020 14:57:40",
      "content": "<p>Should I change like this?</p>\n\n<pre><code>    if len(boxes)&amp;gt;0:\n        result = {\n       'image_id': images_info['filename'][:-4],\n       'PredictionString': format_prediction_string(boxes, scores)}\n    else:\n        result = {\n       'image_id': images_info['filename'][:-4],\n       'PredictionString': ''}\n    results.append(result)\n</code></pre>",
      "votes": null,
      "replies": [
        {
          "id": 936098,
          "author_name": "m1nglei",
          "author_url": "",
          "post_date": "07/20/2020 01:18:19",
          "content": "<p>Yes, after changing like this, it works.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "935644": "1.Due to online test data set may inclue images that are not 1024x1024, it's beter to resize images when cv2.imread.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fb05a6ffe54382829960e6123d88cff24%2FQQ20200725153852.png?generation=1595663020446565&amp;alt=media)\n\n2.Due to online test data set may inclue images without boxes,  use if when generate results.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2062601%2Fec6139ad68e18e5e163103461592f18f%2FQQ20200725155218.png?generation=1595663574438369&amp;alt=media)\n \nSubmission is quite important, if you have any other tricks,  add in comments.",
    "935672": "Should I change like this?\n\n        if len(boxes)&gt;0:\n            result = {\n           'image_id': images_info['filename'][:-4],\n           'PredictionString': format_prediction_string(boxes, scores)}\n        else:\n            result = {\n           'image_id': images_info['filename'][:-4],\n           'PredictionString': ''}\n        results.append(result)",
    "936098": "Yes, after changing like this, it works."
  },
  "source": "meta"
}