clynamen / nuscenes2bag

nuScenes dataset to rosbag format
144 stars 34 forks source link

Why is the resulting bag so large #10

Open EricWiener opened 3 years ago

EricWiener commented 3 years ago

Hi,

Thank you for all your work on this package. I used nuscenes2bag to convert nuscenes-mini and it went from being 5 GB to around 62 GB. Is this normal and if so, would you mind explaining why the output is so much larger?

Thanks! Eric

nuoboy commented 3 years ago

Same issue here. The resulting bags are so much larger than the raw data. Especially the camera images. @EricWiener Did you find any solution for this?

EricWiener commented 3 years ago

@naharamal, unfortunately, did not find a solution yet

lukasstaecker commented 3 years ago

Hi, if anyone else is struggling with this issue, check out my fork. I added an option "-c" so that compressed images will be added to the rosbag instead of raw images. This will reduce the generated file size by around 10x and also generate the file faster. However, you will need to subscribe to e.g. /cam_front/compressed and use sensor_msgs/CompressedImage.

EricWiener commented 3 years ago

@lukasstaecker thanks so much for sharing this!