mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +00:00
fix(modeling pi0): nit warning message
This commit is contained in:
@@ -520,7 +520,7 @@ class PI05Pytorch(nn.Module): # see openpi `PI0Pytorch`
|
|||||||
msg = """transformers_replace is not installed correctly.
|
msg = """transformers_replace is not installed correctly.
|
||||||
Please install it with `pip install transformers==4.53.2`
|
Please install it with `pip install transformers==4.53.2`
|
||||||
and `cp -r ./src/lerobot/policies/pi0_openpi/transformers_replace/* \
|
and `cp -r ./src/lerobot/policies/pi0_openpi/transformers_replace/* \
|
||||||
$(python -c "import transformers, os; print(os.path.dirname(transformers.__file__))")"""
|
$(python -c "import transformers, os; print(os.path.dirname(transformers.__file__))")`"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from transformers.models.siglip import check
|
from transformers.models.siglip import check
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ class PI0Pytorch(nn.Module): # see openpi `PI0Pytorch`
|
|||||||
msg = """transformers_replace is not installed correctly.
|
msg = """transformers_replace is not installed correctly.
|
||||||
Please install it with `pip install transformers==4.53.2`
|
Please install it with `pip install transformers==4.53.2`
|
||||||
and `cp -r ./src/lerobot/policies/pi0_openpi/transformers_replace/* \
|
and `cp -r ./src/lerobot/policies/pi0_openpi/transformers_replace/* \
|
||||||
$(python -c "import transformers, os; print(os.path.dirname(transformers.__file__))")"""
|
$(python -c "import transformers, os; print(os.path.dirname(transformers.__file__))")`"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from transformers.models.siglip import check
|
from transformers.models.siglip import check
|
||||||
|
|||||||
Reference in New Issue
Block a user