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