## 环境
- 脚本: `scripts/train_pytorch.py`
- 运行方式: `torchrun --standalone --nnodes=1 --nproc_per_node=4 scripts/train_pytorch.py <config> --exp_name <name>`
- 触发位置: 首次 batch 时向 wandb 记录 sample images 的代码块
## 现象
```text
ValueError: Un-supported shape for image conversion [224, 9, 224]
发生在
wandb.Image(img_concatenated)。原因
[B, H, W, C](与 JAX/LeRobot 一致)。img[i](实际为[H, W, C])做了permute(1, 2, 0),得到[224, 3, 224],再沿 dim=1 拼接 3 个视角得到[224, 9, 224],wandb 无法识别。建议修复
frame.shape[0] == 3视为 NCHW,做permute(1, 2, 0)转为 NHWC;否则按已是 NHWC 处理。cat,得到[H, W_total, 3]再传给wandb.Image。[-1, 1],先线性缩放到[0, 1]再传入,避免 wandb 的数值范围警告。