{
  "id": 124186,
  "title": "Is `id` in train.csv correct?",
  "url": "/competitions/pku-autonomous-driving/discussion/124186",
  "author_name": "Tsai29",
  "post_date": "2020-01-02T13:35:54.143000",
  "votes": 2,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I was trying to find the relationship between <code>id</code> in train.csv and the car model label in Apollo dataset api repo as following link:\n<a href=\"https://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py\">https://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py</a></p>\n\n<p>For the red bbox in the picture below, its <code>id</code> in train.csv is 07, which corresponding to <code>feiyate</code> in the repo. But the car in the red bbox is obviously not a <code>feiyate</code>. Did I miss something here? </p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3617078%2F3747eec8c06565f26d428ca2be12edb7%2F2020-01-02%209.12.15.png?generation=1577970922249465&amp;alt=media\" alt=\"\"></p>\n\n<p>Also I had noticed that someone said we can get the car size(length, width and height) by the car model. Did he/she mean the average size? Or different size with different car?</p>\n\n<p>One last question.. Did the size of car model is calculated by following formula?\n(vector is in car_model.json)\n<code>X_size = abs( max(vector[:,0]) - min(vector[:,0]) )</code>\n<code>Y_size = abs( max(vector[:,1]) - min(vector[:,1]) )</code>\n<code>Z_size = abs( max(vector[:,2]) - min(vector[:,2]) )</code></p>\n\n<p>I guess most of the people is regressing the rotation and translation information directly, or at least with some simple decoded. But there are a lots of different methods to predict the 3D information, like</p>\n\n<ol>\n<li>Predict the image points of 3D bounding box then use pnp to get the translation/rotation information.</li>\n</ol>\n\n<p>2.Turn the rotation information into multi-bins for training and train with size of car for generating 3D bounding box in inference.</p>\n\n<p>I think size information is needed or helpful in these methods. So I was wondering how to get the precise size information. Thanks in advances</p>",
  "messages": [
    {
      "id": 708609,
      "postDate": "2020-01-02T13:35:54.143Z",
      "content": "<p>I was trying to find the relationship between <code>id</code> in train.csv and the car model label in Apollo dataset api repo as following link:\n<a href=\"https://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py\">https://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py</a></p>\n\n<p>For the red bbox in the picture below, its <code>id</code> in train.csv is 07, which corresponding to <code>feiyate</code> in the repo. But the car in the red bbox is obviously not a <code>feiyate</code>. Did I miss something here? </p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3617078%2F3747eec8c06565f26d428ca2be12edb7%2F2020-01-02%209.12.15.png?generation=1577970922249465&amp;alt=media\" alt=\"\"></p>\n\n<p>Also I had noticed that someone said we can get the car size(length, width and height) by the car model. Did he/she mean the average size? Or different size with different car?</p>\n\n<p>One last question.. Did the size of car model is calculated by following formula?\n(vector is in car_model.json)\n<code>X_size = abs( max(vector[:,0]) - min(vector[:,0]) )</code>\n<code>Y_size = abs( max(vector[:,1]) - min(vector[:,1]) )</code>\n<code>Z_size = abs( max(vector[:,2]) - min(vector[:,2]) )</code></p>\n\n<p>I guess most of the people is regressing the rotation and translation information directly, or at least with some simple decoded. But there are a lots of different methods to predict the 3D information, like</p>\n\n<ol>\n<li>Predict the image points of 3D bounding box then use pnp to get the translation/rotation information.</li>\n</ol>\n\n<p>2.Turn the rotation information into multi-bins for training and train with size of car for generating 3D bounding box in inference.</p>\n\n<p>I think size information is needed or helpful in these methods. So I was wondering how to get the precise size information. Thanks in advances</p>",
      "rawMarkdown": "I was trying to find the relationship between `id` in train.csv and the car model label in Apollo dataset api repo as following link:\nhttps://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py\n\nFor the red bbox in the picture below, its `id` in train.csv is 07, which corresponding to `feiyate` in the repo. But the car in the red bbox is obviously not a `feiyate`. Did I miss something here? \n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3617078%2F3747eec8c06565f26d428ca2be12edb7%2F2020-01-02%209.12.15.png?generation=1577970922249465&amp;alt=media)\n\nAlso I had noticed that someone said we can get the car size(length, width and height) by the car model. Did he/she mean the average size? Or different size with different car?\n\nOne last question.. Did the size of car model is calculated by following formula?\n(vector is in car_model.json)\n`X_size = abs( max(vector[:,0]) - min(vector[:,0]) )`\n`Y_size = abs( max(vector[:,1]) - min(vector[:,1]) )`\n`Z_size = abs( max(vector[:,2]) - min(vector[:,2]) )`\n\nI guess most of the people is regressing the rotation and translation information directly, or at least with some simple decoded. But there are a lots of different methods to predict the 3D information, like\n\n1. Predict the image points of 3D bounding box then use pnp to get the translation/rotation information.\n\n2.Turn the rotation information into multi-bins for training and train with size of car for generating 3D bounding box in inference.\n\nI think size information is needed or helpful in these methods. So I was wondering how to get the precise size information. Thanks in advances",
      "votes": 2
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "708609": "I was trying to find the relationship between `id` in train.csv and the car model label in Apollo dataset api repo as following link:\nhttps://github.com/ApolloScapeAuto/dataset-api/blob/master/car_instance/car_models.py\n\nFor the red bbox in the picture below, its `id` in train.csv is 07, which corresponding to `feiyate` in the repo. But the car in the red bbox is obviously not a `feiyate`. Did I miss something here? \n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F3617078%2F3747eec8c06565f26d428ca2be12edb7%2F2020-01-02%209.12.15.png?generation=1577970922249465&amp;alt=media)\n\nAlso I had noticed that someone said we can get the car size(length, width and height) by the car model. Did he/she mean the average size? Or different size with different car?\n\nOne last question.. Did the size of car model is calculated by following formula?\n(vector is in car_model.json)\n`X_size = abs( max(vector[:,0]) - min(vector[:,0]) )`\n`Y_size = abs( max(vector[:,1]) - min(vector[:,1]) )`\n`Z_size = abs( max(vector[:,2]) - min(vector[:,2]) )`\n\nI guess most of the people is regressing the rotation and translation information directly, or at least with some simple decoded. But there are a lots of different methods to predict the 3D information, like\n\n1. Predict the image points of 3D bounding box then use pnp to get the translation/rotation information.\n\n2.Turn the rotation information into multi-bins for training and train with size of car for generating 3D bounding box in inference.\n\nI think size information is needed or helpful in these methods. So I was wondering how to get the precise size information. Thanks in advances"
  }
}