Browse Source

fixed bug in info callback

refactoring
sp 11 months ago
parent
commit
62fddc1e27
  1. 2
      examples/shields/rl/sb3utils.py

2
examples/shields/rl/sb3utils.py

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