Download patches/robodojo-layout-root.patch from vietnhat/robodojo-hard-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/datasets/vietnhat/robodojo-hard-dev/resolve/main/patches/robodojo-layout-root.patch
- Command line
-
hf download hf://datasets/vietnhat/robodojo-hard-dev/patches/robodojo-layout-root.patch
-
curl -L -o robodojo-layout-root.patch https://huggingface.co/datasets/vietnhat/robodojo-hard-dev/resolve/main/patches/robodojo-layout-root.patch
1.14 kB
| Ours (PROD-104): ROBODOJO_LAYOUT_ROOT=<dir> makes the seed manager read layouts from <dir>/<benchmark>/<env cfg>/<seed>/ | |
| instead of Assets/Eval_Layout. Our launchers point it at dev_suite/layouts for every run but the final one (FINAL_EVAL=1), | |
| so a dev run cannot even find the eval layouts. Without the variable RoboDojo behaves as before. | |
| diff --git a/env/seed_manager/seed_manager.py b/env/seed_manager/seed_manager.py | |
| --- a/env/seed_manager/seed_manager.py | |
| +++ b/env/seed_manager/seed_manager.py | |
| class SeedManager: | |
| abandoned_layout_ids: Iterable[int] | None = None, | |
| ): | |
| self.eval_seed = self.config.get("seed", 0) | |
| - layout_dir = Path(ASSETS_PATH, "Eval_Layout", BENCHMARK, self.config_name, str(self.eval_seed)) | |
| + layout_root = os.environ.get("ROBODOJO_LAYOUT_ROOT") or Path(ASSETS_PATH, "Eval_Layout") | |
| + layout_dir = Path(layout_root, BENCHMARK, self.config_name, str(self.eval_seed)) | |
| pattern = re.compile(rf"{re.escape(self.task_name)}_\d+\.json") | |
| matching_files = sorted( | |
| [p for p in layout_dir.iterdir() if pattern.fullmatch(p.name)], | |