openpi π 0.5复现 实战
·
核心架构与技术特点
关键性能与应用场景
开源资源与社区支持
挑战与未来方向
总结
1 克隆此仓库时,请务必更新子模块: 用我的这个下载方式 如果你直接用官方下载更新不完善,如果你没配好公钥
git clone --recurse-submodules git@github.com:Physical-Intelligence/openpi.git
# Or if you already cloned the repo:
# git submodule update --init --recursive
2 -我们使用uv来管理 Python 依赖项。请参阅uv 安装说明进行设置。uv 安装完成后,运行以下命令来设置环境:
2-1 安装 uv 这是官方 安装方式 ,我在 featurize 上没有安装成功
curl -LsSf https://astral.sh/uv/install.sh | sh
2-2 换一种安装方式
wget https://github.com/astral-sh/uv/releases/download/0.9.7/uv-x86_64-unknown-linux-gnu.tar.gz
# 解压
tar -zxf uv-x86_64-unknown-linux-gnu.tar.gz
# 进入解压后的目录(通常是单个二进制文件 `uv`)
cd uv-x86_64-unknown-linux-gnu
# 移动到 PATH 目录(确保该目录在你的环境变量中)
mv uv /usr/local/bin/ # 若没有 .cargo/bin,可替换为 /usr/local/bin/
2-3 更新库文件
GIT_LFS_SKIP_SMUDGE=1 uv sync
GIT_LFS_SKIP_SMUDGE=1 uv pip install -e .
2-4 新建文件 vi infer.py
from openpi.training import config as _config
from openpi.policies import policy_config
from openpi.shared import download
config = _config.get_config("pi05_droid")
checkpoint_dir = download.maybe_download("gs://openpi-assets/checkpoints/pi05_droid")
# Create a trained policy.
policy = policy_config.create_trained_policy(config, checkpoint_dir)
# Run inference on a dummy example.
example = {
"observation/exterior_image_1_left": ...,
"observation/wrist_image_left": ...,
...
"prompt": "pick up the fork"
}
action_chunk = policy.infer(example)["actions"]
uv run python 打开 python shell

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)