Update lerobot/scripts/eval.py
Co-authored-by: Remi <re.cadene@gmail.com>
This commit is contained in:
parent
fedfa60d6e
commit
f4d3a70e1f
|
@ -156,8 +156,8 @@ def rollout(
|
|||
key: observation[key].to(device, non_blocking=device.type == "cuda") for key in observation
|
||||
}
|
||||
|
||||
# Infer "task" from envs. Works with AsyncVectorEnv.
|
||||
observation = infer_envs_task(env, observation)
|
||||
# Infer "task" from attributes of environments. Works with AsyncVectorEnv.
|
||||
observation = addd_envs_task(env, observation)
|
||||
|
||||
with torch.inference_mode():
|
||||
action = policy.select_action(observation)
|
||||
|
|
Loading…
Reference in New Issue