carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.57k stars 3.73k forks source link

Allow custom semantic segmentation tags #1587

Open nsubiron opened 5 years ago

nsubiron commented 5 years ago

Our current semantic segmentation tags are limited to 12 classes. The system works by checking the file path of every mesh, and if the 3rd folder matches the name of one of our tags we tag it.

It would be nice if this was based on some config file (JSON?) that it's loaded at runtime, perhaps using regular expressions to match the path and filename.

germanros1987 commented 4 years ago

@marcgpuig do we have a limitation of 12 classes? My understanding is that we could have an arbitrary number of classes. Could you please confirm?

marcgpuig commented 4 years ago

@germanros1987 no, we support a total of 255 possible classes limited by UE4. However, these classes are limited in compile time, so no more classes can be created nor modified from the PythonAPI, and I think this is what the issue is referring to.