Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong labels due to new Semantic Segmentation Classes #11

Open
KevinLADLee opened this issue Nov 29, 2023 · 1 comment
Open

Wrong labels due to new Semantic Segmentation Classes #11

KevinLADLee opened this issue Nov 29, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KevinLADLee
Copy link
Owner

image

Due to changes after 0.9.14, 'vehicle' type not work, which may cause wrong labels.

@KevinLADLee KevinLADLee added the bug Something isn't working label Nov 29, 2023
@KevinLADLee
Copy link
Owner Author

def save_to_disk(self, frame_id, timestamp, debug=False):
# TODO: Save all object bbox in world
# Frame Timestamp CityObjectLabel carla_id location rotation box_location box_extent
object_labels = []
object_labels += self.get_env_objects_labels(frame_id, timestamp, carla.CityObjectLabel.Vehicles)
object_labels += self.get_env_objects_labels(frame_id, timestamp, carla.CityObjectLabel.Pedestrians)
carla_actors = self.carla_world.get_actors()
for carla_actor in carla_actors:
if carla_actor.type_id.startswith('vehicle') \
or carla_actor.type_id.startswith('walker'):
transform = carla_transform_to_transform(carla_actor.get_transform())
bbox = carla_bbox_to_bbox(carla_actor.bounding_box)
if carla_actor.type_id.startswith('walker'):
label_type = 'pedestrian'
else:
label_type = 'vehicle'
object_labels.append(ObjectLabel(frame=frame_id,
timestamp=timestamp,
label_type=label_type,
carla_id=carla_actor.id,
transform=transform,
bounding_box=bbox))

@KevinLADLee KevinLADLee self-assigned this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant