{
  "id": 107954,
  "title": "Congratulations to all ! 54th Solution.",
  "url": "/competitions/aptos2019-blindness-detection/discussion/107954",
  "author_name": "Chanhu",
  "post_date": "2019-09-08T06:04:22.313000",
  "votes": 12,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Congratulations to all !\nThanks to my great teammates. (friends in real world)</p>\n\n<ol>\n<li>Network : EfficientNetB4&amp; EfficientNetB5 (Both Classification and regression.)</li>\n<li>Image size:  B4: (256x256), B5: (328x328)</li>\n<li>Image Preprocessing: Cropping images Only.\n(Code from <a href=\"https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images\">https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images</a>) </li>\n<li>Data Augment:\n<code>train_transform = transforms.Compose([\n  transforms.ColorJitter(brightness=0.45, contrast=0.45),\n  transforms.RandomAffine(degrees=360, scale=(1.0, 1.3)),\n  transforms.RandomHorizontalFlip(),\n  transforms.RandomVerticalFlip(),\n  transforms.ToTensor(),\n  transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])</code></li>\n<li>Optimizer : Adam</li>\n<li>Loss :  Classification: Cross entropy Loss\n               Regression:MSE</li>\n<li>Learning Rate: Start from 0.001</li>\n<li>Learning Rate Scheduler：StepLR(B4-&gt; StepSize:5, B5-&gt; StepSize:10), gamma=0.1</li>\n<li><p>TTA: TTA 10 times by following code\n<code>test_transform = transforms.Compose([\ntransforms.RandomAffine(degrees=360),\ntransforms.RandomHorizontalFlip(),\ntransforms.RandomVerticalFlip(),\ntransforms.ToTensor(),\ntransforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])</code></p></li>\n<li><p>Score:\n        -&gt; Public LB: <br>\n         B4 Classification: 0.821 <br>\n         B5 Classification: 0.825\n         B4 Regression:0.823\n         B5 Regression:0.825\n       -&gt; Private LB\n         B4 Classification: 0.919 <br>\n         B5 Classification: 0.921\n         B4 Regression: 0.917\n         B5 Regression: 0.921</p></li>\n<li><p>Final Submission:\nCombining B4 &amp; B5 regression output together. （Public LB:0.835, Private 0.925)</p></li>\n</ol>",
  "messages": [
    {
      "id": 620982,
      "postDate": "2019-09-08T06:04:22.313Z",
      "content": "<p>Congratulations to all !\nThanks to my great teammates. (friends in real world)</p>\n\n<ol>\n<li>Network : EfficientNetB4&amp; EfficientNetB5 (Both Classification and regression.)</li>\n<li>Image size:  B4: (256x256), B5: (328x328)</li>\n<li>Image Preprocessing: Cropping images Only.\n(Code from <a href=\"https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images\">https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images</a>) </li>\n<li>Data Augment:\n<code>train_transform = transforms.Compose([\n  transforms.ColorJitter(brightness=0.45, contrast=0.45),\n  transforms.RandomAffine(degrees=360, scale=(1.0, 1.3)),\n  transforms.RandomHorizontalFlip(),\n  transforms.RandomVerticalFlip(),\n  transforms.ToTensor(),\n  transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])</code></li>\n<li>Optimizer : Adam</li>\n<li>Loss :  Classification: Cross entropy Loss\n               Regression:MSE</li>\n<li>Learning Rate: Start from 0.001</li>\n<li>Learning Rate Scheduler：StepLR(B4-&gt; StepSize:5, B5-&gt; StepSize:10), gamma=0.1</li>\n<li><p>TTA: TTA 10 times by following code\n<code>test_transform = transforms.Compose([\ntransforms.RandomAffine(degrees=360),\ntransforms.RandomHorizontalFlip(),\ntransforms.RandomVerticalFlip(),\ntransforms.ToTensor(),\ntransforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])</code></p></li>\n<li><p>Score:\n        -&gt; Public LB: <br>\n         B4 Classification: 0.821 <br>\n         B5 Classification: 0.825\n         B4 Regression:0.823\n         B5 Regression:0.825\n       -&gt; Private LB\n         B4 Classification: 0.919 <br>\n         B5 Classification: 0.921\n         B4 Regression: 0.917\n         B5 Regression: 0.921</p></li>\n<li><p>Final Submission:\nCombining B4 &amp; B5 regression output together. （Public LB:0.835, Private 0.925)</p></li>\n</ol>",
      "rawMarkdown": "Congratulations to all !\nThanks to my great teammates. (friends in real world)\n\n1. Network : EfficientNetB4&amp; EfficientNetB5 (Both Classification and regression.)\n2. Image size:  B4: (256x256), B5: (328x328)\n3. Image Preprocessing: Cropping images Only.\n(Code from https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images) \n4. Data Augment:\n`train_transform = transforms.Compose([\n      transforms.ColorJitter(brightness=0.45, contrast=0.45),\n      transforms.RandomAffine(degrees=360, scale=(1.0, 1.3)),\n      transforms.RandomHorizontalFlip(),\n      transforms.RandomVerticalFlip(),\n      transforms.ToTensor(),\n      transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])`\n5. Optimizer : Adam\n6. Loss :  Classification: Cross entropy Loss\n                   Regression:MSE\n7.  Learning Rate: Start from 0.001\n8.  Learning Rate Scheduler：StepLR(B4-&gt; StepSize:5, B5-&gt; StepSize:10), gamma=0.1\n9.  TTA: TTA 10 times by following code\n `test_transform = transforms.Compose([\n    transforms.RandomAffine(degrees=360),\n    transforms.RandomHorizontalFlip(),\n    transforms.RandomVerticalFlip(),\n    transforms.ToTensor(),\n    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])`\n \n10. Score:\n            -&gt; Public LB:  \n             B4 Classification: 0.821                                       \n             B5 Classification: 0.825\n             B4 Regression:0.823\n             B5 Regression:0.825\n           -&gt; Private LB\n             B4 Classification: 0.919                                      \n             B5 Classification: 0.921\n             B4 Regression: 0.917\n             B5 Regression: 0.921\n                       \n11. Final Submission:\nCombining B4 &amp; B5 regression output together. （Public LB:0.835, Private 0.925)",
      "votes": 12
    },
    {
      "id": 621089,
      "postDate": "2019-09-08T07:34:38.950Z",
      "content": "<p>Congrats <a href=\"/chanhu\">@chanhu</a> and your teammates!\nCould I ask how’s the strategy of validation? I couldn’t make reliable validation set, and I believe this was one of discussion topics in this comp.</p>",
      "rawMarkdown": "Congrats @chanhu and your teammates!\nCould I ask how’s the strategy of validation? I couldn’t make reliable validation set, and I believe this was one of discussion topics in this comp.",
      "replies": [
        {
          "id": 621233,
          "postDate": "2019-09-08T11:09:48.703Z",
          "content": "<ol>\n<li>Combining 2019 and 2015 Data Together.</li>\n<li>Removing duplicated Image in 2019 Public Train Dataset.\n There are two type of duplicated Image.\n<ul><li>Same Image with different Label.\n(keeping them,  believe that there is same type of noise in private &amp; public test set)</li>\n<li>Same Image with same Label. (only keep 1 image before train_test_split, \n don‘t want same pictures which one is in train set, which one is in test set)</li></ul></li>\n<li>Data augmentation in validation.\n We found that Data augmentation in validation made model more stable.\n  (the idea is based on <a href=\"https://github.com/facebookresearch/FixRes\">Fixing the train-test resolution discrepancy</a>)</li>\n</ol>",
          "rawMarkdown": "1.  Combining 2019 and 2015 Data Together.\n2.  Removing duplicated Image in 2019 Public Train Dataset.\n     There are two type of duplicated Image.\n     - Same Image with different Label.\n        (keeping them,  believe that there is same type of noise in private &amp; public test set)\n     - Same Image with same Label. (only keep 1 image before train_test_split, \n         don‘t want same pictures which one is in train set, which one is in test set)\n3. Data augmentation in validation.\n     We found that Data augmentation in validation made model more stable.\n      (the idea is based on [Fixing the train-test resolution discrepancy](https://github.com/facebookresearch/FixRes))",
          "votes": 1
        }
      ]
    },
    {
      "id": 621955,
      "postDate": "2019-09-09T05:50:04.067Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 621049,
      "postDate": "2019-09-08T07:02:22.323Z",
      "content": "<p>Congrats and thank you for sharing. </p>",
      "rawMarkdown": "Congrats and thank you for sharing. ",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 621089,
      "author_name": "Y. O.",
      "author_url": "",
      "post_date": "2019-09-08T07:34:38.950000",
      "content": "<p>Congrats <a href=\"/chanhu\">@chanhu</a> and your teammates!\nCould I ask how’s the strategy of validation? I couldn’t make reliable validation set, and I believe this was one of discussion topics in this comp.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 621233,
          "author_name": "Chanhu",
          "author_url": "",
          "post_date": "2019-09-08T11:09:48.703000",
          "content": "<ol>\n<li>Combining 2019 and 2015 Data Together.</li>\n<li>Removing duplicated Image in 2019 Public Train Dataset.\n There are two type of duplicated Image.\n<ul><li>Same Image with different Label.\n(keeping them,  believe that there is same type of noise in private &amp; public test set)</li>\n<li>Same Image with same Label. (only keep 1 image before train_test_split, \n don‘t want same pictures which one is in train set, which one is in test set)</li></ul></li>\n<li>Data augmentation in validation.\n We found that Data augmentation in validation made model more stable.\n  (the idea is based on <a href=\"https://github.com/facebookresearch/FixRes\">Fixing the train-test resolution discrepancy</a>)</li>\n</ol>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 621955,
      "author_name": "",
      "author_url": "",
      "post_date": "2019-09-09T05:50:04.067000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 621049,
      "author_name": "Anand Selvadurai",
      "author_url": "",
      "post_date": "2019-09-08T07:02:22.323000",
      "content": "<p>Congrats and thank you for sharing. </p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "620982": "Congratulations to all !\nThanks to my great teammates. (friends in real world)\n\n1. Network : EfficientNetB4&amp; EfficientNetB5 (Both Classification and regression.)\n2. Image size:  B4: (256x256), B5: (328x328)\n3. Image Preprocessing: Cropping images Only.\n(Code from https://www.kaggle.com/benjaminwarner/starter-code-resized-15-19-blindness-images) \n4. Data Augment:\n`train_transform = transforms.Compose([\n      transforms.ColorJitter(brightness=0.45, contrast=0.45),\n      transforms.RandomAffine(degrees=360, scale=(1.0, 1.3)),\n      transforms.RandomHorizontalFlip(),\n      transforms.RandomVerticalFlip(),\n      transforms.ToTensor(),\n      transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])`\n5. Optimizer : Adam\n6. Loss :  Classification: Cross entropy Loss\n                   Regression:MSE\n7.  Learning Rate: Start from 0.001\n8.  Learning Rate Scheduler：StepLR(B4-&gt; StepSize:5, B5-&gt; StepSize:10), gamma=0.1\n9.  TTA: TTA 10 times by following code\n `test_transform = transforms.Compose([\n    transforms.RandomAffine(degrees=360),\n    transforms.RandomHorizontalFlip(),\n    transforms.RandomVerticalFlip(),\n    transforms.ToTensor(),\n    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])`\n \n10. Score:\n            -&gt; Public LB:  \n             B4 Classification: 0.821                                       \n             B5 Classification: 0.825\n             B4 Regression:0.823\n             B5 Regression:0.825\n           -&gt; Private LB\n             B4 Classification: 0.919                                      \n             B5 Classification: 0.921\n             B4 Regression: 0.917\n             B5 Regression: 0.921\n                       \n11. Final Submission:\nCombining B4 &amp; B5 regression output together. （Public LB:0.835, Private 0.925)",
    "621089": "Congrats @chanhu and your teammates!\nCould I ask how’s the strategy of validation? I couldn’t make reliable validation set, and I believe this was one of discussion topics in this comp.",
    "621955": "",
    "621049": "Congrats and thank you for sharing. "
  }
}