{
  "id": 267193,
  "title": "What is the difference between the kernels of kaggle and googlecolab?",
  "url": "/competitions/g2net-gravitational-wave-detection/discussion/267193",
  "author_name": "",
  "post_date": "2021-08-22T05:34:45.370962400Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I fell in love with machine learning, the sun.<br>\nI have one question.<br>\nWhy is it that I can run it in kaggle's kernel, but not in googlecolab?<br>\nI don't know how to make it work.<br>\nPlease help me.</p>\n<p><a href=\"https://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710\" target=\"_blank\">https://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710</a><br>\nBy the way, I am using timm's efficientnet.<br>\n![file:///Users/SN/Pictures/Screenshot_2021-08-22%2013.36.07_QLL1wr.png](url to embed)</p>\n<blockquote>\n  <blockquote>\n    <blockquote>\n      <blockquote>\n        <p>CQT kernels created, time used = 0.0308 seconds<br>\n        /usr/local/lib/python3.7/dist-packages/nnAudio/utils.py:326: SyntaxWarning: If fmax is given, n_bins will be ignored</p>\n        <h2>  warnings.warn('If fmax is given, n_bins will be ignored',SyntaxWarning)</h2>\n        <p>ValueError                                Traceback (most recent call last)<br>\n         in ()<br>\n              4 <br>\n              5     plt.figure(figsize=(16,12))<br>\n        ----&gt; 6     image, label = train_dataset[i]<br>\n              7 <br>\n              8     plt.imshow(image[0])</p>\n      </blockquote>\n    </blockquote>\n  </blockquote>\n</blockquote>\n<p>4 frames<br>\n/usr/local/lib/python3.7/dist-packages/albumentations/pytorch/transforms.py in apply(self, img, **params)<br>\n     90 <br>\n     91     def apply(self, img, **params):  # skipcq: PYL-W0613<br>\n---&gt; 92         return torch.from_numpy(img.transpose(2, 0, 1))<br>\n     93 <br>\n     94     def apply_to_mask(self, mask, **params):  # skipcq: PYL-W0613</p>\n<p>ValueError: axes don't match array</p>",
  "messages": [
    {
      "id": "1485454",
      "postDate": "08/22/2021 05:34:45",
      "content": "<p>I fell in love with machine learning, the sun.<br>\nI have one question.<br>\nWhy is it that I can run it in kaggle's kernel, but not in googlecolab?<br>\nI don't know how to make it work.<br>\nPlease help me.</p>\n<p><a href=\"https://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710\" target=\"_blank\">https://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710</a><br>\nBy the way, I am using timm's efficientnet.<br>\n![file:///Users/SN/Pictures/Screenshot_2021-08-22%2013.36.07_QLL1wr.png](url to embed)</p>\n<blockquote>\n  <blockquote>\n    <blockquote>\n      <blockquote>\n        <p>CQT kernels created, time used = 0.0308 seconds<br>\n        /usr/local/lib/python3.7/dist-packages/nnAudio/utils.py:326: SyntaxWarning: If fmax is given, n_bins will be ignored</p>\n        <h2>  warnings.warn('If fmax is given, n_bins will be ignored',SyntaxWarning)</h2>\n        <p>ValueError                                Traceback (most recent call last)<br>\n         in ()<br>\n              4 <br>\n              5     plt.figure(figsize=(16,12))<br>\n        ----&gt; 6     image, label = train_dataset[i]<br>\n              7 <br>\n              8     plt.imshow(image[0])</p>\n      </blockquote>\n    </blockquote>\n  </blockquote>\n</blockquote>\n<p>4 frames<br>\n/usr/local/lib/python3.7/dist-packages/albumentations/pytorch/transforms.py in apply(self, img, **params)<br>\n     90 <br>\n     91     def apply(self, img, **params):  # skipcq: PYL-W0613<br>\n---&gt; 92         return torch.from_numpy(img.transpose(2, 0, 1))<br>\n     93 <br>\n     94     def apply_to_mask(self, mask, **params):  # skipcq: PYL-W0613</p>\n<p>ValueError: axes don't match array</p>",
      "rawMarkdown": "I fell in love with machine learning, the sun.\nI have one question.\nWhy is it that I can run it in kaggle's kernel, but not in googlecolab?\nI don't know how to make it work.\nPlease help me.\n\nhttps://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710\nBy the way, I am using timm's efficientnet.\n![file:///Users/SN/Pictures/Screenshot_2021-08-22%2013.36.07_QLL1wr.png](url to embed)\n\n> \n> > > > CQT kernels created, time used = 0.0308 seconds\n/usr/local/lib/python3.7/dist-packages/nnAudio/utils.py:326: SyntaxWarning: If fmax is given, n_bins will be ignored\n  warnings.warn('If fmax is given, n_bins will be ignored',SyntaxWarning)\n---------------------------------------------------------------------------\nValueError                                Traceback (most recent call last)\n<ipython-input-32-c704ff6fb8b0> in <module>()\n      4 \n      5     plt.figure(figsize=(16,12))\n----> 6     image, label = train_dataset[i]\n      7 \n      8     plt.imshow(image[0])\n\n4 frames\n/usr/local/lib/python3.7/dist-packages/albumentations/pytorch/transforms.py in apply(self, img, **params)\n     90 \n     91     def apply(self, img, **params):  # skipcq: PYL-W0613\n---> 92         return torch.from_numpy(img.transpose(2, 0, 1))\n     93 \n     94     def apply_to_mask(self, mask, **params):  # skipcq: PYL-W0613\n\nValueError: axes don't match array",
      "votes": null
    },
    {
      "id": "1505397",
      "postDate": "09/07/2021 08:06:52",
      "content": "<p>The simplest way I can think of is</p>\n<p><code>!pip install albumentations==0.5.2</code></p>",
      "rawMarkdown": "The simplest way I can think of is\n\n`!pip install albumentations==0.5.2`",
      "votes": null
    },
    {
      "id": "1559964",
      "postDate": "10/27/2021 08:39:05",
      "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": 1505397,
      "author_name": "yoheiogawa19",
      "author_url": "",
      "post_date": "09/07/2021 08:06:52",
      "content": "<p>The simplest way I can think of is</p>\n<p><code>!pip install albumentations==0.5.2</code></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1559964,
      "author_name": "zerafachris",
      "author_url": "",
      "post_date": "10/27/2021 08:39:05",
      "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": {
    "1485454": "I fell in love with machine learning, the sun.\nI have one question.\nWhy is it that I can run it in kaggle's kernel, but not in googlecolab?\nI don't know how to make it work.\nPlease help me.\n\nhttps://www.kaggle.com/yasufuminakama/g2net-efficientnet-b7-baseline-training?scriptVersionId=69947710\nBy the way, I am using timm's efficientnet.\n![file:///Users/SN/Pictures/Screenshot_2021-08-22%2013.36.07_QLL1wr.png](url to embed)\n\n> \n> > > > CQT kernels created, time used = 0.0308 seconds\n/usr/local/lib/python3.7/dist-packages/nnAudio/utils.py:326: SyntaxWarning: If fmax is given, n_bins will be ignored\n  warnings.warn('If fmax is given, n_bins will be ignored',SyntaxWarning)\n---------------------------------------------------------------------------\nValueError                                Traceback (most recent call last)\n<ipython-input-32-c704ff6fb8b0> in <module>()\n      4 \n      5     plt.figure(figsize=(16,12))\n----> 6     image, label = train_dataset[i]\n      7 \n      8     plt.imshow(image[0])\n\n4 frames\n/usr/local/lib/python3.7/dist-packages/albumentations/pytorch/transforms.py in apply(self, img, **params)\n     90 \n     91     def apply(self, img, **params):  # skipcq: PYL-W0613\n---> 92         return torch.from_numpy(img.transpose(2, 0, 1))\n     93 \n     94     def apply_to_mask(self, mask, **params):  # skipcq: PYL-W0613\n\nValueError: axes don't match array",
    "1505397": "The simplest way I can think of is\n\n`!pip install albumentations==0.5.2`",
    "1559964": "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"
}