Browse Source

fixed typo in info callback

refactoring
sp 10 months ago
parent
commit
775341c3af
  1. 2
      examples/shields/rl/sb3utils.py

2
examples/shields/rl/sb3utils.py

@ -113,6 +113,6 @@ class InfoCallback(BaseCallback):
self.logger.record("info/sum_ran_into_lava", self.sum_lava) self.logger.record("info/sum_ran_into_lava", self.sum_lava)
if "collision" in infos: if "collision" in infos:
if infos["collision"]: if infos["collision"]:
self.sum_collision += 1
self.sum_collisions += 1
self.logger.record("info/sum_collision", self.sum_collisions) self.logger.record("info/sum_collision", self.sum_collisions)
return True return True
Loading…
Cancel
Save