From 5a9f8fefe95d98fc24bac183fc5b835bb9a93119 Mon Sep 17 00:00:00 2001 From: rajuptvs Date: Thu, 26 Jan 2023 01:22:51 -0800 Subject: [PATCH] updated the save command for Semantic Segmentation (#6029) * Fix a typo in setting the max brake From self._max_steer to self._max_brake * updated the save command for Semantic Segmentation carla.cityScapesPalette is given to convert in this documentation, but getting error when trying to save file using that conversion, currently in documentation: raw_image.save_to_disk("path/to/save/converted/image",carla.cityScapesPalette) [not working] but working with the below command: raw_image.save_to_disk("path/to/save/converted/image",carla.ColorConverter.cityScapesPalette) [working] Co-authored-by: kykim0 Co-authored-by: bernat --- Docs/ref_sensors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/ref_sensors.md b/Docs/ref_sensors.md index 73458160b..4d23298bf 100644 --- a/Docs/ref_sensors.md +++ b/Docs/ref_sensors.md @@ -709,7 +709,7 @@ This raw [carla.Image](python_api.md#carla.Image) can be stored and converted it ```py ... -raw_image.save_to_disk("path/to/save/converted/image",carla.cityScapesPalette) +raw_image.save_to_disk("path/to/save/converted/image",carla.ColorConverter.cityScapesPalette) ``` The following tags are currently available: