tarzanagh commited on
Commit
7e2f29a
·
1 Parent(s): eb8839b

Maze2D: GlobMP without wall blocks (same information as the baselines)

Browse files

GMP_NOWALLS=1 ./run.sh: no maze-wall blocks; a steering bound keeps every planned position within 0.2 maze units of the diffusion estimate instead (globmp_mpc.py: GMP_TUBE; widened where the estimate lies inside a keep-out, doubled when a plan's first solve is infeasible). 10 seeds x 10 episodes per map: SR 1.000 on both maps, score 1.613 (broad) and 1.617 (narrow), every plan clear of the keep-outs at every t; 39 and 19 of 100 plans cross a wall. results/globmp_nowalls holds the 200 episodes; check.py summarizes both folders. The default run is unchanged.

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. applications/maze2d/direct_globmp/README.md +17 -0
  2. applications/maze2d/direct_globmp/__pycache__/check.cpython-310.pyc +0 -0
  3. applications/maze2d/direct_globmp/__pycache__/globmp_mpc.cpython-310.pyc +0 -0
  4. applications/maze2d/direct_globmp/check.py +9 -8
  5. applications/maze2d/direct_globmp/globmp_mpc.py +51 -3
  6. applications/maze2d/direct_globmp/results/README.md +4 -0
  7. applications/maze2d/direct_globmp/results/episodes_nowalls.csv +201 -0
  8. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0.plans.jsonl +10 -0
  9. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/predicted.png +0 -0
  10. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/rollout.png +0 -0
  11. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/trajectories.npz +3 -0
  12. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/predicted.png +0 -0
  13. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/rollout.png +0 -0
  14. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/trajectories.npz +3 -0
  15. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/predicted.png +0 -0
  16. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/rollout.png +0 -0
  17. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/trajectories.npz +3 -0
  18. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/predicted.png +0 -0
  19. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/rollout.png +0 -0
  20. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/trajectories.npz +3 -0
  21. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/predicted.png +0 -0
  22. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/rollout.png +0 -0
  23. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/trajectories.npz +3 -0
  24. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/predicted.png +0 -0
  25. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/rollout.png +0 -0
  26. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/trajectories.npz +3 -0
  27. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/predicted.png +0 -0
  28. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/rollout.png +0 -0
  29. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/trajectories.npz +3 -0
  30. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/predicted.png +0 -0
  31. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/rollout.png +0 -0
  32. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/trajectories.npz +3 -0
  33. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/predicted.png +0 -0
  34. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/rollout.png +0 -0
  35. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/trajectories.npz +3 -0
  36. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/predicted.png +0 -0
  37. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/rollout.png +0 -0
  38. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/trajectories.npz +3 -0
  39. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/config.yaml +72 -0
  40. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/statistics.csv +11 -0
  41. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/summary_statistics.txt +119 -0
  42. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1.plans.jsonl +10 -0
  43. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/predicted.png +0 -0
  44. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/rollout.png +0 -0
  45. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/trajectories.npz +3 -0
  46. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/predicted.png +0 -0
  47. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/rollout.png +0 -0
  48. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/trajectories.npz +3 -0
  49. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/2/predicted.png +0 -0
  50. applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/2/rollout.png +0 -0
applications/maze2d/direct_globmp/README.md CHANGED
@@ -55,6 +55,7 @@ The following hold at every t, not only at the 384 states:
55
  ./run.sh narrow 0 0
56
  for s in 1 2 3 4 5 6 7 8 9; do ./run.sh broad $s 0; ./run.sh narrow $s 0; done
57
  python check.py # summary + independent checks (keep-outs, walls, dynamics) over all seeds found
 
58
  ```
59
 
60
  `run.sh` uses 4 CPU threads per run (`GMP_THREADS`). The planning time is wall clock; pin cores when comparing times.
@@ -69,6 +70,8 @@ Seeds 0-9, 10 episodes each. All 200 episodes are on Hugging Face under `results
69
  | broad | GlobMP | 100 | **1.000** | **0.0** | **1.765 ± 0.003** | **5.7 ± 2.4** | **1.000** | **0.0004** | **0.0032** |
70
  | narrow | DiRecT | 10 | 1.000 | 0.0 | 1.615 | 16.0 | 1.000 | 0.0024 | 0.0084 |
71
  | narrow | GlobMP | 100 | **1.000** | **0.0** | **1.757 ± 0.004** | **7.4 ± 0.8** | **1.000** | **0.0005** | **0.0041** |
 
 
72
 
73
  **Checks** (`check.py`, on all 200 plans and rollouts):
74
  - Minimum keep-out level along the plans is 1.394 (broad) and 1.375 (narrow).
@@ -79,6 +82,20 @@ Seeds 0-9, 10 episodes each. All 200 episodes are on Hugging Face under `results
79
  **Score.** The robot reaches the goal about 37 steps earlier than with plans that follow the diffusion estimate. It
80
  therefore spends about 9% more of the 800 steps at the goal.
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  **Notes for reading the table**
83
  - **Plan margin.** Broad plans hold 0.39 at every t (100/100). Narrow plans mostly hold 0.37 (89/100), against
84
  DiRecT's 0.40 at its 384 samples.
 
55
  ./run.sh narrow 0 0
56
  for s in 1 2 3 4 5 6 7 8 9; do ./run.sh broad $s 0; ./run.sh narrow $s 0; done
57
  python check.py # summary + independent checks (keep-outs, walls, dynamics) over all seeds found
58
+ GMP_NOWALLS=1 ./run.sh broad 0 0 # the rows "no wall blocks" (below); output under runs/globmp_nowalls
59
  ```
60
 
61
  `run.sh` uses 4 CPU threads per run (`GMP_THREADS`). The planning time is wall clock; pin cores when comparing times.
 
70
  | broad | GlobMP | 100 | **1.000** | **0.0** | **1.765 ± 0.003** | **5.7 ± 2.4** | **1.000** | **0.0004** | **0.0032** |
71
  | narrow | DiRecT | 10 | 1.000 | 0.0 | 1.615 | 16.0 | 1.000 | 0.0024 | 0.0084 |
72
  | narrow | GlobMP | 100 | **1.000** | **0.0** | **1.757 ± 0.004** | **7.4 ± 0.8** | **1.000** | **0.0005** | **0.0041** |
73
+ | broad | GlobMP, no wall blocks | 100 | 1.000 | 0.0 | 1.613 ± 0.010 | 9.2 ± 8.9 | 1.000 | 0.0018 | 0.0067 |
74
+ | narrow | GlobMP, no wall blocks | 100 | 1.000 | 0.0 | 1.617 ± 0.006 | 13.2 ± 6.8 | 1.000 | 0.0018 | 0.0069 |
75
 
76
  **Checks** (`check.py`, on all 200 plans and rollouts):
77
  - Minimum keep-out level along the plans is 1.394 (broad) and 1.375 (narrow).
 
82
  **Score.** The robot reaches the goal about 37 steps earlier than with plans that follow the diffusion estimate. It
83
  therefore spends about 9% more of the 800 steps at the goal.
84
 
85
+ **No wall blocks (same information as the baselines).** `GMP_NOWALLS=1` removes the maze-wall blocks. In their place a
86
+ steering bound keeps every planned position within 0.2 maze units, in each coordinate, of the diffusion estimate at the
87
+ plan's first controlled step, so the walls reach GlobMP only through the learned prior, as for the baselines. The bound
88
+ is widened where the estimate lies inside a keep-out, and doubled (at most twice, then dropped) when a plan's first
89
+ solve finds no feasible curve: doubled in 29 of 100 episodes on each map, dropped in 2 on broad.
90
+ - Safety is unchanged: SR 1.000 on both maps, and all 200 plans keep every keep-out at every t (minimum level 1.314
91
+ on broad, 1.107 on narrow).
92
+ - The score is that of the baselines that follow the diffusion estimate. The bound ties the plan to the estimate's
93
+ timing, so the robot no longer reaches the goal earlier. The score gain of the rows with wall blocks comes from the
94
+ wall information.
95
+ - 39 (broad) and 19 (narrow) of the 100 plans cross a maze wall (robot radius 0.1 included); with wall blocks none does.
96
+ SR and the score do not count wall contacts.
97
+ - The time is long-tailed (median 4.5 s on broad, 10.1 s on narrow): a plan whose bound is doubled repeats its first solve.
98
+
99
  **Notes for reading the table**
100
  - **Plan margin.** Broad plans hold 0.39 at every t (100/100). Narrow plans mostly hold 0.37 (89/100), against
101
  DiRecT's 0.40 at its 384 samples.
applications/maze2d/direct_globmp/__pycache__/check.cpython-310.pyc ADDED
Binary file (5.55 kB). View file
 
applications/maze2d/direct_globmp/__pycache__/globmp_mpc.cpython-310.pyc ADDED
Binary file (27.2 kB). View file
 
applications/maze2d/direct_globmp/check.py CHANGED
@@ -9,6 +9,7 @@ statistics.csv), the margin each plan held (plans.jsonl), and three independent
9
  observation coordinates wall cell (i, j) is the unit box centred at (i - 0.2, j - 0.2): DiRecT's maze model puts the
