{
  "id": 406421,
  "title": "retain output file for a new version / submission",
  "url": "/competitions/vesuvius-challenge-ink-detection/discussion/406421",
  "author_name": "",
  "post_date": "2023-05-02T09:35:43.300597200Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi all,</p>\n<p>I was able to run the Example submission notebook (<a href=\"https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission\" target=\"_blank\">https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission</a>) via 'Save &amp; Run all'<br>\nThis created model.pt and submission.csv in the output folder of that particular version.   <br>\nNow I'm trying to edit that notebook version to make <code>TRAIN_RUN = False</code> so as to save and submit it.<br>\n(Submitting the version with TRAIN_RUN = True exceeded 12 hours and failed.)<br>\nBut when I click on 'edit', the notebook version that shows up, no longer has any files in output folder.      </p>\n<hr>\n<p>I also tried running the notebook until the cell with <code># Clear memory before loading test fragments</code>, so that model.pt is created and saved.<br>\nAnd after this, I updated <code>TRAIN_RUN = False</code> and chose Save&amp;Run all. <br>\nBut it failed with the error <code>No such file or directory: '/kaggle/working/model.pt'</code>   </p>\n<hr>\n<p>How do you retain model.pt previously generated in a new version ? </p>",
  "messages": [
    {
      "id": "2242442",
      "postDate": "05/02/2023 09:35:43",
      "content": "<p>Hi all,</p>\n<p>I was able to run the Example submission notebook (<a href=\"https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission\" target=\"_blank\">https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission</a>) via 'Save &amp; Run all'<br>\nThis created model.pt and submission.csv in the output folder of that particular version.   <br>\nNow I'm trying to edit that notebook version to make <code>TRAIN_RUN = False</code> so as to save and submit it.<br>\n(Submitting the version with TRAIN_RUN = True exceeded 12 hours and failed.)<br>\nBut when I click on 'edit', the notebook version that shows up, no longer has any files in output folder.      </p>\n<hr>\n<p>I also tried running the notebook until the cell with <code># Clear memory before loading test fragments</code>, so that model.pt is created and saved.<br>\nAnd after this, I updated <code>TRAIN_RUN = False</code> and chose Save&amp;Run all. <br>\nBut it failed with the error <code>No such file or directory: '/kaggle/working/model.pt'</code>   </p>\n<hr>\n<p>How do you retain model.pt previously generated in a new version ? </p>",
      "rawMarkdown": "Hi all,\n\nI was able to run the Example submission notebook (https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission) via 'Save & Run all'\nThis created model.pt and submission.csv in the output folder of that particular version.   \nNow I'm trying to edit that notebook version to make ```TRAIN_RUN = False``` so as to save and submit it.\n(Submitting the version with TRAIN_RUN = True exceeded 12 hours and failed.)\nBut when I click on 'edit', the notebook version that shows up, no longer has any files in output folder.      \n\n-----------------------------------------------------------------------------------------------------------------------------------\n\nI also tried running the notebook until the cell with ```# Clear memory before loading test fragments```, so that model.pt is created and saved.\nAnd after this, I updated ```TRAIN_RUN = False``` and chose Save&Run all. \nBut it failed with the error ```No such file or directory: '/kaggle/working/model.pt'```   \n\n-----------------------------------------------------------------------------------------------------------------------------------\n\nHow do you retain model.pt previously generated in a new version ?",
      "votes": null
    },
    {
      "id": "2244884",
      "postDate": "05/04/2023 01:05:00",
      "content": "<p>i personnaly download the output and do a new dataset to put model in<br>\nbut you can also, after the notebook is run &amp; save : <br>\n-click on the three dot near the \"output\" in the output tab of you save &amp; run notebook<br>\n-select create notebook<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2F71a1db1fa2c3eb6d1911c206496c27b6%2FCapture.PNG?generation=1683161838275891&amp;alt=media\" alt=\"\"></p>\n<p>then you will have your model in a new notebook<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2Fb1c5086a2364110ad34f1933a8bf1cda%2FCapture2.PNG?generation=1683162276940111&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "i personnaly download the output and do a new dataset to put model in\nbut you can also, after the notebook is run & save : \n-click on the three dot near the \"output\" in the output tab of you save & run notebook\n-select create notebook\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2F71a1db1fa2c3eb6d1911c206496c27b6%2FCapture.PNG?generation=1683161838275891&alt=media)\n\nthen you will have your model in a new notebook\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2Fb1c5086a2364110ad34f1933a8bf1cda%2FCapture2.PNG?generation=1683162276940111&alt=media)",
      "votes": null
    },
    {
      "id": "2247410",
      "postDate": "05/06/2023 01:31:22",
      "content": "<p>Thanks a lot for this.<br>\nCreating a new notebook with this didn't unfortunately work as expected.<br>\nBut building up on what you suggested, creating a new dataset worked for my purpose. And I can add it to any new notebook</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F4e8970ce471f24eb3794dd7680be9617%2FScreenshot_2023-05-06_11-16-59.png?generation=1683336488294047&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F787f21de7f6add76be925fc14a7b13e0%2FScreenshot_2023-05-06_11-17-43.png?generation=1683336503664644&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F311ec5bfd8b7e6b2de0e1dfc07afafa3%2FScreenshot_2023-05-06_11-18-30.png?generation=1683336527407030&amp;alt=media\" alt=\"\"><br>\nCan't see the model.pt</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F8de14ab15dfcebdeb900336358086d04%2FScreenshot_2023-05-06_11-24-04.png?generation=1683336624132027&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F7239c99b29cdb70741e5e08a4bfca106%2FScreenshot_2023-05-06_11-19-05.png?generation=1683336647986196&amp;alt=media\" alt=\"\"></p>\n<p>Thanks again !</p>",
      "rawMarkdown": "Thanks a lot for this.\nCreating a new notebook with this didn't unfortunately work as expected.\nBut building up on what you suggested, creating a new dataset worked for my purpose. And I can add it to any new notebook\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F4e8970ce471f24eb3794dd7680be9617%2FScreenshot_2023-05-06_11-16-59.png?generation=1683336488294047&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F787f21de7f6add76be925fc14a7b13e0%2FScreenshot_2023-05-06_11-17-43.png?generation=1683336503664644&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F311ec5bfd8b7e6b2de0e1dfc07afafa3%2FScreenshot_2023-05-06_11-18-30.png?generation=1683336527407030&alt=media)\nCan't see the model.pt\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F8de14ab15dfcebdeb900336358086d04%2FScreenshot_2023-05-06_11-24-04.png?generation=1683336624132027&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F7239c99b29cdb70741e5e08a4bfca106%2FScreenshot_2023-05-06_11-19-05.png?generation=1683336647986196&alt=media)\n\nThanks again !",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2244884,
      "author_name": "iraqbot",
      "author_url": "",
      "post_date": "05/04/2023 01:05:00",
      "content": "<p>i personnaly download the output and do a new dataset to put model in<br>\nbut you can also, after the notebook is run &amp; save : <br>\n-click on the three dot near the \"output\" in the output tab of you save &amp; run notebook<br>\n-select create notebook<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2F71a1db1fa2c3eb6d1911c206496c27b6%2FCapture.PNG?generation=1683161838275891&amp;alt=media\" alt=\"\"></p>\n<p>then you will have your model in a new notebook<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2Fb1c5086a2364110ad34f1933a8bf1cda%2FCapture2.PNG?generation=1683162276940111&amp;alt=media\" alt=\"\"></p>",
      "votes": null,
      "replies": [
        {
          "id": 2247410,
          "author_name": "abhivij",
          "author_url": "",
          "post_date": "05/06/2023 01:31:22",
          "content": "<p>Thanks a lot for this.<br>\nCreating a new notebook with this didn't unfortunately work as expected.<br>\nBut building up on what you suggested, creating a new dataset worked for my purpose. And I can add it to any new notebook</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F4e8970ce471f24eb3794dd7680be9617%2FScreenshot_2023-05-06_11-16-59.png?generation=1683336488294047&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F787f21de7f6add76be925fc14a7b13e0%2FScreenshot_2023-05-06_11-17-43.png?generation=1683336503664644&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F311ec5bfd8b7e6b2de0e1dfc07afafa3%2FScreenshot_2023-05-06_11-18-30.png?generation=1683336527407030&amp;alt=media\" alt=\"\"><br>\nCan't see the model.pt</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F8de14ab15dfcebdeb900336358086d04%2FScreenshot_2023-05-06_11-24-04.png?generation=1683336624132027&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F7239c99b29cdb70741e5e08a4bfca106%2FScreenshot_2023-05-06_11-19-05.png?generation=1683336647986196&amp;alt=media\" alt=\"\"></p>\n<p>Thanks again !</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2242442": "Hi all,\n\nI was able to run the Example submission notebook (https://www.kaggle.com/code/danielhavir/vesuvius-challenge-example-submission) via 'Save & Run all'\nThis created model.pt and submission.csv in the output folder of that particular version.   \nNow I'm trying to edit that notebook version to make ```TRAIN_RUN = False``` so as to save and submit it.\n(Submitting the version with TRAIN_RUN = True exceeded 12 hours and failed.)\nBut when I click on 'edit', the notebook version that shows up, no longer has any files in output folder.      \n\n-----------------------------------------------------------------------------------------------------------------------------------\n\nI also tried running the notebook until the cell with ```# Clear memory before loading test fragments```, so that model.pt is created and saved.\nAnd after this, I updated ```TRAIN_RUN = False``` and chose Save&Run all. \nBut it failed with the error ```No such file or directory: '/kaggle/working/model.pt'```   \n\n-----------------------------------------------------------------------------------------------------------------------------------\n\nHow do you retain model.pt previously generated in a new version ?",
    "2244884": "i personnaly download the output and do a new dataset to put model in\nbut you can also, after the notebook is run & save : \n-click on the three dot near the \"output\" in the output tab of you save & run notebook\n-select create notebook\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2F71a1db1fa2c3eb6d1911c206496c27b6%2FCapture.PNG?generation=1683161838275891&alt=media)\n\nthen you will have your model in a new notebook\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F6851656%2Fb1c5086a2364110ad34f1933a8bf1cda%2FCapture2.PNG?generation=1683162276940111&alt=media)",
    "2247410": "Thanks a lot for this.\nCreating a new notebook with this didn't unfortunately work as expected.\nBut building up on what you suggested, creating a new dataset worked for my purpose. And I can add it to any new notebook\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F4e8970ce471f24eb3794dd7680be9617%2FScreenshot_2023-05-06_11-16-59.png?generation=1683336488294047&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F787f21de7f6add76be925fc14a7b13e0%2FScreenshot_2023-05-06_11-17-43.png?generation=1683336503664644&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F311ec5bfd8b7e6b2de0e1dfc07afafa3%2FScreenshot_2023-05-06_11-18-30.png?generation=1683336527407030&alt=media)\nCan't see the model.pt\n\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F8de14ab15dfcebdeb900336358086d04%2FScreenshot_2023-05-06_11-24-04.png?generation=1683336624132027&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3600974%2F7239c99b29cdb70741e5e08a4bfca106%2FScreenshot_2023-05-06_11-19-05.png?generation=1683336647986196&alt=media)\n\nThanks again !"
  },
  "source": "meta"
}