{
  "id": 211919,
  "title": "lots of black points after image augmentation",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/211919",
  "author_name": "",
  "post_date": "2021-01-16T19:57:11.957398400Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>I was using the below method to augment the image, but there are many black blocks in images.</p>\n<p>---library albumentations---</p>\n<p>return Compose([<br>\n            RandomResizedCrop(512, 512),<br>\n            Transpose(p=0.5),<br>\n            HorizontalFlip(p=0.5),<br>\n            VerticalFlip(p=0.5),<br>\n            ShiftScaleRotate(p=0.5),<br>\n            HueSaturationValue(hue_shift_limit=0.2, sat_shift_limit=0.2, val_shift_limit=0.2, p=0.5),<br>\n            RandomBrightnessContrast(brightness_limit=(-0.1,0.1), contrast_limit=(-0.1, 0.1), p=0.5),<br>\n            CoarseDropout(p=0.5),<br>\n            ToTensorV2(),<br>\n        ])</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2F2e8f9bbbeb4a5ecbfbf152220c3eef89%2F3544220328_2.jpg?generation=1610826770227130&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff66c0580144f7a607c706929bdec6781%2F3545118265_1.jpg?generation=1610826779781918&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff7f197095714917c832886332f187bc6%2F3546224869_1.jpg?generation=1610826836458888&amp;alt=media\" alt=\"\"></p>\n<p>Need help about what leads this and how to deal with this. Is 'albumentations' not stable?</p>",
  "messages": [
    {
      "id": "1155955",
      "postDate": "01/16/2021 19:57:11",
      "content": "<p>I was using the below method to augment the image, but there are many black blocks in images.</p>\n<p>---library albumentations---</p>\n<p>return Compose([<br>\n            RandomResizedCrop(512, 512),<br>\n            Transpose(p=0.5),<br>\n            HorizontalFlip(p=0.5),<br>\n            VerticalFlip(p=0.5),<br>\n            ShiftScaleRotate(p=0.5),<br>\n            HueSaturationValue(hue_shift_limit=0.2, sat_shift_limit=0.2, val_shift_limit=0.2, p=0.5),<br>\n            RandomBrightnessContrast(brightness_limit=(-0.1,0.1), contrast_limit=(-0.1, 0.1), p=0.5),<br>\n            CoarseDropout(p=0.5),<br>\n            ToTensorV2(),<br>\n        ])</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2F2e8f9bbbeb4a5ecbfbf152220c3eef89%2F3544220328_2.jpg?generation=1610826770227130&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff66c0580144f7a607c706929bdec6781%2F3545118265_1.jpg?generation=1610826779781918&amp;alt=media\" alt=\"\"><br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff7f197095714917c832886332f187bc6%2F3546224869_1.jpg?generation=1610826836458888&amp;alt=media\" alt=\"\"></p>\n<p>Need help about what leads this and how to deal with this. Is 'albumentations' not stable?</p>",
      "rawMarkdown": "I was using the below method to augment the image, but there are many black blocks in images.\n\n---library albumentations---\n\nreturn Compose([\n            RandomResizedCrop(512, 512),\n            Transpose(p=0.5),\n            HorizontalFlip(p=0.5),\n            VerticalFlip(p=0.5),\n            ShiftScaleRotate(p=0.5),\n            HueSaturationValue(hue_shift_limit=0.2, sat_shift_limit=0.2, val_shift_limit=0.2, p=0.5),\n            RandomBrightnessContrast(brightness_limit=(-0.1,0.1), contrast_limit=(-0.1, 0.1), p=0.5),\n            CoarseDropout(p=0.5),\n            ToTensorV2(),\n        ])\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2F2e8f9bbbeb4a5ecbfbf152220c3eef89%2F3544220328_2.jpg?generation=1610826770227130&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff66c0580144f7a607c706929bdec6781%2F3545118265_1.jpg?generation=1610826779781918&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff7f197095714917c832886332f187bc6%2F3546224869_1.jpg?generation=1610826836458888&alt=media)\n\nNeed help about what leads this and how to deal with this. Is 'albumentations' not stable?",
      "votes": null
    },
    {
      "id": "1155978",
      "postDate": "01/16/2021 20:16:33",
      "content": "<p>that's because of CoarseDropout augmentation that you are using,read this paper : <a href=\"https://arxiv.org/abs/1708.04552\" target=\"_blank\">https://arxiv.org/abs/1708.04552</a><br>\nthose black points are part of your augmentation</p>",
      "rawMarkdown": "that's because of CoarseDropout augmentation that you are using,read this paper : https://arxiv.org/abs/1708.04552\nthose black points are part of your augmentation",
      "votes": null
    },
    {
      "id": "1156254",
      "postDate": "01/17/2021 03:39:38",
      "content": "<p>Thanks, good to know.</p>",
      "rawMarkdown": "Thanks, good to know.",
      "votes": null
    },
    {
      "id": "1156602",
      "postDate": "01/17/2021 09:28:02",
      "content": "<p>Read the details on coarse dropout - you can change the number and size of the drop out areas - you need to make pretty large changes or have a very good cv method to find the best.  Probably NOT a area to spend your compute on unless you have lots of compute resources - so just use the defaults.</p>",
      "rawMarkdown": "Read the details on coarse dropout - you can change the number and size of the drop out areas - you need to make pretty large changes or have a very good cv method to find the best.  Probably NOT a area to spend your compute on unless you have lots of compute resources - so just use the defaults.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1155978,
      "author_name": "mobassir",
      "author_url": "",
      "post_date": "01/16/2021 20:16:33",
      "content": "<p>that's because of CoarseDropout augmentation that you are using,read this paper : <a href=\"https://arxiv.org/abs/1708.04552\" target=\"_blank\">https://arxiv.org/abs/1708.04552</a><br>\nthose black points are part of your augmentation</p>",
      "votes": null,
      "replies": [
        {
          "id": 1156254,
          "author_name": "woshifym",
          "author_url": "",
          "post_date": "01/17/2021 03:39:38",
          "content": "<p>Thanks, good to know.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1156602,
      "author_name": "pcjimmmy",
      "author_url": "",
      "post_date": "01/17/2021 09:28:02",
      "content": "<p>Read the details on coarse dropout - you can change the number and size of the drop out areas - you need to make pretty large changes or have a very good cv method to find the best.  Probably NOT a area to spend your compute on unless you have lots of compute resources - so just use the defaults.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1155955": "I was using the below method to augment the image, but there are many black blocks in images.\n\n---library albumentations---\n\nreturn Compose([\n            RandomResizedCrop(512, 512),\n            Transpose(p=0.5),\n            HorizontalFlip(p=0.5),\n            VerticalFlip(p=0.5),\n            ShiftScaleRotate(p=0.5),\n            HueSaturationValue(hue_shift_limit=0.2, sat_shift_limit=0.2, val_shift_limit=0.2, p=0.5),\n            RandomBrightnessContrast(brightness_limit=(-0.1,0.1), contrast_limit=(-0.1, 0.1), p=0.5),\n            CoarseDropout(p=0.5),\n            ToTensorV2(),\n        ])\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2F2e8f9bbbeb4a5ecbfbf152220c3eef89%2F3544220328_2.jpg?generation=1610826770227130&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff66c0580144f7a607c706929bdec6781%2F3545118265_1.jpg?generation=1610826779781918&alt=media)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1984447%2Ff7f197095714917c832886332f187bc6%2F3546224869_1.jpg?generation=1610826836458888&alt=media)\n\nNeed help about what leads this and how to deal with this. Is 'albumentations' not stable?",
    "1155978": "that's because of CoarseDropout augmentation that you are using,read this paper : https://arxiv.org/abs/1708.04552\nthose black points are part of your augmentation",
    "1156254": "Thanks, good to know.",
    "1156602": "Read the details on coarse dropout - you can change the number and size of the drop out areas - you need to make pretty large changes or have a very good cv method to find the best.  Probably NOT a area to spend your compute on unless you have lots of compute resources - so just use the defaults."
  },
  "source": "meta"
}