{
  "id": 383535,
  "title": "How does image size influence LB score?",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/383535",
  "author_name": "Lau2664",
  "post_date": "2023-02-04T07:02:35.225000",
  "votes": 10,
  "comment_count": 8,
  "views": 0,
  "content": "<p>I'm using image size of 1024x512 to train my model, and I intent to increase the image size for further training.<br>\nDoes anyone can share your experience of training model with larger input size? Will it make the model hard to converge? Does the LB/CV score increase or decrease? Please let me know, that will be really helpful:) Thx!</p>",
  "messages": [
    {
      "id": 2128901,
      "postDate": "2023-02-04T07:02:35.227Z",
      "content": "<p>I'm using image size of 1024x512 to train my model, and I intent to increase the image size for further training.<br>\nDoes anyone can share your experience of training model with larger input size? Will it make the model hard to converge? Does the LB/CV score increase or decrease? Please let me know, that will be really helpful:) Thx!</p>",
      "rawMarkdown": "I'm using image size of 1024x512 to train my model, and I intent to increase the image size for further training.\nDoes anyone can share your experience of training model with larger input size? Will it make the model hard to converge? Does the LB/CV score increase or decrease? Please let me know, that will be really helpful:) Thx!",
      "votes": 10
    },
    {
      "id": 2129025,
      "postDate": "2023-02-04T09:06:24.293Z",
      "content": "<p>The EfficientNet paper is a good reference to learn which parameters to increase to directly increase the performance of your model. Image size is one of these parameters. See: <a href=\"https://arxiv.org/pdf/1905.11946.pdf\" target=\"_blank\">https://arxiv.org/pdf/1905.11946.pdf</a></p>",
      "rawMarkdown": "The EfficientNet paper is a good reference to learn which parameters to increase to directly increase the performance of your model. Image size is one of these parameters. See: https://arxiv.org/pdf/1905.11946.pdf",
      "votes": 5
    },
    {
      "id": 2129196,
      "postDate": "2023-02-04T12:02:54.030Z",
      "rawMarkdown": "",
      "votes": 1,
      "replies": [
        {
          "id": 2129620,
          "postDate": "2023-02-04T18:53:50.203Z",
          "content": "<p>Is this ChatGPT? Please mention it or answer the question more directly with the context of this competition. I looked through some of your latest posts and they also seem to use some LLM. It can come off as spam (in my opinion) since in situations like this it is not really helpful to the original poster.</p>",
          "rawMarkdown": "Is this ChatGPT? Please mention it or answer the question more directly with the context of this competition. I looked through some of your latest posts and they also seem to use some LLM. It can come off as spam (in my opinion) since in situations like this it is not really helpful to the original poster.",
          "votes": 2
        }
      ]
    },
    {
      "id": 2134821,
      "postDate": "2023-02-08T09:22:10.640Z",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/jay2333\" target=\"_blank\">@jay2333</a>,</p>\n<p>In my experience, I've always gotten better results by increasing the size of my images. The raw scans are very large (a few thousand pixels). I started with 512x256 for my baseline then increased fairly quickly to 1024x512. The final dimensions I use are 1456x728. I kept the same aspect ratio of 1:2 while getting as close as possible to the 20GB limit of the datasets. I am convinced that with larger images it is possible to achieve higher scores. However, we then come up against a problem of storage and probably of time during the inference.</p>\n<p>Last but not least, I think it's best to use a dataset with smaller size images and quality preprocessing rather than large sloppy images. I advise you to focus above all on the way you do your preprocessing.</p>",
      "rawMarkdown": "Hi @jay2333,\n\nIn my experience, I've always gotten better results by increasing the size of my images. The raw scans are very large (a few thousand pixels). I started with 512x256 for my baseline then increased fairly quickly to 1024x512. The final dimensions I use are 1456x728. I kept the same aspect ratio of 1:2 while getting as close as possible to the 20GB limit of the datasets. I am convinced that with larger images it is possible to achieve higher scores. However, we then come up against a problem of storage and probably of time during the inference.\n\nLast but not least, I think it's best to use a dataset with smaller size images and quality preprocessing rather than large sloppy images. I advise you to focus above all on the way you do your preprocessing.",
      "votes": 2,
      "replies": [
        {
          "id": 2135171,
          "postDate": "2023-02-08T13:51:38.827Z",
          "content": "<p>you able to store larger images and use mode then 20GB, please see <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/383747#2130155\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/383747#2130155</a></p>",
          "rawMarkdown": "you able to store larger images and use mode then 20GB, please see https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/383747#2130155",
          "votes": 2
        }
      ]
    },
    {
      "id": 2129007,
      "postDate": "2023-02-04T08:48:38.683Z",
      "content": "<p>TLDR with increasing image size model performance also increases, and seems 2048 is a good choice.<br>\nHere is good thread to read and you can find answers about im size <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333</a></p>",
      "rawMarkdown": "TLDR with increasing image size model performance also increases, and seems 2048 is a good choice.\nHere is good thread to read and you can find answers about im size https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333",
      "votes": 2
    },
    {
      "id": 2140708,
      "postDate": "2023-02-12T04:32:04.483Z",
      "content": "<p>Thank you guys all for replying me! I plan to process the dataset first, and I will try increasing image size after that!</p>",
      "rawMarkdown": "Thank you guys all for replying me! I plan to process the dataset first, and I will try increasing image size after that!"
    },
    {
      "id": 2130468,
      "postDate": "2023-02-05T13:24:29.913Z",
      "rawMarkdown": "",
      "votes": -5,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2129025,
      "author_name": "Ali Abdin",
      "author_url": "",
      "post_date": "2023-02-04T09:06:24.293000",
      "content": "<p>The EfficientNet paper is a good reference to learn which parameters to increase to directly increase the performance of your model. Image size is one of these parameters. See: <a href=\"https://arxiv.org/pdf/1905.11946.pdf\" target=\"_blank\">https://arxiv.org/pdf/1905.11946.pdf</a></p>",
      "votes": 5,
      "replies": []
    },
    {
      "id": 2129196,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-02-04T12:02:54.030000",
      "content": "",
      "votes": 1,
      "replies": [
        {
          "id": 2129620,
          "author_name": "outwrest",
          "author_url": "",
          "post_date": "2023-02-04T18:53:50.203000",
          "content": "<p>Is this ChatGPT? Please mention it or answer the question more directly with the context of this competition. I looked through some of your latest posts and they also seem to use some LLM. It can come off as spam (in my opinion) since in situations like this it is not really helpful to the original poster.</p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 2134821,
      "author_name": "Paul Bacher",
      "author_url": "",
      "post_date": "2023-02-08T09:22:10.640000",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/jay2333\" target=\"_blank\">@jay2333</a>,</p>\n<p>In my experience, I've always gotten better results by increasing the size of my images. The raw scans are very large (a few thousand pixels). I started with 512x256 for my baseline then increased fairly quickly to 1024x512. The final dimensions I use are 1456x728. I kept the same aspect ratio of 1:2 while getting as close as possible to the 20GB limit of the datasets. I am convinced that with larger images it is possible to achieve higher scores. However, we then come up against a problem of storage and probably of time during the inference.</p>\n<p>Last but not least, I think it's best to use a dataset with smaller size images and quality preprocessing rather than large sloppy images. I advise you to focus above all on the way you do your preprocessing.</p>",
      "votes": 2,
      "replies": [
        {
          "id": 2135171,
          "author_name": "A.P.",
          "author_url": "",
          "post_date": "2023-02-08T13:51:38.827000",
          "content": "<p>you able to store larger images and use mode then 20GB, please see <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/383747#2130155\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/383747#2130155</a></p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 2129007,
      "author_name": "A.P.",
      "author_url": "",
      "post_date": "2023-02-04T08:48:38.683000",
      "content": "<p>TLDR with increasing image size model performance also increases, and seems 2048 is a good choice.<br>\nHere is good thread to read and you can find answers about im size <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333\" target=\"_blank\">https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333</a></p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 2140708,
      "author_name": "Lau2664",
      "author_url": "",
      "post_date": "2023-02-12T04:32:04.483000",
      "content": "<p>Thank you guys all for replying me! I plan to process the dataset first, and I will try increasing image size after that!</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2130468,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-02-05T13:24:29.913000",
      "content": "",
      "votes": -5,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2128901": "I'm using image size of 1024x512 to train my model, and I intent to increase the image size for further training.\nDoes anyone can share your experience of training model with larger input size? Will it make the model hard to converge? Does the LB/CV score increase or decrease? Please let me know, that will be really helpful:) Thx!",
    "2129025": "The EfficientNet paper is a good reference to learn which parameters to increase to directly increase the performance of your model. Image size is one of these parameters. See: https://arxiv.org/pdf/1905.11946.pdf",
    "2129196": "",
    "2134821": "Hi @jay2333,\n\nIn my experience, I've always gotten better results by increasing the size of my images. The raw scans are very large (a few thousand pixels). I started with 512x256 for my baseline then increased fairly quickly to 1024x512. The final dimensions I use are 1456x728. I kept the same aspect ratio of 1:2 while getting as close as possible to the 20GB limit of the datasets. I am convinced that with larger images it is possible to achieve higher scores. However, we then come up against a problem of storage and probably of time during the inference.\n\nLast but not least, I think it's best to use a dataset with smaller size images and quality preprocessing rather than large sloppy images. I advise you to focus above all on the way you do your preprocessing.",
    "2129007": "TLDR with increasing image size model performance also increases, and seems 2048 is a good choice.\nHere is good thread to read and you can find answers about im size https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/370333",
    "2140708": "Thank you guys all for replying me! I plan to process the dataset first, and I will try increasing image size after that!",
    "2130468": ""
  }
}