mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-17 08:17:02 +00:00
fixing wm_loss not propagating
This commit is contained in:
committed by
Maximellerbach
parent
7368a0085a
commit
ea535ad98d
@@ -448,8 +448,8 @@ class VLAJEPAPolicy(PreTrainedPolicy):
|
||||
logs["action_loss"] = native_output["action_loss"].detach().item()
|
||||
|
||||
if "wm_loss" in native_output:
|
||||
wm_loss = native_output["wm_loss"]
|
||||
logs["wm_loss"] = wm_loss.detach().item()
|
||||
total_loss = total_loss + native_output["wm_loss"]
|
||||
logs["wm_loss"] = native_output["wm_loss"].detach().item()
|
||||
|
||||
logs["loss"] = (
|
||||
total_loss.detach().item()
|
||||
|
||||
Reference in New Issue
Block a user