{
  "id": 51216,
  "title": "Mask R-CNN: ImageNet pretrained weights",
  "url": "/competitions/data-science-bowl-2018/discussion/51216",
  "author_name": "",
  "post_date": "2018-03-06T17:41:54.625492300Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Does anybody know, how I can find ImageNet weights for Mask R-CNN? I trained with COCO but I thought, it would be good to try with ImageNet as well.</p>\n\n<p>Thanks</p>",
  "messages": [
    {
      "id": "291701",
      "postDate": "03/06/2018 17:41:54",
      "content": "<p>Does anybody know, how I can find ImageNet weights for Mask R-CNN? I trained with COCO but I thought, it would be good to try with ImageNet as well.</p>\n\n<p>Thanks</p>",
      "rawMarkdown": "Does anybody know, how I can find ImageNet weights for Mask R-CNN? I trained with COCO but I thought, it would be good to try with ImageNet as well.\n\nThanks",
      "votes": null
    },
    {
      "id": "291708",
      "postDate": "03/06/2018 17:59:54",
      "content": "<p>Hey Aramis,</p>\n\n<p>Have a look at his code:</p>\n\n<pre><code>if init_with == \"imagenet\":\n    model.load_weights(model.get_imagenet_weights(), by_name=True)\n</code></pre>\n\n<p>(<a href=\"https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py\">https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py</a>)</p>\n\n<p>The imagenet loading function is in:\n<a href=\"https://github.com/YanWang2014/Mask_RCNN/blob/master/model.py\">https://github.com/YanWang2014/Mask_RCNN/blob/master/model.py</a></p>",
      "rawMarkdown": "Hey Aramis,\n\nHave a look at his code:\n\n    if init_with == \"imagenet\":\n        model.load_weights(model.get_imagenet_weights(), by_name=True)\n(https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py)\n\nThe imagenet loading function is in:\nhttps://github.com/YanWang2014/Mask_RCNN/blob/master/model.py",
      "votes": null
    },
    {
      "id": "291715",
      "postDate": "03/06/2018 18:12:25",
      "content": "<p>Hey, Thanks man. I did not notice that piece of the code, now I just ran the training again. </p>",
      "rawMarkdown": "Hey, Thanks man. I did not notice that piece of the code, now I just ran the training again.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 291708,
      "author_name": "fabsta",
      "author_url": "",
      "post_date": "03/06/2018 17:59:54",
      "content": "<p>Hey Aramis,</p>\n\n<p>Have a look at his code:</p>\n\n<pre><code>if init_with == \"imagenet\":\n    model.load_weights(model.get_imagenet_weights(), by_name=True)\n</code></pre>\n\n<p>(<a href=\"https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py\">https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py</a>)</p>\n\n<p>The imagenet loading function is in:\n<a href=\"https://github.com/YanWang2014/Mask_RCNN/blob/master/model.py\">https://github.com/YanWang2014/Mask_RCNN/blob/master/model.py</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 291715,
          "author_name": "svesal",
          "author_url": "",
          "post_date": "03/06/2018 18:12:25",
          "content": "<p>Hey, Thanks man. I did not notice that piece of the code, now I just ran the training again. </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "291701": "Does anybody know, how I can find ImageNet weights for Mask R-CNN? I trained with COCO but I thought, it would be good to try with ImageNet as well.\n\nThanks",
    "291708": "Hey Aramis,\n\nHave a look at his code:\n\n    if init_with == \"imagenet\":\n        model.load_weights(model.get_imagenet_weights(), by_name=True)\n(https://github.com/YanWang2014/Mask_RCNN/blob/master/Spot-Nuclei2/train_val.py)\n\nThe imagenet loading function is in:\nhttps://github.com/YanWang2014/Mask_RCNN/blob/master/model.py",
    "291715": "Hey, Thanks man. I did not notice that piece of the code, now I just ran the training again."
  },
  "source": "meta"
}