10
  particle body at (1.2, 1.2) and the wall boxes at (i + 1, j + 1);
11
  * the plan's residual in the fitted dynamics (normalized) and max |a|.
 
12
  """
13
  import collections, csv, glob, json, os, sys
14
 
@@ -40,29 +41,29 @@ def wall_depth(P, r=0.1):
40
  return float(max(-gap.min(), 0.0))
41
 
42
 
43
- for S in ('broad', 'narrow'):
44
- runs = sorted(glob.glob(os.path.join(RUNS, 'globmp', S, 'seed*', 'eval', 'statistics.csv')))
45
  if not runs:
46
  continue
47
  R = [r for f in runs for r in csv.DictReader(open(f))]
48
  g = lambda k: np.array([float(r[k]) for r in R])
49
- mg = collections.Counter(json.loads(l)['final_margin'] for f in glob.glob(os.path.join(RUNS, 'globmp', S, 'seed*.plans.jsonl'))
50
  for l in open(f))
51
- lv, wp, wr, dres, amax = 9.0, 0.0, 0.0, 0.0, 0.0
52
- for f in glob.glob(os.path.join(RUNS, 'globmp', S, 'seed*', 'eval', '*', 'trajectories.npz')):
53
  z = np.load(f); o = z['generated_observations'].reshape(-1, 4); a = z['generated_actions'].reshape(-1, 2)
54
  ro = z['rollout_observations'].reshape(-1, 4); P = curve(o)
55
  lv = min(lv, min(float((np.abs((P[:, 1] - q.center_x) / q.radius_x) ** q.power
56
  + np.abs((P[:, 0] - q.center_y) / q.radius_y) ** q.power).min()) for q in OBSTACLES_DICT[S]))
57
- wp = max(wp, wall_depth(P)); wr = max(wr, wall_depth(ro[:, :2]))
58
  on = norm(o); dres = max(dres, float(np.abs(on[1:] - (on[:-1] @ A.T + a[:-1] @ B.T + c)).max()))
59
  amax = max(amax, float(np.abs(a).max()))
60
  p = DIRECT_PAPER[S]
61
- print(f'{S}: {len(runs)} seeds, {len(R)} episodes')
62
  print(f" GlobMP SR {(g('total_violation') == 0).mean():.3f} | Score {g('score').mean():.3f} ± {g('score').std():.3f} | "
63
  f"Time {g('computation_time').mean():.1f} ± {g('computation_time').std():.1f} s | Gen. SR {(g('generated_total_violations') == 0).mean():.3f} | "
64
  f"Gen. AS {g('generated_AS').mean():.4f} | Gen. CS {g('generated_CS').mean():.4f}")
65
  print(f' DiRecT SR {p[0]:.3f} | Score {p[1]:.3f} | Time {p[2]:.1f} s | Gen. AS {p[3]:.4f} | Gen. CS {p[4]:.4f} (paper, seed 0, 10 episodes)')
66
  print(f" plan margins held: {dict(sorted(mg.items(), key=lambda x: -1 if x[0] is None else -x[0]))}")
67
- print(f' checks: min keep-out level along the plans {lv:.4f} (>= 1) | wall penetration: plans {wp:.4f}, rollouts {wr:.4f} '
68
  f'(0 = none) | dynamics residual {dres:.1e} | max |a| {amax:.5f}')
 
9
  observation coordinates wall cell (i, j) is the unit box centred at (i - 0.2, j - 0.2): DiRecT's maze model puts the
10
  particle body at (1.2, 1.2) and the wall boxes at (i + 1, j + 1);
11
  * the plan's residual in the fitted dynamics (normalized) and max |a|.
12
+ Runs of `GMP_NOWALLS=1 ./run.sh` (folder globmp_nowalls) are summarized the same way; their plans may cross walls.
13
  """
14
  import collections, csv, glob, json, os, sys
15
 
 
41
  return float(max(-gap.min(), 0.0))
42
 
43
 
44
+ for V, S in [(v, s) for v in ('globmp', 'globmp_nowalls') for s in ('broad', 'narrow')]:
45
+ runs = sorted(glob.glob(os.path.join(RUNS, V, S, 'seed*', 'eval', 'statistics.csv')))
46
  if not runs:
47
  continue
48
  R = [r for f in runs for r in csv.DictReader(open(f))]
49
  g = lambda k: np.array([float(r[k]) for r in R])
50
+ mg = collections.Counter(json.loads(l)['final_margin'] for f in glob.glob(os.path.join(RUNS, V, S, 'seed*.plans.jsonl'))
51
  for l in open(f))
52
+ lv, wp, wr, dres, amax, nwp = 9.0, 0.0, 0.0, 0.0, 0.0, 0
53
+ for f in glob.glob(os.path.join(RUNS, V, S, 'seed*', 'eval', '*', 'trajectories.npz')):
54
  z = np.load(f); o = z['generated_observations'].reshape(-1, 4); a = z['generated_actions'].reshape(-1, 2)
55
  ro = z['rollout_observations'].reshape(-1, 4); P = curve(o)
56
  lv = min(lv, min(float((np.abs((P[:, 1] - q.center_x) / q.radius_x) ** q.power
57
  + np.abs((P[:, 0] - q.center_y) / q.radius_y) ** q.power).min()) for q in OBSTACLES_DICT[S]))
58
+ dp = wall_depth(P); nwp += dp > 0; wp = max(wp, dp); wr = max(wr, wall_depth(ro[:, :2]))
59
  on = norm(o); dres = max(dres, float(np.abs(on[1:] - (on[:-1] @ A.T + a[:-1] @ B.T + c)).max()))
60
  amax = max(amax, float(np.abs(a).max()))
61
  p = DIRECT_PAPER[S]
62
+ print(f"{S}{'' if V == 'globmp' else ' (no wall blocks)'}: {len(runs)} seeds, {len(R)} episodes")
63
  print(f" GlobMP SR {(g('total_violation') == 0).mean():.3f} | Score {g('score').mean():.3f} ± {g('score').std():.3f} | "
64
  f"Time {g('computation_time').mean():.1f} ± {g('computation_time').std():.1f} s | Gen. SR {(g('generated_total_violations') == 0).mean():.3f} | "
65
  f"Gen. AS {g('generated_AS').mean():.4f} | Gen. CS {g('generated_CS').mean():.4f}")
66
  print(f' DiRecT SR {p[0]:.3f} | Score {p[1]:.3f} | Time {p[2]:.1f} s | Gen. AS {p[3]:.4f} | Gen. CS {p[4]:.4f} (paper, seed 0, 10 episodes)')
67
  print(f" plan margins held: {dict(sorted(mg.items(), key=lambda x: -1 if x[0] is None else -x[0]))}")
68
+ print(f' checks: min keep-out level along the plans {lv:.4f} (>= 1) | wall penetration: plans {wp:.4f} ({nwp} plans), rollouts {wr:.4f} '
69
  f'(0 = none) | dynamics residual {dres:.1e} | max |a| {amax:.5f}')
applications/maze2d/direct_globmp/globmp_mpc.py CHANGED
@@ -18,6 +18,7 @@ GlobMP solves the same problem with the keep-outs imposed at EVERY t of the moti
18
  feasible for the next one and gradient projection descends the new cost from a feasible start.
19
 
20
  Env: GMP_DEADLINE (s per solve after the first, default 2), GMP_COLD (s, first solve, default 10), GMP_LAMACC (default 0),
 
