{
  "id": 304954,
  "title": "Issues with MMDet and Sahi",
  "url": "/competitions/tensorflow-great-barrier-reef/discussion/304954",
  "author_name": "",
  "post_date": "2022-02-03T05:34:55.570867300Z",
  "votes": 1,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hello,<br>\nI'm trying to infer a MMDetection Model with SAHI, but every time I try to install Sahi and Mmdet in the same notebook, pycocotools causes problem in installation.<br>\nCan somebody please help?<br>\nThanks.</p>",
  "messages": [
    {
      "id": "1673943",
      "postDate": "02/03/2022 05:34:55",
      "content": "<p>Hello,<br>\nI'm trying to infer a MMDetection Model with SAHI, but every time I try to install Sahi and Mmdet in the same notebook, pycocotools causes problem in installation.<br>\nCan somebody please help?<br>\nThanks.</p>",
      "rawMarkdown": "Hello,\nI'm trying to infer a MMDetection Model with SAHI, but every time I try to install Sahi and Mmdet in the same notebook, pycocotools causes problem in installation.\nCan somebody please help?\nThanks.",
      "votes": null
    },
    {
      "id": "1673992",
      "postDate": "02/03/2022 06:34:46",
      "content": "<p>I made a dataset which contains MMDetection offline installation dependencies <a href=\"https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories\" target=\"_blank\">https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories</a> and the notebook showing how to get it working <a href=\"https://www.kaggle.com/maxvandijck/openmmlab-offline-installation\" target=\"_blank\">https://www.kaggle.com/maxvandijck/openmmlab-offline-installation</a> , maybe try this version of mmdet</p>",
      "rawMarkdown": "I made a dataset which contains MMDetection offline installation dependencies https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories and the notebook showing how to get it working https://www.kaggle.com/maxvandijck/openmmlab-offline-installation , maybe try this version of mmdet",
      "votes": null
    },
    {
      "id": "1674023",
      "postDate": "02/03/2022 07:10:39",
      "content": "<p>Thank you very much.<br>\nThe installations worked.</p>\n<p>I just have one more query, when I load the checkpoint, I get this warning:</p>\n<p>./mmdetection/mmdet/apis/inference.py:47: UserWarning: Class names are not saved in the checkpoint's meta data, use COCO classes by default.<br>\n  warnings.warn('Class names are not saved in the checkpoint\\'s '</p>\n<p>And when I try to predict, I get this:</p>\n<p>'list index out of range'</p>",
      "rawMarkdown": "Thank you very much.\nThe installations worked.\n\nI just have one more query, when I load the checkpoint, I get this warning:\n\n./mmdetection/mmdet/apis/inference.py:47: UserWarning: Class names are not saved in the checkpoint's meta data, use COCO classes by default.\n  warnings.warn('Class names are not saved in the checkpoint\\'s '\n\nAnd when I try to predict, I get this:\n\n'list index out of range'",
      "votes": null
    },
    {
      "id": "1676194",
      "postDate": "02/04/2022 19:01:56",
      "content": "<p>I think you have to add <code>classes = ('starfish',)</code> or similar to your config file. Very difficult to tell you without seeing a notebook or config + log file. Maybe jump over to the mmdetection github and raise an issue 👍</p>",
      "rawMarkdown": "I think you have to add `classes = ('starfish',)` or similar to your config file. Very difficult to tell you without seeing a notebook or config + log file. Maybe jump over to the mmdetection github and raise an issue 👍",
      "votes": null
    },
    {
      "id": "1676195",
      "postDate": "02/04/2022 19:04:16",
      "content": "<p>Thank you!</p>",
      "rawMarkdown": "Thank you!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1673992,
      "author_name": "maxvandijck",
      "author_url": "",
      "post_date": "02/03/2022 06:34:46",
      "content": "<p>I made a dataset which contains MMDetection offline installation dependencies <a href=\"https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories\" target=\"_blank\">https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories</a> and the notebook showing how to get it working <a href=\"https://www.kaggle.com/maxvandijck/openmmlab-offline-installation\" target=\"_blank\">https://www.kaggle.com/maxvandijck/openmmlab-offline-installation</a> , maybe try this version of mmdet</p>",
      "votes": null,
      "replies": [
        {
          "id": 1674023,
          "author_name": "shashwatraman",
          "author_url": "",
          "post_date": "02/03/2022 07:10:39",
          "content": "<p>Thank you very much.<br>\nThe installations worked.</p>\n<p>I just have one more query, when I load the checkpoint, I get this warning:</p>\n<p>./mmdetection/mmdet/apis/inference.py:47: UserWarning: Class names are not saved in the checkpoint's meta data, use COCO classes by default.<br>\n  warnings.warn('Class names are not saved in the checkpoint\\'s '</p>\n<p>And when I try to predict, I get this:</p>\n<p>'list index out of range'</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1676194,
          "author_name": "maxvandijck",
          "author_url": "",
          "post_date": "02/04/2022 19:01:56",
          "content": "<p>I think you have to add <code>classes = ('starfish',)</code> or similar to your config file. Very difficult to tell you without seeing a notebook or config + log file. Maybe jump over to the mmdetection github and raise an issue 👍</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1676195,
          "author_name": "shashwatraman",
          "author_url": "",
          "post_date": "02/04/2022 19:04:16",
          "content": "<p>Thank you!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1673943": "Hello,\nI'm trying to infer a MMDetection Model with SAHI, but every time I try to install Sahi and Mmdet in the same notebook, pycocotools causes problem in installation.\nCan somebody please help?\nThanks.",
    "1673992": "I made a dataset which contains MMDetection offline installation dependencies https://www.kaggle.com/maxvandijck/openmmlab-essential-repositories and the notebook showing how to get it working https://www.kaggle.com/maxvandijck/openmmlab-offline-installation , maybe try this version of mmdet",
    "1674023": "Thank you very much.\nThe installations worked.\n\nI just have one more query, when I load the checkpoint, I get this warning:\n\n./mmdetection/mmdet/apis/inference.py:47: UserWarning: Class names are not saved in the checkpoint's meta data, use COCO classes by default.\n  warnings.warn('Class names are not saved in the checkpoint\\'s '\n\nAnd when I try to predict, I get this:\n\n'list index out of range'",
    "1676194": "I think you have to add `classes = ('starfish',)` or similar to your config file. Very difficult to tell you without seeing a notebook or config + log file. Maybe jump over to the mmdetection github and raise an issue 👍",
    "1676195": "Thank you!"
  },
  "source": "meta"
}