File size: 3,556 Bytes
81762c0
85d6e75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81762c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Next Drive</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <header>
    <h1>Next Drive</h1>
    <p>A small learned driver crosses a city intersection: traffic lights, people on the crosswalk, a car ahead that slams on the brakes, and parked cars hiding a pedestrian. Pick a scene and a driver; the drive is generated in your browser, decision by decision.</p>
    <div class="badges"><span class="badge warn">Simulation and education only · not for real vehicles</span><span class="badge">Live in-browser driving</span><a class="badge" href="https://huggingface.co/thelamapi/Next-Drive">Model repo</a></div>
  </header>
  <section class="card">
    <div class="row">
      <select id="kind" style="flex:2;min-width:180px" aria-label="scenario"></select>
      <select id="density" style="flex:1;min-width:110px" aria-label="traffic density"><option value="1">light traffic</option><option value="2" selected>busy</option><option value="3">very busy (unseen)</option></select>
      <select id="driver" style="flex:2;min-width:180px" aria-label="driver"></select>
    </div>
    <div class="row" style="margin-top:8px">
      <label for="seed" style="margin:0">Scene seed</label><input type="text" id="seed" value="10007" inputmode="numeric" style="width:110px">
      <button id="go">Drive</button><button id="rand" class="ghost">New random scene</button>
      <label style="margin:0"><input type="checkbox" id="hidden" checked> show pedestrians the car cannot see (dashed)</label>
    </div>
    <canvas id="view" style="margin-top:10px"></canvas>
    <div class="row" style="margin-top:6px"><button id="play">Play</button>
      <select id="speed" style="width:90px" aria-label="playback speed"><option value="0.5">0.5×</option><option value="1" selected>1×</option><option value="2">2×</option><option value="4">4×</option></select>
      <input type="range" id="scrub" min="0" max="10" value="0" style="flex:1;min-width:120px" aria-label="time"></div>
    <div id="outcome" style="margin-top:10px"></div>
    <h3>Critical events (tap to jump)</h3><div id="events" class="chips"></div>
  </section>
  <div class="grid" style="margin-top:12px">
    <section class="card"><h2>Same scene, every driver</h2><div class="scroll"><table id="cmp"></table></div></section>
    <section class="card"><h2>Benchmark on unseen scenes</h2><div class="scroll"><table id="bench"></table></div><p class="small muted" id="benchnote"></p></section>
  </div>
  <section class="card" style="margin-top:12px">
    <h2>Failure replays from the benchmark</h2>
    <p class="small muted">Every recorded failure of the learned drivers can be replayed here; the simulator is deterministic.</p>
    <div id="fails" class="chips"></div>
  </section>
  <section class="card" style="margin-top:12px">
    <h2>Recorded replay</h2>
    <video src="replay.mp4" controls muted playsinline poster="preview.png"></video>
  </section>
  <p class="status" id="status"></p>
  <footer>Next Drive is a 2-D training and education simulation. It controls only speed along a fixed route, perceives the world perfectly except for line-of-sight occlusion, and has never been tested on a vehicle. It makes no claim about real-road safety.</footer>
</main>
<script src="nlrt.js"></script>
<script src="nlui.js"></script>
<script src="core.js"></script>
<script src="app.js"></script>
</body>
</html>