21
  GMP_BLOCKS (gradient-projection blocks, default 50), GMP_ALG2COLD / GMP_ALG2WARM (s of gradient projection in the first /
22
  a later solve, default half the solve's time), GMP_ACTSCALE (default 1), GLOBMP_ROOT.
23
  """
@@ -203,6 +204,42 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
203
  out.append((tuple(cc), tuple(rr), segs))
204
  return out
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  def _piece_levels(self, u):
207
  """Minimum keep-out level per piece (all pieces: plan then executed path), 11 points per piece, normalized."""
208
  g = self._gmp; cp = (g['g0'] + g['G'] @ u).reshape(2, -1, 2)
@@ -281,7 +318,11 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
281
  p.add_ellipsoid(c=cc, E=E)
282
  for (cc, rr, sg) in (self._gmp_walls or []): # maze walls near the route: each wall square inside a quartic
283
  p.add_superellipse(c=cc, r=rr, margin=0.0, segs=sg) # keep-out (covers the square + the particle radius)
284
- p.set_linear(g['linG'], g['linh'], float(os.environ.get('GMP_ACTSCALE', 1.0)))
 
 
 
 
285
  return p
286
 
287
  def _solve_mpc_batch(self, dofs_ref_batch, reg_weights, conditions):
@@ -304,6 +345,8 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
304
  self._gmp_stats.append((True, time.time() - t0)); continue
305
  if os.environ.get('GMP_WALLS') == '1' and self._gmp_walls is None:
306
  self._gmp_walls = self._walls_near(Xr)
 
 
307
  if os.environ.get('GMP_KOPRE') == '1' and getattr(self, '_gmp_kos', None) is None:
308
  Cn = np.concatenate(rows, 0); bn = np.concatenate(rhs, 0)
309
  u_min = np.linalg.lstsq(Cn, -bn, rcond=None)[0]
@@ -387,6 +430,11 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
387
  Z, eta, _ = p.solve(Z, tv, blocks=int(os.environ.get('GMP_BLOCKS', 50)), deadline=time.time() + ab)
388
  self._gmp_drop.append((_c0, float(p.cost(Z)))) # gradient projection's cost decrease, per solve
389
  if os.environ.get('GMP_PROF'): print(f'[prof] alg2 {time.time()-_t5:.2f}', flush=True)
 
 
 
 
 
390
  self._gmp_m = m_used if ok else None
391
  if os.environ.get('GMP_WALLS') == '1': # walls the new plan touches but the problem lacks: add them
392
  self._add_touched_walls(Z.detach().cpu().numpy().reshape(-1))
@@ -414,7 +462,7 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
414
 
415
  def generate(self, conditions, batch_size=1, **kwargs):
416
  self._gmp_Z = None; self._gmp_ok = False; self._gmp_m = None; self._gmp_P = {}; self._gmp_walls = None
417
- self._gmp_ncall = 0; self._gmp_kos = None
418
  out = super().generate(conditions, batch_size=batch_size, **kwargs)
419
  lg = os.environ.get('GMP_LOG') # per plan: the margin the final solve held, and whether it was ok
420
  if lg:
@@ -423,5 +471,5 @@ class GlobMPDiRecTPolicy(DiRecTPolicy):
423
  dr = self._gmp_drop[-16:]
424
  fh.write(json.dumps(dict(final_margin=self._gmp_m, final_ok=bool(self._gmp_ok),
425
  alg2_rel_drop=[round(1 - b / a, 4) if a > 0 else 0 for a, b in dr],
426
- n_ok=sum(o for o, _ in self._gmp_stats[-16:]))) + '\n')
427
  return out
 
18
  feasible for the next one and gradient projection descends the new cost from a feasible start.
19
 
20
  Env: GMP_DEADLINE (s per solve after the first, default 2), GMP_COLD (s, first solve, default 10), GMP_LAMACC (default 0),
21
+ GMP_TUBE (maze units; with GMP_WALLS=0: no wall blocks, a steering bound to the diffusion estimate instead, see _tube_build),
22
  GMP_BLOCKS (gradient-projection blocks, default 50), GMP_ALG2COLD / GMP_ALG2WARM (s of gradient projection in the first /
23
  a later solve, default half the solve's time), GMP_ACTSCALE (default 1), GLOBMP_ROOT.
24
  """
 
204
  out.append((tuple(cc), tuple(rr), segs))
205
  return out
206
 
207
+ def _tube_build(self, Xr, mg):
208
+ """Steering bound in place of the wall blocks (GMP_TUBE = r): |p_t - rho_t| <= r_t in each coordinate (maze units)
209
+ at the H planned positions, rho = the diffusion estimate at the plan's first controlled step. Plan and estimate
210
+ are piecewise linear with the same breakpoints, so the bound holds at every t. Where rho_t is inside a keep-out
211
+ inflated by the margin, r_t is widened by GMP_TUBEK times the distance to leave it, over +-GMP_TUBEWIN steps.
212
+ If the plan's first solve finds no feasible curve the bound is doubled, at most twice, then dropped
213
+ (_solve_mpc_batch). No wall geometry enters."""
214
+ g = self._gmp; H = g['H']; env = self.env; ad = env.action_dim
215
+ nrm = env.normalizer.normalizers['observations']; lo = np.asarray(nrm.mins, float)[:2]; hi = np.asarray(nrm.maxs, float)[:2]
216
+ sc = (hi - lo) / 2; X = np.asarray(Xr, float)
217
+ P = np.array([g['start']] + [X[ad + (t - 1) * 6 + ad: ad + (t - 1) * 6 + ad + 2] for t in range(1, H - 1)] + [g['goal']])
218
+ r0 = float(os.environ['GMP_TUBE']); ext = np.zeros(H)
219
+ k = float(os.environ.get('GMP_TUBEK', 1.5)); win = int(os.environ.get('GMP_TUBEWIN', 10))
220
+ for (cc, rr, pw) in self._gmp_obst:
221
+ d = P - np.array(cc); L = (np.abs(d[:, 0]) / rr[0]) ** pw + (np.abs(d[:, 1]) / rr[1]) ** pw
222
+ lev = 1 + mg + 0.02; lam = (lev / np.maximum(L, 1e-9)) ** (1.0 / pw)
223
+ ext = np.maximum(ext, np.where(L < lev, k * (lam - 1) * np.linalg.norm(d * sc, axis=1), 0.0))
224
+ extd = np.array([ext[max(0, t - win):t + win + 1].max() for t in range(H)])
225
+ self._gmp_tube = dict(P=P, sc=sc, r=r0 + extd, r0=r0, scale=1.0, retries=0)
226
+
227
+ def _tube_lin(self):
228
+ """The bound as linear rows G w + h >= 0 (normalized coordinates), for set_linear."""
229
+ g = self._gmp; H = g['H']; tb = self._gmp_tube; ncp = g['g0'].shape[0] // 2; Gs = []; hs = []
230
+ for i in range(2):
231
+ j = np.array([2 * t for t in range(1, H - 1)]); rows = g['G'][i * ncp + j]; c0 = g['g0'][i * ncp + j]
232
+ h = tb['scale'] * tb['r'][1:H - 1] / tb['sc'][i]; rho = tb['P'][1:H - 1, i]
233
+ Gs += [-rows, rows]; hs += [h + rho - c0, h - rho + c0]
234
+ return np.concatenate(Gs, 0), np.concatenate(hs, 0)
235
+
236
+ def _tube_log(self):
237
+ tb = getattr(self, '_gmp_tube', None)
238
+ if tb is None or self._gmp_Z is None: return None
239
+ g = self._gmp; H = g['H']; cp = (g['g0'] + g['G'] @ np.asarray(self._gmp_Z).reshape(-1)).reshape(2, -1, 2)
240
+ Pp = np.concatenate([cp[:, :H - 1, 0], cp[:, H - 2:H - 1, 1]], 1).T
241
+ return dict(r0=tb['r0'], scale=tb['scale'], retries=tb['retries'], dev_max=round(float((np.abs(Pp - tb['P']) * tb['sc']).max()), 4))
242
+
243
  def _piece_levels(self, u):
244
  """Minimum keep-out level per piece (all pieces: plan then executed path), 11 points per piece, normalized."""
245
  g = self._gmp; cp = (g['g0'] + g['G'] @ u).reshape(2, -1, 2)
 
318
  p.add_ellipsoid(c=cc, E=E)
319
  for (cc, rr, sg) in (self._gmp_walls or []): # maze walls near the route: each wall square inside a quartic
320
  p.add_superellipse(c=cc, r=rr, margin=0.0, segs=sg) # keep-out (covers the square + the particle radius)
321
+ linG, linh = g['linG'], g['linh']
322
+ tb = getattr(self, '_gmp_tube', None)
323
+ if tb is not None and tb['scale'] is not None: # steering bound to the diffusion estimate
324
+ tG, th = self._tube_lin(); linG = np.concatenate([linG, tG], 0); linh = np.concatenate([linh, th], 0)
325
+ p.set_linear(linG, linh, float(os.environ.get('GMP_ACTSCALE', 1.0)))
326
  return p
327
 
328
  def _solve_mpc_batch(self, dofs_ref_batch, reg_weights, conditions):
 
345
  self._gmp_stats.append((True, time.time() - t0)); continue
346
  if os.environ.get('GMP_WALLS') == '1' and self._gmp_walls is None:
347
  self._gmp_walls = self._walls_near(Xr)
348
+ if os.environ.get('GMP_TUBE') and getattr(self, '_gmp_tube', None) is None:
349
+ self._tube_build(Xr, mg)
350
  if os.environ.get('GMP_KOPRE') == '1' and getattr(self, '_gmp_kos', None) is None:
351
  Cn = np.concatenate(rows, 0); bn = np.concatenate(rhs, 0)
352
  u_min = np.linalg.lstsq(Cn, -bn, rcond=None)[0]
 
430
  Z, eta, _ = p.solve(Z, tv, blocks=int(os.environ.get('GMP_BLOCKS', 50)), deadline=time.time() + ab)
431
  self._gmp_drop.append((_c0, float(p.cost(Z)))) # gradient projection's cost decrease, per solve
432
  if os.environ.get('GMP_PROF'): print(f'[prof] alg2 {time.time()-_t5:.2f}', flush=True)
433
+ tb = getattr(self, '_gmp_tube', None)
434
+ if not ok and not warm and tb is not None and tb['scale'] is not None and dofs_ref_batch.shape[0] == 1:
435
+ tb['scale'] = tb['scale'] * 2 if tb['scale'] < 4 else None; tb['retries'] += 1 # r, 2r, 4r, no bound
436
+ self._gmp_P = {}; self._gmp_ncall -= 1; self._gmp_Z = None; self._gmp_ok = False
437
+ return self._solve_mpc_batch(dofs_ref_batch, reg_weights, conditions)
438
  self._gmp_m = m_used if ok else None
439
  if os.environ.get('GMP_WALLS') == '1': # walls the new plan touches but the problem lacks: add them
440
  self._add_touched_walls(Z.detach().cpu().numpy().reshape(-1))
 
462
 
463
  def generate(self, conditions, batch_size=1, **kwargs):
464
  self._gmp_Z = None; self._gmp_ok = False; self._gmp_m = None; self._gmp_P = {}; self._gmp_walls = None
465
+ self._gmp_ncall = 0; self._gmp_kos = None; self._gmp_tube = None
466
  out = super().generate(conditions, batch_size=batch_size, **kwargs)
467
  lg = os.environ.get('GMP_LOG') # per plan: the margin the final solve held, and whether it was ok
468
  if lg:
 
471
  dr = self._gmp_drop[-16:]
472
  fh.write(json.dumps(dict(final_margin=self._gmp_m, final_ok=bool(self._gmp_ok),
473
  alg2_rel_drop=[round(1 - b / a, 4) if a > 0 else 0 for a, b in dr],
474
+ n_ok=sum(o for o, _ in self._gmp_stats[-16:]), tube=self._tube_log())) + '\n')
475
  return out
applications/maze2d/direct_globmp/results/README.md CHANGED
@@ -1,5 +1,9 @@
1
  # Maze2D results: the 100 episodes per map behind the paper's tables
2
 
 
 
 
 
3
  These are the runs behind the GlobMP rows of the paper's Maze2D tables (appendix "Maze navigation"). GlobMP runs inside
4
  DiRecT's sampler on the shared checkpoint, using `../run.sh`. The data covers both settings, `broad` and `narrow`:
5
 
 
1
  # Maze2D results: the 100 episodes per map behind the paper's tables
2
 
3
+ `globmp/` and `episodes.csv` are the rows "GlobMP"; `globmp_nowalls/` and `episodes_nowalls.csv` are the rows "GlobMP, no
4
+ wall blocks" (`GMP_NOWALLS=1 ../run.sh`), in the same layout. `episodes_nowalls.csv` has two more columns: the factor on the
5
+ steering bound (1, 2, 4 or dropped) and the largest distance of the plan from the diffusion estimate (maze units).
6
+
7
  These are the runs behind the GlobMP rows of the paper's Maze2D tables (appendix "Maze navigation"). GlobMP runs inside
8
  DiRecT's sampler on the shared checkpoint, using `../run.sh`. The data covers both settings, `broad` and `narrow`:
9
 
applications/maze2d/direct_globmp/results/episodes_nowalls.csv ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ map,seed,episode,safe,violations,score,time_s,gen_safe,gen_AS,gen_CS,plan_margin,tube_radius_factor,max_distance_to_estimate
2
+ broad,0,0,1,0.0,1.6099,3.679,1,0.0019916901535614543,0.006761591110196194,0.39,1.0,0.406
3
+ broad,0,1,1,0.0,1.6136,2.24,1,0.002052214335897132,0.006723777949774712,0.39,1.0,0.2645
4
+ broad,0,2,1,0.0,1.6099,4.402,1,0.0020602981320565253,0.007003467281150988,0.39,1.0,0.2819
5
+ broad,0,3,1,0.0,1.6061,3.57,1,0.0020155581391113836,0.006663941894209721,0.39,1.0,0.2483
6
+ broad,0,4,1,0.0,1.6173,5.526,1,0.0020161022096477983,0.007381107299862381,0.39,1.0,0.2
7
+ broad,0,5,1,0.0,1.6211,3.008,1,0.0019298622922511075,0.006793624989196305,0.39,1.0,0.3607
8
+ broad,0,6,1,0.0,1.6136,2.235,1,0.001977679593535963,0.007041302910201195,0.39,1.0,0.2591
9
+ broad,0,7,1,0.0,1.6099,6.835,1,0.0020044400043950808,0.00716486391459785,0.37,1.0,0.6989
10
+ broad,0,8,1,0.0,1.6099,9.397,1,0.002060119767287485,0.006765390080972161,0.39,1.0,0.3133
11
+ broad,0,9,1,0.0,1.6136,2.608,1,0.0020688169935099052,0.006891978138749103,0.39,1.0,0.4078
12
+ broad,1,0,1,0.0,1.6099,12.567,1,0.0020235520012975247,0.00681113308759907,0.39,1.0,0.251
13
+ broad,1,1,1,0.0,1.6099,2.66,1,0.002073119920239216,0.006967876254244695,0.39,1.0,0.4076
14
+ broad,1,2,1,0.0,1.6173,2.278,1,0.0011822911568569537,0.006237639743404718,0.39,1.0,0.2727
15
+ broad,1,3,1,0.0,1.5238,8.475,1,0.001894821322741052,0.006714375484908893,0.35,1.0,0.2215
16
+ broad,1,4,1,0.0,1.6248,3.059,1,0.001130784406108241,0.006215076623058516,0.39,1.0,0.3312
17
+ broad,1,5,1,0.0,1.6173,15.874,1,0.000901109986861113,0.005826055184266362,0.39,2.0,0.4908
18
+ broad,1,6,1,0.0,1.6099,16.762,1,0.0020470347942002374,0.0068909811446761305,0.39,2.0,0.3678
19
+ broad,1,7,1,0.0,1.6173,3.017,1,0.001956927748251092,0.006792953667671623,0.39,1.0,0.5305
20
+ broad,1,8,1,0.0,1.6136,44.436,1,0.0010853765426247933,0.00702170619969738,0.39,dropped,1.5884
21
+ broad,1,9,1,0.0,1.6099,2.975,1,0.0019791406480721796,0.007158530576143951,0.39,1.0,0.3736
22
+ broad,2,0,1,0.0,1.6173,3.7,1,0.002014825274332498,0.006848906777638941,0.39,1.0,0.2334
23
+ broad,2,1,1,0.0,1.6211,15.632,1,0.0009399447072102346,0.0057938492262702024,0.39,2.0,0.4113
24
+ broad,2,2,1,0.0,1.6099,2.614,1,0.0020185133171337134,0.006811370415068682,0.39,1.0,0.246
25
+ broad,2,3,1,0.0,1.6099,5.843,1,0.0019914431799976542,0.006980585523527109,0.39,1.0,0.2239
26
+ broad,2,4,1,0.0,1.6136,3.477,1,0.0020877264089604296,0.006584922587233632,0.39,1.0,0.2047
27
+ broad,2,5,1,0.0,1.6211,16.741,1,0.0009891354327518779,0.005920453265761857,0.39,2.0,0.6085
28
+ broad,2,6,1,0.0,1.6173,15.807,1,0.0010445771900812926,0.006023538456554531,0.39,2.0,0.4674
29
+ broad,2,7,1,0.0,1.6061,2.868,1,0.0020402219262358958,0.0069142051697748085,0.39,1.0,0.3669
30
+ broad,2,8,1,0.0,1.6099,3.479,1,0.0020271400363649863,0.006810200986708995,0.39,1.0,0.325
31
+ broad,2,9,1,0.0,1.6136,15.73,1,0.0011683902590154639,0.006271593211652619,0.39,2.0,0.3208
32
+ broad,3,0,1,0.0,1.6136,3.788,1,0.0011923618041345706,0.006266592771696631,0.39,1.0,0.2483
33
+ broad,3,1,1,0.0,1.6099,10.801,1,0.002002689199498499,0.007559580579386192,0.35,1.0,0.2
34
+ broad,3,2,1,0.0,1.6173,15.26,1,0.0009204593197229442,0.005805418425914681,0.39,2.0,0.4998
35
+ broad,3,3,1,0.0,1.6173,3.419,1,0.002026583087038275,0.006896618146123059,0.39,1.0,0.2498
36
+ broad,3,4,1,0.0,1.6136,2.888,1,0.002053033986141737,0.006910871567395084,0.39,1.0,0.2938
37
+ broad,3,5,1,0.0,1.6248,7.327,1,0.0019810197538363836,0.006812554835352577,0.39,1.0,0.2809
38
+ broad,3,6,1,0.0,1.6099,3.052,1,0.002063764296481059,0.006724856742991057,0.39,1.0,0.4318
39
+ broad,3,7,1,0.0,1.6136,2.268,1,0.0019489225965554668,0.006720456744699255,0.39,1.0,0.2975
40
+ broad,3,8,1,0.0,1.6211,7.363,1,0.0010046325410766935,0.005929109224444908,0.39,1.0,0.4591
41
+ broad,3,9,1,0.0,1.6099,3.193,1,0.002031473195290315,0.0069518547428365635,0.39,1.0,0.2531
42
+ broad,4,0,1,0.0,1.6061,20.648,1,0.002046254475644277,0.00680871444193426,0.39,2.0,0.2617
43
+ broad,4,1,1,0.0,1.6099,19.531,1,0.0019518107347533359,0.006928178976846273,0.39,2.0,0.6682
44
+ broad,4,2,1,0.0,1.6136,2.755,1,0.0020481342965158896,0.006917507981522428,0.39,1.0,0.3151
45
+ broad,4,3,1,0.0,1.6136,2.734,1,0.0020820478813505386,0.006689080113480747,0.39,1.0,0.2873
46
+ broad,4,4,1,0.0,1.6099,5.062,1,0.0019624503080541062,0.0068738701478284776,0.39,1.0,0.3898
47
+ broad,4,5,1,0.0,1.6136,15.574,1,0.0010062593463962114,0.006041423759815168,0.39,2.0,0.3962
48
+ broad,4,6,1,0.0,1.6061,17.786,1,0.001949253650780209,0.006571419044656267,0.39,2.0,0.4
49
+ broad,4,7,1,0.0,1.6099,3.046,1,0.0020247882582216125,0.00690266975548914,0.39,1.0,0.3714
50
+ broad,4,8,1,0.0,1.6136,6.536,1,0.001970610604799839,0.006749038362160028,0.39,1.0,0.584
51
+ broad,4,9,1,0.0,1.6248,6.871,1,0.001995425329448213,0.0066206062704405825,0.37,1.0,0.2794
52
+ broad,5,0,1,0.0,1.6136,23.531,1,0.0011803939879491431,0.006147057597760226,0.39,2.0,0.3777
53
+ broad,5,1,1,0.0,1.6136,17.818,1,0.0011875958512348518,0.006288166119050596,0.39,2.0,0.4385
54
+ broad,5,2,1,0.0,1.6173,2.346,1,0.002018868680489257,0.0068281834178973945,0.39,1.0,0.2941
55
+ broad,5,3,1,0.0,1.6099,3.268,1,0.0020104233431199776,0.006854843430921051,0.39,1.0,0.2471
56
+ broad,5,4,1,0.0,1.6173,15.388,1,0.0011593927915235843,0.006293444688069613,0.39,2.0,0.2975
57
+ broad,5,5,1,0.0,1.6136,3.751,1,0.002004567094006768,0.006770010507725376,0.39,1.0,0.3377
58
+ broad,5,6,1,0.0,1.6099,2.584,1,0.0020060721836512997,0.006700760989691001,0.39,1.0,0.2219
59
+ broad,5,7,1,0.0,1.6099,3.827,1,0.0020582464970293783,0.006826669763067131,0.39,1.0,0.4468
60
+ broad,5,8,1,0.0,1.6136,17.023,1,0.0011764935820017949,0.006228621937349732,0.39,2.0,0.581
61
+ broad,5,9,1,0.0,1.6136,3.588,1,0.0019756828374630922,0.006860950298420295,0.39,1.0,0.3944
62
+ broad,6,0,1,0.0,1.6061,30.901,1,0.0020182482497664686,0.006800457359356497,0.39,2.0,0.3199
63
+ broad,6,1,1,0.0,1.6286,17.433,1,0.0009093649208600547,0.005853148432638709,0.39,2.0,0.5621
64
+ broad,6,2,1,0.0,1.6136,2.512,1,0.0016297359303323823,0.00628652681139826,0.39,1.0,0.2609
65
+ broad,6,3,1,0.0,1.6099,4.036,1,0.0020172098274756256,0.007012187723000327,0.39,1.0,0.4269
66
+ broad,6,4,1,0.0,1.6173,15.506,1,0.0016449785030754921,0.006411251271254875,0.39,2.0,0.4449
67
+ broad,6,5,1,0.0,1.6173,4.255,1,0.0019755502975093158,0.006977004881969436,0.39,1.0,0.3512
68
+ broad,6,6,1,0.0,1.6136,16.223,1,0.001128449730969683,0.006108953634906304,0.39,2.0,0.3841
69
+ broad,6,7,1,0.0,1.6099,2.616,1,0.0020078146365088154,0.00693052375180415,0.39,1.0,0.3876
70
+ broad,6,8,1,0.0,1.6136,3.152,1,0.0020404999109315215,0.006757116852402242,0.39,1.0,0.3352
71
+ broad,6,9,1,0.0,1.6286,2.534,1,0.0011404535687466466,0.00620768493553029,0.39,1.0,0.3453
72
+ broad,7,0,1,0.0,1.6136,24.98,1,0.002062202856162646,0.007012236543457352,0.3,2.0,0.8327
73
+ broad,7,1,1,0.0,1.6099,3.884,1,0.0020099793879242876,0.00686426971872927,0.39,1.0,0.2
74
+ broad,7,2,1,0.0,1.6173,15.978,1,0.001177448329398126,0.006193988176303474,0.39,2.0,0.3994
75
+ broad,7,3,1,0.0,1.6173,4.538,1,0.0020318637662473994,0.006825258781814251,0.39,1.0,0.3834
76
+ broad,7,4,1,0.0,1.6211,2.496,1,0.0020092361397890082,0.0068703460345292755,0.39,1.0,0.3219
77
+ broad,7,5,1,0.0,1.6061,12.716,1,0.0020501242343324735,0.007402499669761897,0.35,1.0,0.2673
78
+ broad,7,6,1,0.0,1.6099,18.083,1,0.0020668261973560975,0.006809940804970158,0.39,2.0,0.2861
79
+ broad,7,7,1,0.0,1.6211,2.873,1,0.001997256381291471,0.006849143016493154,0.39,1.0,0.2981
80
+ broad,7,8,1,0.0,1.6136,16.96,1,0.0012181503408860833,0.006233133319159709,0.39,2.0,0.4591
81
+ broad,7,9,1,0.0,1.6173,15.287,1,0.002065226205514084,0.0067814651718798285,0.39,2.0,0.3302
82
+ broad,8,0,1,0.0,1.6136,40.393,1,0.001987083894119296,0.010086959178085062,0.2,4.0,1.2162
83
+ broad,8,1,1,0.0,1.6211,4.897,1,0.001967687552816819,0.006779428115653153,0.39,1.0,0.4284
84
+ broad,8,2,1,0.0,1.6099,44.81,1,0.0016321927163155416,0.006529223083000762,0.39,dropped,1.5783
85
+ broad,8,3,1,0.0,1.6173,17.976,1,0.0012019413722117692,0.006249285662791865,0.39,2.0,0.3346
86
+ broad,8,4,1,0.0,1.6099,3.165,1,0.0020716132046052376,0.006879223114072601,0.39,1.0,0.2996
87
+ broad,8,5,1,0.0,1.6099,4.225,1,0.0019801047003604453,0.006964441443760934,0.39,1.0,0.3428
88
+ broad,8,6,1,0.0,1.6099,7.812,1,0.0020289141474945332,0.007329481487576298,0.37,1.0,0.2997
89
+ broad,8,7,1,0.0,1.6173,2.242,1,0.0011706862986256919,0.006254984829979616,0.39,1.0,0.2212
90
+ broad,8,8,1,0.0,1.6173,3.22,1,0.0020205766588424516,0.007079948044339018,0.39,1.0,0.2218
91
+ broad,8,9,1,0.0,1.6248,2.643,1,0.0019047777870624947,0.0070735442171798195,0.39,1.0,0.299
92
+ broad,9,0,1,0.0,1.6173,3.196,1,0.00201160935526304,0.006715190838211668,0.39,1.0,0.2087
93
+ broad,9,1,1,0.0,1.6173,18.284,1,0.0019106891684441236,0.0068431930177544195,0.39,2.0,0.6785
94
+ broad,9,2,1,0.0,1.6211,2.884,1,0.001025246148795298,0.005914493566299499,0.39,1.0,0.4153
95
+ broad,9,3,1,0.0,1.6136,5.482,1,0.002010681020529609,0.006857368405729734,0.39,1.0,0.449
96
+ broad,9,4,1,0.0,1.6061,15.455,1,0.0019786260601758325,0.006757359285123325,0.39,2.0,0.408
97
+ broad,9,5,1,0.0,1.6099,2.99,1,0.0020759471405594533,0.006835067758727944,0.39,1.0,0.2579
98
+ broad,9,6,1,0.0,1.6248,15.769,1,0.0020137220113978084,0.00702810671942233,0.39,2.0,0.3561
99
+ broad,9,7,1,0.0,1.6173,8.322,1,0.00196890298492091,0.0069489962278654685,0.35,1.0,0.5631
100
+ broad,9,8,1,0.0,1.6136,5.045,1,0.0020101870632701782,0.007144174612406253,0.39,1.0,0.2
101
+ broad,9,9,1,0.0,1.6173,4.305,1,0.002039143010273225,0.0066436692456424236,0.39,1.0,0.4294
102
+ narrow,0,0,1,0.0,1.6136,16.442,1,0.001966036700987862,0.006825904398900963,0.35,1.0,0.4162
103
+ narrow,0,1,1,0.0,1.6211,7.146,1,0.000983716138975863,0.005934249827957762,0.37,1.0,0.3345
104
+ narrow,0,2,1,0.0,1.6099,12.921,1,0.0020385596806867835,0.007030637486701819,0.2,1.0,0.2952
105
+ narrow,0,3,1,0.0,1.6099,8.839,1,0.001953479451882418,0.006685712467913428,0.39,1.0,0.3214
106
+ narrow,0,4,1,0.0,1.6211,5.855,1,0.0019644719102480403,0.007499957386837436,0.39,1.0,0.2937
107
+ narrow,0,5,1,0.0,1.6248,8.139,1,0.0019060377578540065,0.006835224389654622,0.37,1.0,0.3795
108
+ narrow,0,6,1,0.0,1.6173,9.056,1,0.001965623763867051,0.007202011889252709,0.37,1.0,0.3042
109
+ narrow,0,7,1,0.0,1.6136,11.312,1,0.0018830849952523193,0.007491816864248114,0.3,1.0,0.7291
110
+ narrow,0,8,1,0.0,1.6136,9.262,1,0.002026896276646185,0.006762743281805512,0.35,1.0,0.3112
111
+ narrow,0,9,1,0.0,1.6173,6.869,1,0.0016268895521986402,0.006424562669079193,0.37,1.0,0.4246
112
+ narrow,1,0,1,0.0,1.6099,8.543,1,0.002003745024540398,0.006815187634312365,0.37,1.0,0.2507
113
+ narrow,1,1,1,0.0,1.6136,8.345,1,0.0020132682457689064,0.006995322343335191,0.35,1.0,0.4201
114
+ narrow,1,2,1,0.0,1.6211,6.661,1,0.0011238121627007679,0.006191434134240338,0.37,1.0,0.2811
115
+ narrow,1,3,1,0.0,1.6248,34.573,1,0.00192096798585927,0.007052915791723818,0.35,2.0,1.2875
116
+ narrow,1,4,1,0.0,1.6248,6.892,1,0.002002669557927773,0.009802915005300337,0.37,1.0,0.2915
117
+ narrow,1,5,1,0.0,1.6211,19.236,1,0.001198787369162179,0.006401516911045363,0.39,2.0,0.5145
118
+ narrow,1,6,1,0.0,1.6099,20.925,1,0.0020193665837499888,0.006886977177445526,0.37,2.0,0.4032
119
+ narrow,1,7,1,0.0,1.6211,7.426,1,0.0019508853410688423,0.006835320391113101,0.37,1.0,0.5365
120
+ narrow,1,8,1,0.0,1.6099,10.58,1,0.0019309371820643816,0.00854155631856486,0.3,1.0,0.7008
121
+ narrow,1,9,1,0.0,1.6173,8.58,1,0.001003690356968566,0.005937854484601816,0.35,1.0,0.4309
122
+ narrow,2,0,1,0.0,1.6248,8.955,1,0.0011369629164658887,0.006231734624056783,0.37,1.0,0.2661
123
+ narrow,2,1,1,0.0,1.6211,20.099,1,0.0011295343705139804,0.006223478109280214,0.39,2.0,0.3927
124
+ narrow,2,2,1,0.0,1.6099,7.743,1,0.0020070703840680735,0.006840726040433907,0.37,1.0,0.2291
125
+ narrow,2,3,1,0.0,1.6136,11.85,1,0.0019263310630879883,0.007068931049468065,0.39,1.0,0.5038
126
+ narrow,2,4,1,0.0,1.6173,7.984,1,0.002046454278996425,0.006657527131123515,0.37,1.0,0.3207
127
+ narrow,2,5,1,0.0,1.6136,21.12,1,0.001972973723926043,0.012297798813042812,0.39,2.0,0.5553
128
+ narrow,2,6,1,0.0,1.6136,20.932,1,0.001995891272908105,0.0072447221285201644,0.39,2.0,0.4066
129
+ narrow,2,7,1,0.0,1.6061,7.171,1,0.0020196876290511736,0.006903184797587433,0.37,1.0,0.368
130
+ narrow,2,8,1,0.0,1.6099,7.341,1,0.0016002751029909133,0.006422376392700592,0.37,1.0,0.3451
131
+ narrow,2,9,1,0.0,1.6099,17.631,1,0.002017173955348575,0.006874326503529694,0.39,2.0,0.3763
132
+ narrow,3,0,1,0.0,1.6173,32.199,1,0.0015923630159500456,0.006329496080731925,0.37,1.0,0.2477
133
+ narrow,3,1,1,0.0,1.6136,10.175,1,0.0019511762478315758,0.007409427612686721,0.39,1.0,0.4648
134
+ narrow,3,2,1,0.0,1.6286,16.616,1,0.0009021066703063994,0.005802821466922908,0.39,2.0,0.5175
135
+ narrow,3,3,1,0.0,1.6211,9.881,1,0.001105855486828317,0.006203999749119768,0.35,1.0,0.2673
136
+ narrow,3,4,1,0.0,1.6136,8.862,1,0.0020348407282319426,0.007005916886232073,0.35,1.0,0.3009
137
+ narrow,3,5,1,0.0,1.6248,15.608,1,0.0019605389617346936,0.006795293727516756,0.1,1.0,0.29
138
+ narrow,3,6,1,0.0,1.6136,8.919,1,0.0020363125268839212,0.006719935504666891,0.35,1.0,0.4343
139
+ narrow,3,7,1,0.0,1.6211,7.771,1,0.0011508714160303516,0.006183547523153692,0.37,1.0,0.3274
140
+ narrow,3,8,1,0.0,1.6211,8.403,1,0.0015738134096478,0.006401987155359607,0.37,1.0,0.413
141
+ narrow,3,9,1,0.0,1.6136,9.069,1,0.001993398971042271,0.007047996450501241,0.39,1.0,0.2929
142
+ narrow,4,0,1,0.0,1.6099,28.248,1,0.002025538029248737,0.006825739342316851,0.39,2.0,0.2803
143
+ narrow,4,1,1,0.0,1.6211,33.166,1,0.001950587025312933,0.007770531249500809,0.39,4.0,1.3905
144
+ narrow,4,2,1,0.0,1.6173,6.738,1,0.0019796316087935906,0.0070878145943513386,0.39,1.0,0.4296
145
+ narrow,4,3,1,0.0,1.6136,9.74,1,0.0020534376837277827,0.006735637324712475,0.35,1.0,0.2916
146
+ narrow,4,4,1,0.0,1.6136,7.569,1,0.0018849313610159117,0.006859079428186874,0.39,1.0,0.7551
147
+ narrow,4,5,1,0.0,1.6211,12.817,1,0.001972283875193414,0.009334582910834372,0.39,1.0,0.363
148
+ narrow,4,6,1,0.0,1.6286,21.917,1,0.0018809682630828088,0.007532602869301459,0.39,2.0,0.9728
149
+ narrow,4,7,1,0.0,1.6173,8.763,1,0.00112640456393639,0.006139127352675775,0.35,1.0,0.4428
150
+ narrow,4,8,1,0.0,1.6173,12.042,1,0.0019723104215298394,0.006917801621071944,0.3,1.0,0.5181
151
+ narrow,4,9,1,0.0,1.6286,11.859,1,0.0019606494241169747,0.006612057150226857,0.2,1.0,0.2786
152
+ narrow,5,0,1,0.0,1.6136,19.493,1,0.002020106108630322,0.006717030597583976,0.39,2.0,0.3428
153
+ narrow,5,1,1,0.0,1.6099,17.049,1,0.0020391423628536875,0.006793337164221602,0.39,2.0,0.3957
154
+ narrow,5,2,1,0.0,1.6173,7.465,1,0.0020082523087787047,0.006832555292824241,0.37,1.0,0.2609
155
+ narrow,5,3,1,0.0,1.6136,8.999,1,0.001990055928141502,0.006886804279085018,0.37,1.0,0.2085
156
+ narrow,5,4,1,0.0,1.6173,16.73,1,0.002026893257228611,0.006730021406347823,0.39,2.0,0.2605
157
+ narrow,5,5,1,0.0,1.6136,10.098,1,0.0019920731657442656,0.006787034090934163,0.37,1.0,0.3468
158
+ narrow,5,6,1,0.0,1.6099,11.496,1,0.001990259481148891,0.006750255274267684,0.35,1.0,0.331
159
+ narrow,5,7,1,0.0,1.6136,9.004,1,0.002010333574092929,0.006795227977248006,0.35,1.0,0.4534
160
+ narrow,5,8,1,0.0,1.6136,17.565,1,0.0019937873614078025,0.006913860918542831,0.39,2.0,0.5678
161
+ narrow,5,9,1,0.0,1.6173,10.482,1,0.001970430586465804,0.007183236852329203,0.3,1.0,0.364
162
+ narrow,6,0,1,0.0,1.6099,17.516,1,0.0019983268481886278,0.006798210717526895,0.39,2.0,0.3208
163
+ narrow,6,1,1,0.0,1.6323,21.112,1,0.0011496613327274105,0.006268117444335188,0.39,2.0,0.4626
164
+ narrow,6,2,1,0.0,1.6173,8.178,1,0.0014969576035734663,0.006147547401013527,0.35,1.0,0.2786
165
+ narrow,6,3,1,0.0,1.6136,9.656,1,0.001105033077356213,0.0061475295304771315,0.35,1.0,0.4458
166
+ narrow,6,4,1,0.0,1.6211,17.567,1,0.0016009157138531594,0.0063955119336116684,0.39,2.0,0.6519
167
+ narrow,6,5,1,0.0,1.6173,7.779,1,0.0019739952304856025,0.006894981468273074,0.37,1.0,0.3144
168
+ narrow,6,6,1,0.0,1.6136,22.547,1,0.0019719334657743517,0.006767841888395903,0.39,2.0,0.4
169
+ narrow,6,7,1,0.0,1.6136,8.433,1,0.002008600912650213,0.00679210259208096,0.35,1.0,0.2606
170
+ narrow,6,8,1,0.0,1.6136,8.868,1,0.0019965410108168987,0.006801669747614908,0.37,1.0,0.3402
171
+ narrow,6,9,1,0.0,1.6286,6.669,1,0.0019978400377225177,0.0069687787924022785,0.37,1.0,0.2695
172
+ narrow,7,0,1,0.0,1.6211,31.892,1,0.0019198423126509112,0.006985921460676825,0.39,2.0,1.3894
173
+ narrow,7,1,1,0.0,1.6136,6.675,1,0.0019932408526178785,0.006907655810465669,0.39,1.0,0.2218
174
+ narrow,7,2,1,0.0,1.6211,21.069,1,0.00204342940170449,0.006670158956225266,0.37,2.0,0.4417
175
+ narrow,7,3,1,0.0,1.6211,6.163,1,0.002020549848551925,0.006803289218225868,0.39,1.0,0.4038
176
+ narrow,7,4,1,0.0,1.6211,7.306,1,0.0020121529418267274,0.006898298554023104,0.37,1.0,0.3055
177
+ narrow,7,5,1,0.0,1.6061,10.266,1,0.0019807719281912622,0.007554080790315312,0.39,1.0,0.3505
178
+ narrow,7,6,1,0.0,1.6099,17.279,1,0.002049932128446194,0.006823713260723771,0.39,2.0,0.3611
179
+ narrow,7,7,1,0.0,1.6248,8.393,1,0.0011179196321504897,0.006200282832803398,0.35,1.0,0.3201
180
+ narrow,7,8,1,0.0,1.6136,23.814,1,0.0016248825702489152,0.0063334052822424936,0.39,2.0,0.4752
181
+ narrow,7,9,1,0.0,1.6211,16.28,1,0.0020387532007825437,0.006774989684675325,0.39,2.0,0.329
182
+ narrow,8,0,1,0.0,1.6173,21.236,1,0.0018604473419191203,0.008442949226319071,0.2,1.0,0.8293
183
+ narrow,8,1,1,0.0,1.6248,11.19,1,0.0019612926980657796,0.006803924143479257,0.35,1.0,0.4022
184
+ narrow,8,2,1,0.0,1.6099,24.135,1,0.0019612882863195096,0.010670101936560648,0.3,2.0,0.6442
185
+ narrow,8,3,1,0.0,1.6211,17.348,1,0.0020231154333402402,0.006793924210847713,0.39,2.0,0.3446
186
+ narrow,8,4,1,0.0,1.6099,6.834,1,0.0020534401837709157,0.006870043409953522,0.37,1.0,0.3099
187
+ narrow,8,5,1,0.0,1.6136,14.96,1,0.0019085361183718477,0.006991254540483043,0.39,1.0,0.3651
188
+ narrow,8,6,1,0.0,1.6136,13.518,1,0.0020189523604656127,0.007291274031261187,0.35,1.0,0.2711
189
+ narrow,8,7,1,0.0,1.6173,4.11,1,0.00200715369789276,0.0070039664216336,0.39,1.0,0.2022
190
+ narrow,8,8,1,0.0,1.6211,7.329,1,0.001588297092466881,0.006489018441187913,0.37,1.0,0.3517
191
+ narrow,8,9,1,0.0,1.6323,8.764,1,0.001097571696301809,0.006133379437776837,0.35,1.0,0.3324
192
+ narrow,9,0,1,0.0,1.6211,25.356,1,0.001979425712150824,0.006753680019367313,0.37,1.0,0.224
193
+ narrow,9,1,1,0.0,1.6211,22.247,1,0.0010934593119903328,0.0061728885964812755,0.37,2.0,0.9214
194
+ narrow,9,2,1,0.0,1.6211,8.844,1,0.00202554490554134,0.006734807972441567,0.35,1.0,0.4091
195
+ narrow,9,3,1,0.0,1.6136,9.368,1,0.0019933562343455577,0.006921190135018064,0.35,1.0,0.4584
196
+ narrow,9,4,1,0.0,1.6099,16.759,1,0.001929740969805966,0.006776820753402454,0.39,2.0,0.5089
197
+ narrow,9,5,1,0.0,1.6136,9.086,1,0.002051066861217076,0.006867397433064373,0.37,1.0,0.278
198
+ narrow,9,6,1,0.0,1.6286,19.162,1,0.0019681195408572543,0.007014855126379596,0.39,2.0,0.3442
199
+ narrow,9,7,1,0.0,1.6211,14.382,1,0.00197399283490376,0.0069953377265193125,0.1,1.0,0.5845
200
+ narrow,9,8,1,0.0,1.6173,8.518,1,0.0019859854172723595,0.0072022335306484025,0.35,1.0,0.2192
201
+ narrow,9,9,1,0.0,1.6211,10.778,1,0.0020125772082876187,0.00671340125749321,0.3,1.0,0.4303
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0.plans.jsonl ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.406}}
2
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2645}}
3
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2819}}
4
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2483}}
5
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2}}
6
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.3607}}
7
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2591}}
8
+ {"final_margin": 0.37, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.6989}}
9
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.3133}}
10
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.4078}}
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/0/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84fff9197ad0e8095c8e38d5291c11bf8baba733e8a5b9c976bf3d1eb1b04ac8
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/1/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee0a2e9e1936fc5c5366f0514ec4b977690f288aa70afe285e61675aa22e8380
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/2/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b82c5fcf3ffc38e4e54efd61bdfbd907ec76fce317cd6e4cff4d804c21b93136
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/3/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca9b49262efe5c420b0f4984e76416ba7119aa40508b999d7fa3ec916bc3c78d
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/4/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b0be8a4dd2eee5e528556777c5dbff1a7dad8132db87203732405c513cff43b
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/5/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab9bd732914feddf908abce85eb79b0fe4a44fef277ac104874b0f7c4cb968bc
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/6/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a686faabfda793ef3661595dab741c7968f781c1b14c7bccdc034e691ebd4c84
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/7/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca96dc1154d77f1e5d3ed2a2c854a4537043e674b5e4dc83e023ed538383746d
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/8/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ca1f0c0bca916591299e3ae9f4966f2f63571d747a5665f8c0a581ee9644e4d
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/9/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c0801090f5e234dd2ba0015803c3b40e8dedf1fa0c7d3968ffa8031af5172d4
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/config.yaml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed: 0
2
+ log_folder: $MB_RUNS
3
+ exp_name: globmp/broad/seed0
4
+ overwrite: true
5
+ dataset:
6
+ env_name: maze2d-large-v1
7
+ horizon: 384
8
+ normalizer: LimitsNormalizer
9
+ max_path_length: 40000
10
+ max_n_episodes: 1200
11
+ termination_penalty: 0.0
12
+ preprocess_fns:
13
+ - maze2d_set_terminals
14
+ diffusion:
15
+ prediction_type: data
16
+ lr: 0.001
17
+ scheduler_T_max: 10000
18
+ noise_schedule_kwargs: {}
19
+ antithetic_sampling: false
20
+ clip_denoised: true
21
+ dim: 32
22
+ dim_mults:
23
+ - 1
24
+ - 4
25
+ - 8
26
+ train:
27
+ accelerator: auto
28
+ devices: 1
29
+ n_train_steps: 2000000
30
+ gradient_accumulation_steps: 1
31
+ log_every_n_steps: 10
32
+ batch_size: 32
33
+ num_workers: 0
34
+ enable_checkpointing: true
35
+ ckpt_save_freq: 50000
36
+ ema_decay: 0.995
37
+ render_freq: 10000
38
+ render_n_samples_per_condition: 5
39
+ render_n_batches: 3
40
+ compile_fullgraph: false
41
+ compile_dynamic: false
42
+ compile_disable: false
43
+ eval:
44
+ num_random_repeats: 10
45
+ device: cuda
46
+ use_float64: true
47
+ fixed_start: true
48
+ verbose_saving: false
49
+ save_generation: false
50
+ save_trajectories: true
51
+ batch_size: 1
52
+ dynamics_path: $MB_RUNS/dynamics/linear_model.npz
53
+ weights_path: ../maze2d_baselines/checkpoints/last.ckpt
54
+ policy:
55
+ obstacle_type: broad
56
+ sampling_steps: 32
57
+ time_discretization: uniform
58
+ time_discretization_kwargs:
59
+ prior_time_offset: 0.001
60
+ sampler_interpolation_coeff: 1.0
61
+ env_objective:
62
+ - distance
63
+ env_constraints:
64
+ - ellipses
65
+ - dynamics
66
+ - input_saturation
67
+ proxy_objective_value_weight: 2.0
68
+ proxy_constraint_penalty_weight: 0.1
69
+ constraint_margin: 0.4
70
+ policy_kwargs:
71
+ guidance_start_fraction: 0.5
72
+ control_penalty_weight: 1.0
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/statistics.csv ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ run_id,avg_ipopt_iters,computation_time,fixed_start,generated_AS,generated_CS,generated_safety,generated_total_violations,ipopt_failure_rate,proxy_value,reward,rollout_AS,rollout_CS,rollout_actions,rollout_safety,rollout_total_violations,safety,score,steps,total_control,total_violation
2
+ 0,0.0,3.67946869879961,True,0.0019916901535614543,0.006761591110196194,1.0,0.0,0.0,-0.05504869882507924,437.0,0.0009055486389034536,0.0024516791441175655,0.01724839643294706,1.0,0.0,True,1.6098619476972575,800,6195.29111752545,0.0
3
+ 1,0.0,2.239650074392557,True,0.002052214335897132,0.006723777949774712,1.0,0.0,0.0,-0.05709807579328469,438.0,0.000954639019087827,0.0026774724385913236,0.0201515736886284,1.0,0.0,True,1.6136032025141231,800,5325.22779370112,0.0
4
+ 2,0.0,4.401820331811905,True,0.0020602981320565253,0.007003467281150988,1.0,0.0,0.0,-0.05610830131798031,437.0,0.0009531321325621469,0.002211306290432385,0.019292279286726645,1.0,0.0,True,1.6098619476972575,800,5101.105271506564,0.0
5
+ 3,0.0,3.570120256394148,True,0.0020155581391113836,0.006663941894209721,1.0,0.0,0.0,-0.05554905668360248,436.0,0.0009311038009102587,0.0031829393106512648,0.023107651197368476,1.0,0.0,True,1.606120692880392,800,5877.7829665302515,0.0
6
+ 4,0.0,5.52586068212986,True,0.0020161022096477983,0.007381107299862381,1.0,0.0,0.0,-0.05585042903022621,439.0,0.0009200910013621871,0.0017602334675424845,0.01383578480396536,1.0,0.0,True,1.6173444573309887,800,6402.324175549702,0.0
7
+ 5,0.0,3.0077345222234726,True,0.0019298622922511075,0.006793624989196305,1.0,0.0,0.0,-0.056908019205283725,440.0,0.0008815044441565816,0.0016213118750401721,0.015848912072177444,1.0,0.0,True,1.6210857121478544,800,7784.332795187234,0.0
8
+ 6,0.0,2.235426649451256,True,0.001977679593535963,0.007041302910201195,1.0,0.0,0.0,-0.056282215033203256,438.0,0.0009107931211146713,0.0019176567994209476,0.015183279354482602,1.0,0.0,True,1.6136032025141231,800,6329.0492962379985,0.0
9
+ 7,0.0,6.834840513765812,True,0.0020044400043950808,0.00716486391459785,1.0,0.0,0.0,-0.0477740109757491,437.0,0.0009551387962129434,0.004888094708561013,0.03185699334767381,1.0,0.0,True,1.6098619476972575,800,10572.681320648206,0.0
10
+ 8,0.0,9.39736170321703,True,0.002060119767287485,0.006765390080972161,1.0,0.0,0.0,-0.057381162929431816,437.0,0.0009471725027636255,0.0020390364426227632,0.016724733835498808,1.0,0.0,True,1.6098619476972575,800,5301.387155753237,0.0
11
+ 9,0.0,2.6082201339304447,True,0.0020688169935099052,0.006891978138749103,1.0,0.0,0.0,-0.05806688217529888,438.0,0.0009547892301250132,0.001954331872614124,0.013681449008789249,1.0,0.0,True,1.6136032025141231,800,5282.9483073505835,0.0
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed0/eval/summary_statistics.txt ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EVALUATION SUMMARY STATISTICS
2
+ ================================================================================
3
+ Total runs: 10
4
+
5
+ avg_ipopt_iters:
6
+ Mean: 0.000000
7
+ Std: 0.000000
8
+ Min: 0.000000
9
+ Max: 0.000000
10
+
11
+ computation_time:
12
+ Mean: 4.350050
13
+ Std: 2.187554
14
+ Min: 2.235427
15
+ Max: 9.397362
16
+
17
+ generated_AS:
18
+ Mean: 0.002018
19
+ Std: 0.000042
20
+ Min: 0.001930
21
+ Max: 0.002069
22
+
23
+ generated_CS:
24
+ Mean: 0.006919
25
+ Std: 0.000215
26
+ Min: 0.006664
27
+ Max: 0.007381
28
+
29
+ generated_safety:
30
+ Mean: 1.000000
31
+ Std: 0.000000
32
+ Min: 1.000000
33
+ Max: 1.000000
34
+
35
+ generated_total_violations:
36
+ Mean: 0.000000
37
+ Std: 0.000000
38
+ Min: 0.000000
39
+ Max: 0.000000
40
+
41
+ ipopt_failure_rate:
42
+ Mean: 0.000000
43
+ Std: 0.000000
44
+ Min: 0.000000
45
+ Max: 0.000000
46
+
47
+ proxy_value:
48
+ Mean: -0.055607
49
+ Std: 0.002749
50
+ Min: -0.058067
51
+ Max: -0.047774
52
+
53
+ reward:
54
+ Mean: 437.700000
55
+ Std: 1.100000
56
+ Min: 436.000000
57
+ Max: 440.000000
58
+
59
+ rollout_AS:
60
+ Mean: 0.000931
61
+ Std: 0.000025
62
+ Min: 0.000882
63
+ Max: 0.000955
64
+
65
+ rollout_CS:
66
+ Mean: 0.002470
67
+ Std: 0.000919
68
+ Min: 0.001621
69
+ Max: 0.004888
70
+
71
+ rollout_actions:
72
+ Mean: 0.018693
73
+ Std: 0.005199
74
+ Min: 0.013681
75
+ Max: 0.031857
76
+
77
+ rollout_safety:
78
+ Mean: 1.000000
79
+ Std: 0.000000
80
+ Min: 1.000000
81
+ Max: 1.000000
82
+
83
+ rollout_total_violations:
84
+ Mean: 0.000000
85
+ Std: 0.000000
86
+ Min: 0.000000
87
+ Max: 0.000000
88
+
89
+ safety:
90
+ Mean: 1.000000
91
+ Std: 0.000000
92
+ Min: 1.000000
93
+ Max: 1.000000
94
+
95
+ score:
96
+ Mean: 1.612481
97
+ Std: 0.004115
98
+ Min: 1.606121
99
+ Max: 1.621086
100
+
101
+ steps:
102
+ Mean: 800.000000
103
+ Std: 0.000000
104
+ Min: 800.000000
105
+ Max: 800.000000
106
+
107
+ total_control:
108
+ Mean: 6417.213020
109
+ Std: 1579.283288
110
+ Min: 5101.105272
111
+ Max: 10572.681321
112
+
113
+ total_violation:
114
+ Mean: 0.000000
115
+ Std: 0.000000
116
+ Min: 0.000000
117
+ Max: 0.000000
118
+
119
+ ================================================================================
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1.plans.jsonl ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.251}}
2
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.4076}}
3
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5823, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2727}}
4
+ {"final_margin": 0.35, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5823, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.2215}}
5
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5946, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.3312}}
6
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.5823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5946, 0.0, 0.0, 0.7071, 0.1903, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 2.0, "retries": 1, "dev_max": 0.4908}}
7
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.5823, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5946, 0.0, 0.0, 0.7071, 0.1903, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 2.0, "retries": 1, "dev_max": 0.3678}}
8
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.0, 0.0, 0.0, 0.5946, 0.0, 0.0, 0.7071, 0.1903, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.5305}}
9
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.5946, 0.0, 0.0, 0.7071, 0.1903, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6186, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": null, "retries": 3, "dev_max": 1.5884}}
10
+ {"final_margin": 0.39, "final_ok": true, "alg2_rel_drop": [0.0, 0.7071, 0.1903, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6186, 0.0, 0.0, 0.0, 0.0, 0.0], "n_ok": 16, "tube": {"r0": 0.2, "scale": 1.0, "retries": 0, "dev_max": 0.3736}}
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/0/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7787e2e3fe269a4a62781732b34228594fcb03c22bc8b0a9e999c110749c05f6
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/rollout.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/1/trajectories.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51b5648c3f135c8aac035b58d7d8eb1108f38c49d88d6fad0ef9a30d62279895
3
+ size 57978
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/2/predicted.png ADDED
applications/maze2d/direct_globmp/results/globmp_nowalls/broad/seed1/eval/2/rollout.png ADDED