mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-26 11:16:00 +00:00
fix(libero-plus): stop touching pyproject + uv.lock
The fast-tests job was rejecting the branch because pyproject.toml had a [libero_plus] extra whose git dep wasn't represented in uv.lock. The Docker image no longer needs the extra — it clones LIBERO-plus directly and PYTHONPATH-shadows hf-libero. Drop [libero_plus] from pyproject and restore pyproject.toml + uv.lock to exactly what's on origin/main, so `uv sync --locked --extra test` is a no-op for this PR. Also repoint the doc/CI/env comments that still mentioned the extra at the Docker install path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -312,7 +312,8 @@ jobs:
|
|||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|
||||||
# ── LIBERO-plus ───────────────────────────────────────────────────────────
|
# ── LIBERO-plus ───────────────────────────────────────────────────────────
|
||||||
# Isolated image: lerobot[libero_plus] only (LIBERO-plus from GitHub, mujoco)
|
# Isolated image: LIBERO-plus fork cloned into /home/user_lerobot on top of
|
||||||
|
# huggingface/lerobot-gpu (see docker/Dockerfile.benchmark.libero_plus).
|
||||||
libero-plus-integration-test:
|
libero-plus-integration-test:
|
||||||
name: LIBERO-plus — build image + 1-episode eval
|
name: LIBERO-plus — build image + 1-episode eval
|
||||||
runs-on:
|
runs-on:
|
||||||
|
|||||||
@@ -43,10 +43,13 @@ sudo apt install libexpat1 libfontconfig1-dev libmagickwand-dev
|
|||||||
### Python package
|
### Python package
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -e ".[libero_plus]"
|
pip install -e ".[libero]" "robosuite==1.4.1" bddl easydict mujoco wand scikit-image gym
|
||||||
|
git clone https://github.com/sylvestf/LIBERO-plus.git
|
||||||
|
cd LIBERO-plus && pip install --no-deps -e .
|
||||||
|
pip uninstall -y hf-libero # so `import libero` resolves to the fork
|
||||||
```
|
```
|
||||||
|
|
||||||
This installs LIBERO-plus directly from its GitHub repository. Because MuJoCo is required, only Linux is supported.
|
LIBERO-plus is installed from its GitHub fork rather than a pyproject extra — the fork ships as a namespace package that pip can't handle, so it must be cloned and added to `PYTHONPATH`. See `docker/Dockerfile.benchmark.libero_plus` for the canonical install. MuJoCo is required, so only Linux is supported.
|
||||||
|
|
||||||
<Tip>
|
<Tip>
|
||||||
Set the MuJoCo rendering backend before running evaluation:
|
Set the MuJoCo rendering backend before running evaluation:
|
||||||
|
|||||||
@@ -210,12 +210,6 @@ video_benchmark = ["scikit-image>=0.23.2,<0.26.0", "pandas>=2.2.2,<2.4.0"]
|
|||||||
aloha = ["lerobot[dataset]", "gym-aloha>=0.1.2,<0.2.0", "lerobot[scipy-dep]"]
|
aloha = ["lerobot[dataset]", "gym-aloha>=0.1.2,<0.2.0", "lerobot[scipy-dep]"]
|
||||||
pusht = ["lerobot[dataset]", "gym-pusht>=0.1.5,<0.2.0", "pymunk>=6.6.0,<7.0.0"] # TODO: Fix pymunk version in gym-pusht instead
|
pusht = ["lerobot[dataset]", "gym-pusht>=0.1.5,<0.2.0", "pymunk>=6.6.0,<7.0.0"] # TODO: Fix pymunk version in gym-pusht instead
|
||||||
libero = ["lerobot[dataset]", "lerobot[transformers-dep]", "hf-libero>=0.1.3,<0.2.0; sys_platform == 'linux'", "lerobot[scipy-dep]"]
|
libero = ["lerobot[dataset]", "lerobot[transformers-dep]", "hf-libero>=0.1.3,<0.2.0; sys_platform == 'linux'", "lerobot[scipy-dep]"]
|
||||||
libero_plus = [
|
|
||||||
"lerobot[dataset]",
|
|
||||||
"lerobot[transformers-dep]",
|
|
||||||
"libero @ git+https://github.com/sylvestf/LIBERO-plus.git@main ; sys_platform == 'linux'",
|
|
||||||
"lerobot[scipy-dep]",
|
|
||||||
]
|
|
||||||
metaworld = ["lerobot[dataset]", "metaworld==3.0.0", "lerobot[scipy-dep]"]
|
metaworld = ["lerobot[dataset]", "metaworld==3.0.0", "lerobot[scipy-dep]"]
|
||||||
|
|
||||||
# All
|
# All
|
||||||
|
|||||||
@@ -588,9 +588,9 @@ class LiberoPlusEnv(LiberoEnv):
|
|||||||
The gym interface is identical to LIBERO so this class reuses ``LiberoEnv``
|
The gym interface is identical to LIBERO so this class reuses ``LiberoEnv``
|
||||||
entirely — only the registered name and default task suite differ.
|
entirely — only the registered name and default task suite differ.
|
||||||
|
|
||||||
Install::
|
Install: see docker/Dockerfile.benchmark.libero_plus — LIBERO-plus ships
|
||||||
|
as a namespace package from a git fork and must be cloned + PYTHONPATH'd
|
||||||
pip install -e ".[libero_plus]"
|
rather than installed as a pyproject extra.
|
||||||
|
|
||||||
See Also:
|
See Also:
|
||||||
https://github.com/sylvestf/LIBERO-plus
|
https://github.com/sylvestf/LIBERO-plus
|
||||||
|
|||||||
Reference in New Issue
Block a user