carla icon indicating copy to clipboard operation
carla copied to clipboard

The semantic segmentation image has lots of black points/pixels

Open JinRanYAO opened this issue 3 years ago • 25 comments

Hello, I save the semantic segmentation image to the disk. but the image has lots of black points/pixels, for example: 000928 Could you tell me how to fix it?

It is the code that I save the semantic segmentation image to the disk:

blueprint_library = client.get_world().get_blueprint_library()
camera_bp = blueprint_library.find('sensor.camera.semantic_segmentation')
camera_transform = carla.Transform(carla.Location(x=1.5, z=2.4))
camera = client.get_world().spawn_actor(camera_bp, camera_transform, attach_to=world.player)

cc = carla.ColorConverter.CityScapesPalette
camera.listen(lambda image: image.save_to_disk('segmentation_image/%06d.png' % image.frame, cc))

Look forward to your reply!

JinRanYAO avatar Jun 22 '21 08:06 JinRanYAO

Possibly related to Issue #3865 , especially with newer GPUs

  1. Which version of CARLA?
  2. Do artifacts appear in the same place with an RGB camera image?
  3. Did you try a different renderer?

qhaas avatar Jun 22 '21 12:06 qhaas

Possibly related to Issue #3865 , especially with newer GPUs

1. Which version of CARLA?

2. Do artifacts appear in the same place with an RGB camera image?

3. Did you try a [different renderer](https://carla.readthedocs.io/en/0.9.11/adv_rendering_options/#vulkan-vs-opengl)?

Hello, thank you for your reply. It's indeed very similar to Issue #3865 , And I use a new GPU RTX 3090.

  1. I use CARLA 0.9.11, UnrealEngine 4.24.
  2. It happens with a raw RGB camera image too, but it looks like there are fewer black artifacts.
  3. I try rendering and no rendering, it happens both the settings, So is it a bug with RTX 3090? Could I fix it now and how could I fix it? Look forward to your reply!

JinRanYAO avatar Jun 22 '21 13:06 JinRanYAO

All my GPUs are too old for this issue to manifest, so I can't say for certain! But, if they think it is an UnrealEngine glitch and not a CARLA glitch, you might want to ask over at the unrealengine answershub or attempt to compile from source using the unofficial CARLA 0.9.11 patch that makes it work with UE 4.25.x (unclear if updating to UE 4.25.x is enough since the bug report only reports a fix in UE 4.26.x).

qhaas avatar Jun 22 '21 14:06 qhaas

All my GPUs are too old for this issue to manifest, so I can't say for certain! But, if they think it is an UnrealEngine glitch and not a CARLA glitch, you might want to ask over at the unrealengine answershub or attempt to compile from source using the unofficial CARLA 0.9.11 patch that makes it work with UE 4.25.x (unclear if updating to UE 4.25.x is enough since the bug report only reports a fix in UE 4.26.x).

OK, I will try it, thank you for your suggestion!

JinRanYAO avatar Jun 23 '21 00:06 JinRanYAO

You can try adding '-opengl' to the startup command

lookingworld avatar Jun 28 '21 08:06 lookingworld

You can try adding '-opengl' to the startup command

Thank you for your reply, I will try it!

JinRanYAO avatar Jun 28 '21 10:06 JinRanYAO

You can try adding '-opengl' to the startup command

That has its own issues in certain weather conditions, see Issue #3377

qhaas avatar Jun 28 '21 11:06 qhaas

Hello @JinRanYAO, Sorry for the late response. I have not been able to reproduce this. Can you test it in the new 0.9.12 to check if it is still happening?

DSantosO avatar Aug 04 '21 08:08 DSantosO

@DSantosO , I'm seeing the following artifacts with a standard RBG camera in CARLA 0.9.12 running headless vulkan, possibly related, investigating the possibility it is an artifact of running on an A100 GPU (driver 460.91.03) + Ubuntu 20.04, will test later with a Tesla V100 GPU. A100 Screenshot: A100

UPDATE: This does not occur on a GeForce GTX TITAN Black with nvidia driver 470.57.02; suspect either a driver bug with 460.91.03 or some kind of weird A100 specific issue (can't narrow it down further because I don't have root / sudo on the A100 system to upgrade the driver).

UPDATE2: This does not occur on a Tesla V100 with nvidia driver 460.91.03 + Ubuntu 20.04, something about Ampere? V100 Screenshot: v100

UPDATE3: This could be a hardware issue, when I use the -graphicsadapter=X flag to force CARLA to render on each of the 8 A100 GPUs in the DGX A100, only 3/8 display the artifacts

qhaas avatar Aug 14 '21 14:08 qhaas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 10:01 stale[bot]

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Jan 09 '22 10:01 lookingworld

I have similar problems with Carla0.9.10.1 in Ubuntu 20.04 and a RTX3060TI (Driver Version: 510.47.03)

2335118

2682818

Launching the Server with -opengl seems to solve this problem: 946

Carla0.9.13 does not have these issues as well: 13568

ll7 avatar Feb 25 '22 11:02 ll7

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Feb 25 '22 11:02 lookingworld

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 06:04 stale[bot]

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Apr 28 '22 06:04 lookingworld

I have a similar issue with A100 +Ubuntu 20.04 I used the Carla 0.9.13

swsamleo avatar Nov 10 '22 02:11 swsamleo

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Nov 10 '22 02:11 lookingworld

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 01 '23 23:06 stale[bot]

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Jun 01 '23 23:06 lookingworld

I have a similar issue with A100 and Ubuntu 20.04. I used the Carla 0.9.11

airobotis avatar Feb 05 '24 23:02 airobotis

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Feb 05 '24 23:02 lookingworld

same issue GPU:A100 carla:0.9.10 Vulkan. When use opengl, no artifacts.

buaazeus avatar Feb 22 '24 07:02 buaazeus

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar Feb 22 '24 07:02 lookingworld

Same Issue GPU: A100 Carla: 0.9.14

Any conclusive solutions yet?

cuijiaxun avatar May 01 '24 21:05 cuijiaxun

您好     您的邮件我已收到,感谢!祝好

lookingworld avatar May 01 '24 21:05 lookingworld