{
  "id": 419857,
  "title": "How do you ensemble the trained yolo model that with different number of outputs (noted classes)?",
  "url": "/competitions/hubmap-hacking-the-human-vasculature/discussion/419857",
  "author_name": "HongCheng",
  "post_date": "2023-06-28T02:13:42.976000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>As the discussion shows, I tried to use images with just ** 2 ** kinds of lables, i.e. using ** “ 0: blood_vessel 1: glomerulus”  ** <strong><em><em></em></em></strong><strong><em></em></strong><strong><em><em></em></em></strong>**as known classes,</p>\n<p>But when I want to do ensemble, It shows that we couldn't averge these weights because some models are trained with <strong>3 classes</strong> including the \"<strong>2:unsure</strong>\"</p>\n<p>In this case, how can you do the ensemble for inference?</p>\n<p>This is my <a href=\"https://www.kaggle.com/code/chg0901/hubmap-yolov7-inference-ensemble-cn?scriptVersionId=135082341\" target=\"_blank\">inference notebook</a></p>",
  "messages": [
    {
      "id": 2320650,
      "postDate": "2023-06-28T02:13:42.977Z",
      "content": "<p>As the discussion shows, I tried to use images with just ** 2 ** kinds of lables, i.e. using ** “ 0: blood_vessel 1: glomerulus”  ** <strong><em><em></em></em></strong><strong><em></em></strong><strong><em><em></em></em></strong>**as known classes,</p>\n<p>But when I want to do ensemble, It shows that we couldn't averge these weights because some models are trained with <strong>3 classes</strong> including the \"<strong>2:unsure</strong>\"</p>\n<p>In this case, how can you do the ensemble for inference?</p>\n<p>This is my <a href=\"https://www.kaggle.com/code/chg0901/hubmap-yolov7-inference-ensemble-cn?scriptVersionId=135082341\" target=\"_blank\">inference notebook</a></p>",
      "rawMarkdown": "As the discussion shows, I tried to use images with just ** 2 ** kinds of lables, i.e. using ** “ 0: blood_vessel 1: glomerulus”  ** ************************as known classes,\n\nBut when I want to do ensemble, It shows that we couldn't averge these weights because some models are trained with **3 classes** including the \"**2:unsure**\"\n\nIn this case, how can you do the ensemble for inference?\n\nThis is my [inference notebook](https://www.kaggle.com/code/chg0901/hubmap-yolov7-inference-ensemble-cn?scriptVersionId=135082341)\n\n\n"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2320650": "As the discussion shows, I tried to use images with just ** 2 ** kinds of lables, i.e. using ** “ 0: blood_vessel 1: glomerulus”  ** ************************as known classes,\n\nBut when I want to do ensemble, It shows that we couldn't averge these weights because some models are trained with **3 classes** including the \"**2:unsure**\"\n\nIn this case, how can you do the ensemble for inference?\n\nThis is my [inference notebook](https://www.kaggle.com/code/chg0901/hubmap-yolov7-inference-ensemble-cn?scriptVersionId=135082341)\n\n\n"
  }
}