{
  "id": 269982,
  "title": "How to resize the 'image'?",
  "url": "/competitions/g2net-gravitational-wave-detection/discussion/269982",
  "author_name": "",
  "post_date": "2021-09-03T02:08:57.440831200Z",
  "votes": 1,
  "comment_count": 6,
  "views": 0,
  "content": "<p>Hi ,I only has a question, if I use cqt in the model defined, how do I resize in the dataset class?Thanks!</p>",
  "messages": [
    {
      "id": "1501153",
      "postDate": "09/03/2021 02:08:57",
      "content": "<p>Hi ,I only has a question, if I use cqt in the model defined, how do I resize in the dataset class?Thanks!</p>",
      "rawMarkdown": "Hi ,I only has a question, if I use cqt in the model defined, how do I resize in the dataset class?Thanks!",
      "votes": null
    },
    {
      "id": "1501164",
      "postDate": "09/03/2021 02:20:07",
      "content": "<p>The simplest way I can think of is </p>\n<pre><code>F.interpolate(tensor, size=(height, width))\n</code></pre>",
      "rawMarkdown": "The simplest way I can think of is \n```\nF.interpolate(tensor, size=(height, width))\n```",
      "votes": null
    },
    {
      "id": "1501175",
      "postDate": "09/03/2021 02:27:09",
      "content": "<p>Thanks for your reply! you mean is when I process waves using cqt in the model defined, then I use this method to resize image?Thanks!Btw, how do I  normalize the cqt result to the 0-1  to feed it in model?Thanks!</p>",
      "rawMarkdown": "Thanks for your reply! you mean is when I process waves using cqt in the model defined, then I use this method to resize image?Thanks!Btw, how do I  normalize the cqt result to the 0-1  to feed it in model?Thanks!",
      "votes": null
    },
    {
      "id": "1501177",
      "postDate": "09/03/2021 02:29:00",
      "content": "<p>And ,I find a funny thing, when I decrease the batch size, the result is better!😄</p>",
      "rawMarkdown": "And ,I find a funny thing, when I decrease the batch size, the result is better!😄",
      "votes": null
    },
    {
      "id": "1501186",
      "postDate": "09/03/2021 02:45:25",
      "content": "<p>Yep, I resize the image in my model after CQT. <br>\nAlso, normalization of CQT images was discussed here: <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021\" target=\"_blank\">https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021</a></p>",
      "rawMarkdown": "Yep, I resize the image in my model after CQT. \nAlso, normalization of CQT images was discussed here: https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021",
      "votes": null
    },
    {
      "id": "1501196",
      "postDate": "09/03/2021 02:58:22",
      "content": "<p>Thanks for your reply! It help me a lot!</p>",
      "rawMarkdown": "Thanks for your reply! It help me a lot!",
      "votes": null
    },
    {
      "id": "1559953",
      "postDate": "10/27/2021 08:37:01",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "rawMarkdown": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1501164,
      "author_name": "analokamus",
      "author_url": "",
      "post_date": "09/03/2021 02:20:07",
      "content": "<p>The simplest way I can think of is </p>\n<pre><code>F.interpolate(tensor, size=(height, width))\n</code></pre>",
      "votes": null,
      "replies": [
        {
          "id": 1501175,
          "author_name": "bcwang",
          "author_url": "",
          "post_date": "09/03/2021 02:27:09",
          "content": "<p>Thanks for your reply! you mean is when I process waves using cqt in the model defined, then I use this method to resize image?Thanks!Btw, how do I  normalize the cqt result to the 0-1  to feed it in model?Thanks!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501177,
          "author_name": "bcwang",
          "author_url": "",
          "post_date": "09/03/2021 02:29:00",
          "content": "<p>And ,I find a funny thing, when I decrease the batch size, the result is better!😄</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501186,
          "author_name": "analokamus",
          "author_url": "",
          "post_date": "09/03/2021 02:45:25",
          "content": "<p>Yep, I resize the image in my model after CQT. <br>\nAlso, normalization of CQT images was discussed here: <a href=\"https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021\" target=\"_blank\">https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1501196,
          "author_name": "bcwang",
          "author_url": "",
          "post_date": "09/03/2021 02:58:22",
          "content": "<p>Thanks for your reply! It help me a lot!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1559953,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 08:37:01",
      "content": "<p>Hey All,</p>\n<p>Thank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey <a href=\"https://forms.gle/QP9L16niPexozyhu5\" target=\"_blank\">https://forms.gle/QP9L16niPexozyhu5</a>.</p>\n<p>Thank you all,</p>\n<p>Regards,<br>\nChris</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1501153": "Hi ,I only has a question, if I use cqt in the model defined, how do I resize in the dataset class?Thanks!",
    "1501164": "The simplest way I can think of is \n```\nF.interpolate(tensor, size=(height, width))\n```",
    "1501175": "Thanks for your reply! you mean is when I process waves using cqt in the model defined, then I use this method to resize image?Thanks!Btw, how do I  normalize the cqt result to the 0-1  to feed it in model?Thanks!",
    "1501177": "And ,I find a funny thing, when I decrease the batch size, the result is better!😄",
    "1501186": "Yep, I resize the image in my model after CQT. \nAlso, normalization of CQT images was discussed here: https://www.kaggle.com/c/g2net-gravitational-wave-detection/discussion/264380#1499021",
    "1501196": "Thanks for your reply! It help me a lot!",
    "1559953": "Hey All,\n\nThank you all for taking part in our competition. The participation has been overwhelmingly positive. We are currently conducting a survey to gauge the demographic and outreach achieved. Kindly spare 2min and fill in this survey https://forms.gle/QP9L16niPexozyhu5.\n\nThank you all,\n\nRegards,\nChris"
  },
  "source": "meta"
}