{
  "id": 112669,
  "title": "discrepancy in maps.json",
  "url": "/competitions/3d-object-detection-for-autonomous-vehicles/discussion/112669",
  "author_name": "",
  "post_date": "2019-10-14T17:17:47.290335800Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>while initializing the LyftDataset with \n<code>\nfrom lyft_dataset_sdk.lyftdataset import LyftDataset\npath = \"../input/3d-object-detection-for-autonomous-vehicles/\"\ndataset = LyftDataset(path, os.path.join(data_path=path, json_path=\"train_data\")) # this throws error\n</code>\nThe initialization sequence <a href=\"https://github.com/lyft/nuscenes-devkit/blob/3932b4b186ef304a33641f09ffba2d9a3e8e7e3f/lyft_dataset_sdk/lyftdataset.py#L85\">here</a> opens <code>maps.json</code> from <code>json_path</code> to find the relative path of maps.  </p>\n\n<p>Looking at the maps.json in json_path,\n<code>!cat {os.path.join(path, \"train_data\", \"map.json\")}</code> \nit expects the map to be in <code>filename=\"maps/map_raster_palo_alto.png\"</code> while it should be <code>filename=\"train_maps/map_raster_palo_alto.png\"</code> for maps.json in <code>train_data</code> folder and <code>filename=\"test_maps/map_raster_palo_alto.png\"</code> foor maps.json in <code>test_data</code> folder</p>\n\n<p>As the dataset is read only, cannot change the files. Can the admin help? :(</p>\n\n<h3>tldr</h3>\n\n<p>change <code>filename=\"maps/map_raster_palo_alto.png\"</code> to <code>filename=\"train_maps/map_raster_palo_alto.png\"</code> <br>\nand change <code>filename=\"maps/map_raster_palo_alto.png\"</code> to <code>filename=\"test_maps/map_raster_palo_alto.png\"</code> <br>\nin <code>maps.json</code> of <code>train_json</code> and <code>test_json</code> folders respectively</p>",
  "messages": [
    {
      "id": "648843",
      "postDate": "10/14/2019 17:17:47",
      "content": "<p>while initializing the LyftDataset with \n<code>\nfrom lyft_dataset_sdk.lyftdataset import LyftDataset\npath = \"../input/3d-object-detection-for-autonomous-vehicles/\"\ndataset = LyftDataset(path, os.path.join(data_path=path, json_path=\"train_data\")) # this throws error\n</code>\nThe initialization sequence <a href=\"https://github.com/lyft/nuscenes-devkit/blob/3932b4b186ef304a33641f09ffba2d9a3e8e7e3f/lyft_dataset_sdk/lyftdataset.py#L85\">here</a> opens <code>maps.json</code> from <code>json_path</code> to find the relative path of maps.  </p>\n\n<p>Looking at the maps.json in json_path,\n<code>!cat {os.path.join(path, \"train_data\", \"map.json\")}</code> \nit expects the map to be in <code>filename=\"maps/map_raster_palo_alto.png\"</code> while it should be <code>filename=\"train_maps/map_raster_palo_alto.png\"</code> for maps.json in <code>train_data</code> folder and <code>filename=\"test_maps/map_raster_palo_alto.png\"</code> foor maps.json in <code>test_data</code> folder</p>\n\n<p>As the dataset is read only, cannot change the files. Can the admin help? :(</p>\n\n<h3>tldr</h3>\n\n<p>change <code>filename=\"maps/map_raster_palo_alto.png\"</code> to <code>filename=\"train_maps/map_raster_palo_alto.png\"</code> <br>\nand change <code>filename=\"maps/map_raster_palo_alto.png\"</code> to <code>filename=\"test_maps/map_raster_palo_alto.png\"</code> <br>\nin <code>maps.json</code> of <code>train_json</code> and <code>test_json</code> folders respectively</p>",
      "rawMarkdown": "while initializing the LyftDataset with \n```\nfrom lyft_dataset_sdk.lyftdataset import LyftDataset\npath = \"../input/3d-object-detection-for-autonomous-vehicles/\"\ndataset = LyftDataset(path, os.path.join(data_path=path, json_path=\"train_data\")) # this throws error\n```\nThe initialization sequence [here](https://github.com/lyft/nuscenes-devkit/blob/3932b4b186ef304a33641f09ffba2d9a3e8e7e3f/lyft_dataset_sdk/lyftdataset.py#L85) opens `maps.json` from `json_path` to find the relative path of maps.  \n\nLooking at the maps.json in json_path,\n`!cat {os.path.join(path, \"train_data\", \"map.json\")}` \nit expects the map to be in `filename=\"maps/map_raster_palo_alto.png\"` while it should be `filename=\"train_maps/map_raster_palo_alto.png\"` for maps.json in `train_data` folder and `filename=\"test_maps/map_raster_palo_alto.png\"` foor maps.json in `test_data` folder\n\nAs the dataset is read only, cannot change the files. Can the admin help? :(\n### tldr\nchange `filename=\"maps/map_raster_palo_alto.png\"` to `filename=\"train_maps/map_raster_palo_alto.png\"`  \nand change `filename=\"maps/map_raster_palo_alto.png\"` to `filename=\"test_maps/map_raster_palo_alto.png\"`  \nin `maps.json` of `train_json` and `test_json` folders respectively",
      "votes": null
    },
    {
      "id": "648877",
      "postDate": "10/14/2019 18:15:23",
      "content": "<p>check this <a href=\"https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566\">https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566</a></p>",
      "rawMarkdown": "check this https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566",
      "votes": null
    },
    {
      "id": "649208",
      "postDate": "10/15/2019 04:19:25",
      "content": "<p>I ended up doing something similar\n<code>\n! mkdir input\n! mkdir input/dataset\n! for f in /kaggle/input/3d-object-detection-for-autonomous-vehicles/*; do ln -s $f input/dataset/; done\n! mv input/dataset/train_maps input/dataset/maps\n! mv input/dataset/train_images input/dataset/images\n! mv input/dataset/train_lidar input/dataset/lidar\n</code></p>",
      "rawMarkdown": "I ended up doing something similar\n```\n! mkdir input\n! mkdir input/dataset\n! for f in /kaggle/input/3d-object-detection-for-autonomous-vehicles/*; do ln -s $f input/dataset/; done\n! mv input/dataset/train_maps input/dataset/maps\n! mv input/dataset/train_images input/dataset/images\n! mv input/dataset/train_lidar input/dataset/lidar\n```",
      "votes": null
    },
    {
      "id": "650723",
      "postDate": "10/16/2019 16:15:57",
      "content": "<p>Thanks man. You're a life savor </p>",
      "rawMarkdown": "Thanks man. You're a life savor",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 648877,
      "author_name": "rishabhiitbhu",
      "author_url": "",
      "post_date": "10/14/2019 18:15:23",
      "content": "<p>check this <a href=\"https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566\">https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 649208,
          "author_name": "dumbpy",
          "author_url": "",
          "post_date": "10/15/2019 04:19:25",
          "content": "<p>I ended up doing something similar\n<code>\n! mkdir input\n! mkdir input/dataset\n! for f in /kaggle/input/3d-object-detection-for-autonomous-vehicles/*; do ln -s $f input/dataset/; done\n! mv input/dataset/train_maps input/dataset/maps\n! mv input/dataset/train_images input/dataset/images\n! mv input/dataset/train_lidar input/dataset/lidar\n</code></p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 650723,
      "author_name": "youcefjd123",
      "author_url": "",
      "post_date": "10/16/2019 16:15:57",
      "content": "<p>Thanks man. You're a life savor </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "648843": "while initializing the LyftDataset with \n```\nfrom lyft_dataset_sdk.lyftdataset import LyftDataset\npath = \"../input/3d-object-detection-for-autonomous-vehicles/\"\ndataset = LyftDataset(path, os.path.join(data_path=path, json_path=\"train_data\")) # this throws error\n```\nThe initialization sequence [here](https://github.com/lyft/nuscenes-devkit/blob/3932b4b186ef304a33641f09ffba2d9a3e8e7e3f/lyft_dataset_sdk/lyftdataset.py#L85) opens `maps.json` from `json_path` to find the relative path of maps.  \n\nLooking at the maps.json in json_path,\n`!cat {os.path.join(path, \"train_data\", \"map.json\")}` \nit expects the map to be in `filename=\"maps/map_raster_palo_alto.png\"` while it should be `filename=\"train_maps/map_raster_palo_alto.png\"` for maps.json in `train_data` folder and `filename=\"test_maps/map_raster_palo_alto.png\"` foor maps.json in `test_data` folder\n\nAs the dataset is read only, cannot change the files. Can the admin help? :(\n### tldr\nchange `filename=\"maps/map_raster_palo_alto.png\"` to `filename=\"train_maps/map_raster_palo_alto.png\"`  \nand change `filename=\"maps/map_raster_palo_alto.png\"` to `filename=\"test_maps/map_raster_palo_alto.png\"`  \nin `maps.json` of `train_json` and `test_json` folders respectively",
    "648877": "check this https://www.kaggle.com/seshurajup/starter-lyft-level-5-av-dataset-from-github#625566",
    "649208": "I ended up doing something similar\n```\n! mkdir input\n! mkdir input/dataset\n! for f in /kaggle/input/3d-object-detection-for-autonomous-vehicles/*; do ln -s $f input/dataset/; done\n! mv input/dataset/train_maps input/dataset/maps\n! mv input/dataset/train_images input/dataset/images\n! mv input/dataset/train_lidar input/dataset/lidar\n```",
    "650723": "Thanks man. You're a life savor"
  },
  "source": "meta"
}