File size: 1,136 Bytes
98a23ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
@@ -30,7 +30,8 @@ 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)],