Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Mar 26, 2024
1 parent 28dddc7 commit 4006c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadrive/component/sensors/semantic_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _setup_effect(self):
)
else:

if label == "PEDESTRIAN":
if label == Semantics.PEDESTRIAN.label:
# PZH: This is a workaround fix to make pedestrians animated.
cam.setTagState(
label,
Expand All @@ -55,7 +55,7 @@ def _setup_effect(self):
cam.setTagState(
label,
RenderState.make(
# ShaderAttrib.makeOff(),
ShaderAttrib.makeOff(),
LightAttrib.makeAllOff(),
TextureAttrib.makeOff(),
ColorAttrib.makeFlat((c[0] / 255, c[1] / 255, c[2] / 255, 1)),
Expand Down

0 comments on commit 4006c44

Please sign in to comment.