mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-26 11:16:00 +00:00
fix(vlabench): import robots/tasks to populate VLABench registry
VLABench uses decorator-based registration (@register.add_robot, @register.add_task). Importing only VLABench.envs doesn't trigger the robot/task module imports, so the registry is empty at load_env time. Import VLABench.robots and VLABench.tasks explicitly. Made-with: Cursor
This commit is contained in:
@@ -189,6 +189,8 @@ class VLABenchEnv(gym.Env):
|
||||
if self._env is not None:
|
||||
return
|
||||
|
||||
import VLABench.robots # noqa: F401 # type: ignore[import-untyped]
|
||||
import VLABench.tasks # noqa: F401 # type: ignore[import-untyped]
|
||||
from VLABench.envs import load_env # type: ignore[import-untyped]
|
||||
|
||||
h, w = self.render_resolution
|
||||
|
||||
Reference in New Issue
Block a user