{
  "id": 230658,
  "title": "Albumentations transforms with fast.ai DataBlock API",
  "url": "/competitions/hpa-single-cell-image-classification/discussion/230658",
  "author_name": "Satwik",
  "post_date": "2021-04-05T05:11:49.471000",
  "votes": 2,
  "comment_count": 0,
  "views": 0,
  "content": "<p>fast.ai introduced the new DataBlock API which is being used in quite some public notebooks , however none of them have extra augmentations used. Using augmentations with that was a bit unclear to me , and after some looking around in the documentation , I finally figured it out, and demonstrated how to do it in <a href=\"https://www.kaggle.com/p4rallax/using-albumentations-with-fast-ai-datablock-api\" target=\"_blank\">this notebook</a></p>\n<p>You just need to add the code for  AlbumentationsTransform class, and add whatever augmentations you want to in the get_train_aug() function. <br>\nHope this helps! :)</p>",
  "messages": [
    {
      "id": 1263113,
      "postDate": "2021-04-05T05:11:49.470Z",
      "content": "<p>fast.ai introduced the new DataBlock API which is being used in quite some public notebooks , however none of them have extra augmentations used. Using augmentations with that was a bit unclear to me , and after some looking around in the documentation , I finally figured it out, and demonstrated how to do it in <a href=\"https://www.kaggle.com/p4rallax/using-albumentations-with-fast-ai-datablock-api\" target=\"_blank\">this notebook</a></p>\n<p>You just need to add the code for  AlbumentationsTransform class, and add whatever augmentations you want to in the get_train_aug() function. <br>\nHope this helps! :)</p>",
      "rawMarkdown": "fast.ai introduced the new DataBlock API which is being used in quite some public notebooks , however none of them have extra augmentations used. Using augmentations with that was a bit unclear to me , and after some looking around in the documentation , I finally figured it out, and demonstrated how to do it in [this notebook](https://www.kaggle.com/p4rallax/using-albumentations-with-fast-ai-datablock-api)\n\nYou just need to add the code for  AlbumentationsTransform class, and add whatever augmentations you want to in the get_train_aug() function. \nHope this helps! :)",
      "votes": 2
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1263113": "fast.ai introduced the new DataBlock API which is being used in quite some public notebooks , however none of them have extra augmentations used. Using augmentations with that was a bit unclear to me , and after some looking around in the documentation , I finally figured it out, and demonstrated how to do it in [this notebook](https://www.kaggle.com/p4rallax/using-albumentations-with-fast-ai-datablock-api)\n\nYou just need to add the code for  AlbumentationsTransform class, and add whatever augmentations you want to in the get_train_aug() function. \nHope this helps! :)"
  }
}