You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then acquired pictures and robot state from a simulator (Simpler+Maniskill, to be precise, but I don't think this matters much?), and then packed them into a dictionary to feed to select_action
I then got
Traceback (most recent call last):
File "/scratch/zf540/pi0/aqua-vla/experiments/envs/simpler/test_ckpts_in_simpler.py", line 222, in <module>
eval_simpler()
File "/scratch/zf540/pi0/aqua-vla/.venv/lib/python3.11/site-packages/draccus/argparsing.py", line 225, in wrapper_inner
response = fn(cfg, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/aqua-vla/experiments/envs/simpler/test_ckpts_in_simpler.py", line 174, in eval_simpler
action = policy.select_action(observation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/aqua-vla/.venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/lerobot/lerobot/common/policies/pi0/modeling_pi0.py", line 276, in select_action
batch = self.normalize_inputs(batch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/aqua-vla/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/aqua-vla/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/aqua-vla/.venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/scratch/zf540/pi0/lerobot/lerobot/common/policies/normalize.py", line 155, in forward
assert not torch.isinf(mean).any(), _no_stats_error_str("mean")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: `mean` is infinity. You should either initialize with `stats` as an argument, or use a pretrained model.
From reading issue #293 I thought if you load a model with from_pretrained, then you do not need to specify dataset stats?
Expected behavior
I expect to see some action output from the model. Doesn't have to be a correct rollout, but I want to see the pipeline working so I can tweak it further.
The text was updated successfully, but these errors were encountered:
System Info
Information
Reproduction
First of all, thanks for open-sourcing the amazing pi0 codebase.
To reproduce my error
first instantiate the policy via
policy = PI0Policy.from_pretrained("lerobot/pi0")
then, modify the config.json it downloaded to replace the empty
input features
withselect_action
I then got
From reading issue #293 I thought if you load a model with
from_pretrained
, then you do not need to specify dataset stats?Expected behavior
I expect to see some action output from the model. Doesn't have to be a correct rollout, but I want to see the pipeline working so I can tweak it further.
The text was updated successfully, but these errors were encountered: