FREEDOM, added back the optimization loop code in learner_server.py

Ran experiment with pushcube env from maniskill. The learning seem to work.

Co-authored-by: Adil Zouitine <adilzouitinegm@gmail.com>
This commit is contained in:
Michel Aractingi
2025-01-28 17:25:49 +00:00
parent 508f5d1407
commit 2ae657f568
3 changed files with 85 additions and 80 deletions

View File

@@ -259,7 +259,7 @@ class Logger:
if k == custom_step_key:
continue
if self._wandb_custom_step_key is not None:
if self._wandb_custom_step_key is not None and custom_step_key is not None:
# NOTE: Log the metric with the custom step key.
value_custom_step_key = d[custom_step_key]
self._wandb.log({f"{mode}/{k}": v, self._wandb_custom_step_key: value_custom_step_key})