{
  "id": 448955,
  "title": "Image size too large",
  "url": "/competitions/UBC-OCEAN/discussion/448955",
  "author_name": "JaewooChoi",
  "post_date": "2023-10-22T09:59:48.278000",
  "votes": 3,
  "comment_count": 5,
  "views": 0,
  "content": "<p>hi. I'm an engineer participating in this competition and I'm wondering how everyone is dealing with these huge images.<br>\n I'm currently trying to resize the images to be smaller somehow, but I'm not sure if using resized images will have a good effect on the model. </p>\n<p>How is everyone dealing with these large image sizes? In other posts, it seems like they're using a tailed variant of the image, but what does that mean?</p>\n<p>I don't understand how to input these tailed images into the model, is there anyone who can explain it to me? </p>\n<p>Thanks.</p>",
  "messages": [
    {
      "id": 2492164,
      "postDate": "2023-10-22T09:59:48.280Z",
      "content": "<p>hi. I'm an engineer participating in this competition and I'm wondering how everyone is dealing with these huge images.<br>\n I'm currently trying to resize the images to be smaller somehow, but I'm not sure if using resized images will have a good effect on the model. </p>\n<p>How is everyone dealing with these large image sizes? In other posts, it seems like they're using a tailed variant of the image, but what does that mean?</p>\n<p>I don't understand how to input these tailed images into the model, is there anyone who can explain it to me? </p>\n<p>Thanks.</p>",
      "rawMarkdown": "hi. I'm an engineer participating in this competition and I'm wondering how everyone is dealing with these huge images.\n I'm currently trying to resize the images to be smaller somehow, but I'm not sure if using resized images will have a good effect on the model. \n\nHow is everyone dealing with these large image sizes? In other posts, it seems like they're using a tailed variant of the image, but what does that mean?\n\nI don't understand how to input these tailed images into the model, is there anyone who can explain it to me? \n\nThanks.\n",
      "votes": 3
    },
    {
      "id": 2493093,
      "postDate": "2023-10-23T06:44:41.090Z",
      "content": "<p>Hello, I believe that simply performing a reshape operation on medical images is not advisable (even though I'm a beginner, haha). This is especially true for extremely large images like whole-slide images (WSI), as compressing the image to a relatively small size can likely result in the loss of critical features. <br>\nBased on my current research on WSIs, <strong>most work involves segmenting them into smaller patches</strong>, and these patches may be input to a final classifier, possibly with features extracted from them using other pre-trained models. <br>\nAdditionally, in this context, the foreground region of WSI doesn't constitute a significant portion of the overall image, making patches a potentially better choice.</p>",
      "rawMarkdown": "Hello, I believe that simply performing a reshape operation on medical images is not advisable (even though I'm a beginner, haha). This is especially true for extremely large images like whole-slide images (WSI), as compressing the image to a relatively small size can likely result in the loss of critical features. \nBased on my current research on WSIs, **most work involves segmenting them into smaller patches**, and these patches may be input to a final classifier, possibly with features extracted from them using other pre-trained models. \nAdditionally, in this context, the foreground region of WSI doesn't constitute a significant portion of the overall image, making patches a potentially better choice.",
      "votes": 1,
      "replies": [
        {
          "id": 2499747,
          "postDate": "2023-10-26T07:56:11.290Z",
          "content": "<p>I have made some simple filtering of patches which does not have any information (mostly black or edge cases) in <a href=\"https://www.kaggle.com/code/jirkaborovec/cancer-subtype-decompose-large-image-tiles\" target=\"_blank\">https://www.kaggle.com/code/jirkaborovec/cancer-subtype-decompose-large-image-tiles</a> so you can adjust it to your need or use already prepared dataset with tiles 512*512px with scale factor 0.25 -&gt; <a href=\"https://www.kaggle.com/datasets/jirkaborovec/tiles-of-cancer-2048px-scale-0-25\" target=\"_blank\">https://www.kaggle.com/datasets/jirkaborovec/tiles-of-cancer-2048px-scale-0-25</a></p>",
          "rawMarkdown": "I have made some simple filtering of patches which does not have any information (mostly black or edge cases) in https://www.kaggle.com/code/jirkaborovec/cancer-subtype-decompose-large-image-tiles so you can adjust it to your need or use already prepared dataset with tiles 512*512px with scale factor 0.25 -> https://www.kaggle.com/datasets/jirkaborovec/tiles-of-cancer-2048px-scale-0-25"
        }
      ]
    },
    {
      "id": 2492303,
      "postDate": "2023-10-22T11:24:19.053Z",
      "content": "<p>Hi, regarding reading such large-sized images, you can use the pyvips library. Here's a great notebook describing it: <a href=\"https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started\" target=\"_blank\">https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started</a>. For training, I'm currently trying to slice the WSI into multiple patches, but this also requires some methods to address subsequent issues.</p>",
      "rawMarkdown": "Hi, regarding reading such large-sized images, you can use the pyvips library. Here's a great notebook describing it: https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started. For training, I'm currently trying to slice the WSI into multiple patches, but this also requires some methods to address subsequent issues.",
      "votes": 2,
      "replies": [
        {
          "id": 2492328,
          "postDate": "2023-10-22T11:50:33.790Z",
          "content": "<p>So if we take CNN as an example of a model, does it take a single image as input, or a single patch as input?</p>",
          "rawMarkdown": "So if we take CNN as an example of a model, does it take a single image as input, or a single patch as input?",
          "votes": 1,
          "replies": [
            {
              "id": 2492456,
              "postDate": "2023-10-22T14:32:47.983Z",
              "content": "<p>patch is preferable under memory constraints here.</p>",
              "rawMarkdown": "patch is preferable under memory constraints here.",
              "votes": 1
            }
          ]
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2493093,
      "author_name": "li_ne",
      "author_url": "",
      "post_date": "2023-10-23T06:44:41.090000",
      "content": "<p>Hello, I believe that simply performing a reshape operation on medical images is not advisable (even though I'm a beginner, haha). This is especially true for extremely large images like whole-slide images (WSI), as compressing the image to a relatively small size can likely result in the loss of critical features. <br>\nBased on my current research on WSIs, <strong>most work involves segmenting them into smaller patches</strong>, and these patches may be input to a final classifier, possibly with features extracted from them using other pre-trained models. <br>\nAdditionally, in this context, the foreground region of WSI doesn't constitute a significant portion of the overall image, making patches a potentially better choice.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2499747,
          "author_name": "Jirka",
          "author_url": "",
          "post_date": "2023-10-26T07:56:11.290000",
          "content": "<p>I have made some simple filtering of patches which does not have any information (mostly black or edge cases) in <a href=\"https://www.kaggle.com/code/jirkaborovec/cancer-subtype-decompose-large-image-tiles\" target=\"_blank\">https://www.kaggle.com/code/jirkaborovec/cancer-subtype-decompose-large-image-tiles</a> so you can adjust it to your need or use already prepared dataset with tiles 512*512px with scale factor 0.25 -&gt; <a href=\"https://www.kaggle.com/datasets/jirkaborovec/tiles-of-cancer-2048px-scale-0-25\" target=\"_blank\">https://www.kaggle.com/datasets/jirkaborovec/tiles-of-cancer-2048px-scale-0-25</a></p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2492303,
      "author_name": "Huang Jin Feng",
      "author_url": "",
      "post_date": "2023-10-22T11:24:19.053000",
      "content": "<p>Hi, regarding reading such large-sized images, you can use the pyvips library. Here's a great notebook describing it: <a href=\"https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started\" target=\"_blank\">https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started</a>. For training, I'm currently trying to slice the WSI into multiple patches, but this also requires some methods to address subsequent issues.</p>",
      "votes": 2,
      "replies": [
        {
          "id": 2492328,
          "author_name": "JaewooChoi",
          "author_url": "",
          "post_date": "2023-10-22T11:50:33.790000",
          "content": "<p>So if we take CNN as an example of a model, does it take a single image as input, or a single patch as input?</p>",
          "votes": 1,
          "replies": [
            {
              "id": 2492456,
              "author_name": "Alexandra",
              "author_url": "",
              "post_date": "2023-10-22T14:32:47.983000",
              "content": "<p>patch is preferable under memory constraints here.</p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2492164": "hi. I'm an engineer participating in this competition and I'm wondering how everyone is dealing with these huge images.\n I'm currently trying to resize the images to be smaller somehow, but I'm not sure if using resized images will have a good effect on the model. \n\nHow is everyone dealing with these large image sizes? In other posts, it seems like they're using a tailed variant of the image, but what does that mean?\n\nI don't understand how to input these tailed images into the model, is there anyone who can explain it to me? \n\nThanks.\n",
    "2493093": "Hello, I believe that simply performing a reshape operation on medical images is not advisable (even though I'm a beginner, haha). This is especially true for extremely large images like whole-slide images (WSI), as compressing the image to a relatively small size can likely result in the loss of critical features. \nBased on my current research on WSIs, **most work involves segmenting them into smaller patches**, and these patches may be input to a final classifier, possibly with features extracted from them using other pre-trained models. \nAdditionally, in this context, the foreground region of WSI doesn't constitute a significant portion of the overall image, making patches a potentially better choice.",
    "2492303": "Hi, regarding reading such large-sized images, you can use the pyvips library. Here's a great notebook describing it: https://www.kaggle.com/code/gunesevitan/libvips-pyvips-installation-and-getting-started. For training, I'm currently trying to slice the WSI into multiple patches, but this also requires some methods to address subsequent issues."
  }
}