{
  "id": 163518,
  "title": "Re-training from checkpoint issue... YOLOv5",
  "url": "/competitions/global-wheat-detection/discussion/163518",
  "author_name": "",
  "post_date": "2020-07-02T11:18:24.075329300Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>[Update]:\nYolov5 automatically strips the optimizer from best and last check point. I commented out the line to save the optimizer being stripped. It worked.</p>",
  "messages": [
    {
      "id": "912268",
      "postDate": "07/02/2020 11:18:24",
      "content": "<p>[Update]:\nYolov5 automatically strips the optimizer from best and last check point. I commented out the line to save the optimizer being stripped. It worked.</p>",
      "rawMarkdown": "[Update]:\nYolov5 automatically strips the optimizer from best and last check point. I commented out the line to save the optimizer being stripped. It worked.",
      "votes": null
    },
    {
      "id": "912643",
      "postDate": "07/02/2020 16:13:42",
      "content": "<p>Why did you add code? I think yolov5 has already built-in the checkpoint stuff...</p>",
      "rawMarkdown": "Why did you add code? I think yolov5 has already built-in the checkpoint stuff...",
      "votes": null
    },
    {
      "id": "912681",
      "postDate": "07/02/2020 16:41:12",
      "content": "<p>While training if I face a internet connection problem or load-shedding my session restarted anew when I was back. This caused erasure of data from the session including the checkpoints.\nTo overcome this issue I just added two extra lines of code in train.py to save the best.pt and last.pt file to my google drive folder.</p>\n\n<p>I am using google drive. And sometimes I face such condition.</p>",
      "rawMarkdown": "While training if I face a internet connection problem or load-shedding my session restarted anew when I was back. This caused erasure of data from the session including the checkpoints.\nTo overcome this issue I just added two extra lines of code in train.py to save the best.pt and last.pt file to my google drive folder.\n\n\nI am using google drive. And sometimes I face such condition.",
      "votes": null
    },
    {
      "id": "912691",
      "postDate": "07/02/2020 16:48:14",
      "content": "<p>I think it is because colab and google drive are not 100% synchronized. I may try to force colab to remount after some modification on the drive.</p>",
      "rawMarkdown": "I think it is because colab and google drive are not 100% synchronized. I may try to force colab to remount after some modification on the drive.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 912643,
      "author_name": "zacchaeus",
      "author_url": "",
      "post_date": "07/02/2020 16:13:42",
      "content": "<p>Why did you add code? I think yolov5 has already built-in the checkpoint stuff...</p>",
      "votes": null,
      "replies": [
        {
          "id": 912681,
          "author_name": "zaber666",
          "author_url": "",
          "post_date": "07/02/2020 16:41:12",
          "content": "<p>While training if I face a internet connection problem or load-shedding my session restarted anew when I was back. This caused erasure of data from the session including the checkpoints.\nTo overcome this issue I just added two extra lines of code in train.py to save the best.pt and last.pt file to my google drive folder.</p>\n\n<p>I am using google drive. And sometimes I face such condition.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 912691,
      "author_name": "zacchaeus",
      "author_url": "",
      "post_date": "07/02/2020 16:48:14",
      "content": "<p>I think it is because colab and google drive are not 100% synchronized. I may try to force colab to remount after some modification on the drive.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "912268": "[Update]:\nYolov5 automatically strips the optimizer from best and last check point. I commented out the line to save the optimizer being stripped. It worked.",
    "912643": "Why did you add code? I think yolov5 has already built-in the checkpoint stuff...",
    "912681": "While training if I face a internet connection problem or load-shedding my session restarted anew when I was back. This caused erasure of data from the session including the checkpoints.\nTo overcome this issue I just added two extra lines of code in train.py to save the best.pt and last.pt file to my google drive folder.\n\n\nI am using google drive. And sometimes I face such condition.",
    "912691": "I think it is because colab and google drive are not 100% synchronized. I may try to force colab to remount after some modification on the drive."
  },
  "source": "meta"
}