{
  "id": 125611,
  "title": "Gaussian Map in Focal Loss",
  "url": "/competitions/pku-autonomous-driving/discussion/125611",
  "author_name": "Gold Retriever",
  "post_date": "2020-01-12T08:14:29.988000",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi!</p>\n\n<p>I was wondering how can I implement the Gaussian Map in focal loss. I looked at everywhere for its implementation but didn't find one. I also didn't really understand that part of descriptions in the paper.</p>\n\n<p>Thanks！</p>",
  "messages": [
    {
      "id": 716763,
      "postDate": "2020-01-12T08:14:29.990Z",
      "content": "<p>Hi!</p>\n\n<p>I was wondering how can I implement the Gaussian Map in focal loss. I looked at everywhere for its implementation but didn't find one. I also didn't really understand that part of descriptions in the paper.</p>\n\n<p>Thanks！</p>",
      "rawMarkdown": "Hi!\n\nI was wondering how can I implement the Gaussian Map in focal loss. I looked at everywhere for its implementation but didn't find one. I also didn't really understand that part of descriptions in the paper.\n\nThanks！",
      "votes": 2
    },
    {
      "id": 716857,
      "postDate": "2020-01-12T11:17:12.170Z",
      "content": "<p>Have a look at <a href=\"https://github.com/xingyizhou/CenterNet\">https://github.com/xingyizhou/CenterNet</a>\nAs far as i can tell, everything from the paper is implemented in this code including gauss loss.\nSee gt.eq(1) and gt.lt(1) in focal loss</p>",
      "rawMarkdown": "Have a look at https://github.com/xingyizhou/CenterNet\nAs far as i can tell, everything from the paper is implemented in this code including gauss loss.\nSee gt.eq(1) and gt.lt(1) in focal loss",
      "replies": [
        {
          "id": 717079,
          "postDate": "2020-01-12T17:42:39.303Z",
          "content": "<p>I found the focal loss code, but I couldn't tell how can I generate the gaussian heatmap. <a href=\"/ilu000\">@ilu000</a> </p>",
          "rawMarkdown": "I found the focal loss code, but I couldn't tell how can I generate the gaussian heatmap. @ilu000 "
        },
        {
          "id": 717107,
          "postDate": "2020-01-12T18:34:54.490Z",
          "content": "<ol>\n<li>For each point in the mask (car), apply a gaussian filter with a sigma value of your choice</li>\n<li>Concat all gauss-maps (single cars) to a single heatmap (all cars) by taking the maximum value at each coordinate</li>\n</ol>",
          "rawMarkdown": "1. For each point in the mask (car), apply a gaussian filter with a sigma value of your choice\n2. Concat all gauss-maps (single cars) to a single heatmap (all cars) by taking the maximum value at each coordinate",
          "votes": 2
        },
        {
          "id": 717220,
          "postDate": "2020-01-12T22:14:44.967Z",
          "content": "<p>I think I figured that out! Thank you!</p>",
          "rawMarkdown": "I think I figured that out! Thank you!"
        }
      ]
    },
    {
      "id": 717413,
      "postDate": "2020-01-13T04:50:37.957Z",
      "rawMarkdown": "",
      "votes": -1,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 716857,
      "author_name": "Pascal Pfeiffer",
      "author_url": "",
      "post_date": "2020-01-12T11:17:12.170000",
      "content": "<p>Have a look at <a href=\"https://github.com/xingyizhou/CenterNet\">https://github.com/xingyizhou/CenterNet</a>\nAs far as i can tell, everything from the paper is implemented in this code including gauss loss.\nSee gt.eq(1) and gt.lt(1) in focal loss</p>",
      "votes": 0,
      "replies": [
        {
          "id": 717079,
          "author_name": "Gold Retriever",
          "author_url": "",
          "post_date": "2020-01-12T17:42:39.303000",
          "content": "<p>I found the focal loss code, but I couldn't tell how can I generate the gaussian heatmap. <a href=\"/ilu000\">@ilu000</a> </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 717107,
          "author_name": "Pascal Pfeiffer",
          "author_url": "",
          "post_date": "2020-01-12T18:34:54.490000",
          "content": "<ol>\n<li>For each point in the mask (car), apply a gaussian filter with a sigma value of your choice</li>\n<li>Concat all gauss-maps (single cars) to a single heatmap (all cars) by taking the maximum value at each coordinate</li>\n</ol>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 717220,
          "author_name": "Gold Retriever",
          "author_url": "",
          "post_date": "2020-01-12T22:14:44.967000",
          "content": "<p>I think I figured that out! Thank you!</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 717413,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-01-13T04:50:37.957000",
      "content": "",
      "votes": -1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "716763": "Hi!\n\nI was wondering how can I implement the Gaussian Map in focal loss. I looked at everywhere for its implementation but didn't find one. I also didn't really understand that part of descriptions in the paper.\n\nThanks！",
    "716857": "Have a look at https://github.com/xingyizhou/CenterNet\nAs far as i can tell, everything from the paper is implemented in this code including gauss loss.\nSee gt.eq(1) and gt.lt(1) in focal loss",
    "717413": ""
  }
}