-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
bugSomething isn’t working correctlySomething isn’t working correctlydependenciesConcerns about external packages, libraries, or versioningConcerns about external packages, libraries, or versioning
Description
System Info
As suggested in the title, the lerobot requires transformers higher than 4.48(no upper bound yet). But the following problem will occur when running with the latest transformers version 4.52.3.
File "/home/jiaye.yang/.local/share/mamba/envs/il/lib/python3.11/site-packages/lerobot/common/policies/pi0/modeling_pi0.py", line 319, in forward
losses = self.model.forward(images, img_masks, lang_tokens, lang_masks, state, actions, noise, time)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jiaye.yang/.local/share/mamba/envs/il/lib/python3.11/site-packages/lerobot/common/policies/pi0/modeling_pi0.py", line 625, in forward
prefix_embs, prefix_pad_masks, prefix_att_masks = self.embed_prefix(
^^^^^^^^^^^^^^^^^^
File "/home/jiaye.yang/.local/share/mamba/envs/il/lib/python3.11/site-packages/lerobot/common/policies/pi0/modeling_pi0.py", line 522, in embed_prefix
img_emb = self.paligemma_with_expert.embed_image(img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jiaye.yang/.local/share/mamba/envs/il/lib/python3.11/site-packages/lerobot/common/policies/pi0/paligemma_with_expert.py", line 220, in embed_image
return self.paligemma.get_image_features(image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jiaye.yang/.local/share/mamba/envs/il/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1940, in __getattr__
raise AttributeError(
AttributeError: 'PaliGemmaForConditionalGeneration' object has no attribute 'get_image_features'
A further investigation reveal that the relied interface of `get_image_features` from `PaliGemmaForConditionalGeneration` has been removed in this latest version.
https://github.com/huggingface/transformers/blob/v4.52.3/src/transformers/models/paligemma/modeling_paligemma.pyInformation
- One of the scripts in the examples/ folder of LeRobot
- My own task or dataset (give details below)
Reproduction
- start a new environment
- install lerobot and latest transformers (I think will be by default)
- try to inference or finetune with pi0
Expected behavior
works.
yuzihaowashu
Metadata
Metadata
Assignees
Labels
bugSomething isn’t working correctlySomething isn’t working correctlydependenciesConcerns about external packages, libraries, or versioningConcerns about external packages, libraries, or versioning