Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerobot/common/policies/smolvla/modeling_smolvla.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def forward(self, batch: dict[str, Tensor], noise=None, time=None) -> dict[str,
# For backward pass
loss = losses.mean()
# For backward pass
loss_dict["loss"] = loss
loss_dict["loss"] = loss.item()
return loss, loss_dict

def prepare_images(self, batch):
Expand Down
2 changes: 1 addition & 1 deletion lerobot/common/utils/wandb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def log_dict(self, d: dict, step: int, mode: str = "train"):
for k, v in d.items():
if not isinstance(v, (int, float, str)):
logging.warning(
f'WandB logging of key "{k}" was ignored as its type is not handled by this wrapper.'
f'WandB logging of key "{k}" was ignored as its type "{type(v)}" is not handled by this wrapper.'
)
continue
self._wandb.log({f"{mode}/{k}": v}, step=step)
Expand Down
Loading