{
  "id": 108733,
  "title": "Augmenting multi-spectral images with Albumentations",
  "url": "/competitions/recursion-cellular-image-classification/discussion/108733",
  "author_name": "",
  "post_date": "2019-09-13T14:36:44.502850300Z",
  "votes": 19,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi everyone. To your information - we've added support for augmentation of multi-spectral images to <a href=\"https://github.com/albu/albumentations\">albumentations</a>. This will be included in a next major release, but you still can use it right away:</p>\n\n<p><code>pip install -U git+https://github.com/albu/albumentations.git</code></p>\n\n<p>Not all augmentations are supported at the moment, but all spatial-transform augmentations are included. Some augmentations, like RGBShift are not compatible with 6-channel images for obvious reasons.  </p>\n\n<p>See you on a leaderboard :)</p>",
  "messages": [
    {
      "id": "625868",
      "postDate": "09/13/2019 14:36:44",
      "content": "<p>Hi everyone. To your information - we've added support for augmentation of multi-spectral images to <a href=\"https://github.com/albu/albumentations\">albumentations</a>. This will be included in a next major release, but you still can use it right away:</p>\n\n<p><code>pip install -U git+https://github.com/albu/albumentations.git</code></p>\n\n<p>Not all augmentations are supported at the moment, but all spatial-transform augmentations are included. Some augmentations, like RGBShift are not compatible with 6-channel images for obvious reasons.  </p>\n\n<p>See you on a leaderboard :)</p>",
      "rawMarkdown": "Hi everyone. To your information - we've added support for augmentation of multi-spectral images to [albumentations](https://github.com/albu/albumentations). This will be included in a next major release, but you still can use it right away:\n\n`pip install -U git+https://github.com/albu/albumentations.git`\n\nNot all augmentations are supported at the moment, but all spatial-transform augmentations are included. Some augmentations, like RGBShift are not compatible with 6-channel images for obvious reasons.  \n\nSee you on a leaderboard :)",
      "votes": null
    },
    {
      "id": "626307",
      "postDate": "09/14/2019 06:19:57",
      "content": "<p>What are the newly supported features? because I have been using albumentations on 6-channels with no issues for few weeks now.</p>",
      "rawMarkdown": "What are the newly supported features? because I have been using albumentations on 6-channels with no issues for few weeks now.",
      "votes": null
    },
    {
      "id": "626415",
      "postDate": "09/14/2019 09:32:38",
      "content": "<p>Operation like resize, warpAffine in OpenCV does not support images with more than 4 channels. So we added workaround for Resize, ShiftScaleRotate and other spatial transform augmentations to work on 6 channel images. </p>\n\n<p>Can you please share what augmentation you’ve been using before and what is the opencv version in your environment?</p>",
      "rawMarkdown": "Operation like resize, warpAffine in OpenCV does not support images with more than 4 channels. So we added workaround for Resize, ShiftScaleRotate and other spatial transform augmentations to work on 6 channel images. \n\nCan you please share what augmentation you’ve been using before and what is the opencv version in your environment?",
      "votes": null
    },
    {
      "id": "626444",
      "postDate": "09/14/2019 10:53:10",
      "content": "<p>It is v3.4.2 for opencv and v0.3.2 for albumentations. ShiftScaleRotate is one of those that I use. How does it fail if it fails? </p>",
      "rawMarkdown": "It is v3.4.2 for opencv and v0.3.2 for albumentations. ShiftScaleRotate is one of those that I use. How does it fail if it fails?",
      "votes": null
    },
    {
      "id": "626678",
      "postDate": "09/14/2019 17:18:03",
      "content": "<p>With OpenCV 4.1 it was failing inside OpenCV::Hal module with clear indication that number of channels must be &lt;=4. \nThanks for the info, regarding OpenCV 3. It may by the case that different builds of OpenCV are having different limitations. </p>",
      "rawMarkdown": "With OpenCV 4.1 it was failing inside OpenCV::Hal module with clear indication that number of channels must be &lt;=4. \nThanks for the info, regarding OpenCV 3. It may by the case that different builds of OpenCV are having different limitations.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 626307,
      "author_name": "zaharch",
      "author_url": "",
      "post_date": "09/14/2019 06:19:57",
      "content": "<p>What are the newly supported features? because I have been using albumentations on 6-channels with no issues for few weeks now.</p>",
      "votes": null,
      "replies": [
        {
          "id": 626415,
          "author_name": "bloodaxe",
          "author_url": "",
          "post_date": "09/14/2019 09:32:38",
          "content": "<p>Operation like resize, warpAffine in OpenCV does not support images with more than 4 channels. So we added workaround for Resize, ShiftScaleRotate and other spatial transform augmentations to work on 6 channel images. </p>\n\n<p>Can you please share what augmentation you’ve been using before and what is the opencv version in your environment?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 626444,
          "author_name": "zaharch",
          "author_url": "",
          "post_date": "09/14/2019 10:53:10",
          "content": "<p>It is v3.4.2 for opencv and v0.3.2 for albumentations. ShiftScaleRotate is one of those that I use. How does it fail if it fails? </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 626678,
          "author_name": "bloodaxe",
          "author_url": "",
          "post_date": "09/14/2019 17:18:03",
          "content": "<p>With OpenCV 4.1 it was failing inside OpenCV::Hal module with clear indication that number of channels must be &lt;=4. \nThanks for the info, regarding OpenCV 3. It may by the case that different builds of OpenCV are having different limitations. </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "625868": "Hi everyone. To your information - we've added support for augmentation of multi-spectral images to [albumentations](https://github.com/albu/albumentations). This will be included in a next major release, but you still can use it right away:\n\n`pip install -U git+https://github.com/albu/albumentations.git`\n\nNot all augmentations are supported at the moment, but all spatial-transform augmentations are included. Some augmentations, like RGBShift are not compatible with 6-channel images for obvious reasons.  \n\nSee you on a leaderboard :)",
    "626307": "What are the newly supported features? because I have been using albumentations on 6-channels with no issues for few weeks now.",
    "626415": "Operation like resize, warpAffine in OpenCV does not support images with more than 4 channels. So we added workaround for Resize, ShiftScaleRotate and other spatial transform augmentations to work on 6 channel images. \n\nCan you please share what augmentation you’ve been using before and what is the opencv version in your environment?",
    "626444": "It is v3.4.2 for opencv and v0.3.2 for albumentations. ShiftScaleRotate is one of those that I use. How does it fail if it fails?",
    "626678": "With OpenCV 4.1 it was failing inside OpenCV::Hal module with clear indication that number of channels must be &lt;=4. \nThanks for the info, regarding OpenCV 3. It may by the case that different builds of OpenCV are having different limitations."
  },
  "source": "meta"
}