Spaces:
Running on Zero
Running on Zero
Default training and frozen evaluation to 60 Hz decisions (batch count 1)
Browse files- RELEASE_MANIFEST.json +3 -3
- bucket_storage.py +1 -1
- index.html +2 -2
- training_config.py +1 -1
RELEASE_MANIFEST.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"bin/altd-sim": "792139f30bcfecf25f2d78595d2611234d30b0a254b5ece0ec587f1d27a80df2",
|
| 28 |
"bin/extract_saved_track": "3a7733c45b4301a786fcbfe92660a1c484749272da5f608d62f34878bd4ff31a",
|
| 29 |
"bin/libaltd_gpu.so": "e5e9a61d863bc3b429af69a13cd8d50f63cad8984b3e6a9001ae342fc5981e05",
|
| 30 |
-
"bucket_storage.py": "
|
| 31 |
"build_info.py": "bffe4eb92fe3361f4ceb43b1264ca1528962ac67fa629de047f590165d238ee8",
|
| 32 |
"builtin_tracks/catalog.json": "4a7bba4385713e985d1427a0da35dcc32d5ecfd73d93cad7520563deb8685670",
|
| 33 |
"builtin_tracks/tracks/Replica A01 Beginner.track": "ca5749537450430794e2eade2e0ac72fa141a4f225e13e2f8ef842abb948ff15",
|
|
@@ -65,7 +65,7 @@
|
|
| 65 |
"help.html": "4ce8f3995723a419d810c60212e996d71bfc0fcb61d44bf4fa8500030c356f47",
|
| 66 |
"hf-auth.js": "3f3938bbc0935e4e9230c094029ef46e03beea74be199887c50e053e03dafcfe",
|
| 67 |
"hf_identity.py": "913fb1e089af21f376e8359a20cbc838d5bcd7971def6989a4382d53c1127b37",
|
| 68 |
-
"index.html": "
|
| 69 |
"native/analysis.patch": "42f79de67cb0734cffb2a7582f5479cab42ab82675884b8b42b9f158d46a98e8",
|
| 70 |
"native/build-receipt.json": "559a7e4e382f9f7caa1c5ceb566a5a0bbefad2ed3a2e2cf604e31c9c3890c348",
|
| 71 |
"native/physics-build-receipt.json": "63561c108554a09884cc68a1bfadfb8a3f530a800de0700ff671d99e558609fe",
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"steam_leaderboard.py": "d76397c39cae58f636ddf9a9be1a46ae3d77fefd6b7269feac73d34d97165481",
|
| 85 |
"track-library.js": "351ec4c026b49420ce963f4310cb000d9e987fd28e6dac5ecd0176509340f6e6",
|
| 86 |
"track-map.js": "ab5374aa49c7ccec90a787ee8c56cd71beb56b903bf2bbc322783e6f43c009f0",
|
| 87 |
-
"training_config.py": "
|
| 88 |
"vendor/gradio-client/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 89 |
"vendor/gradio-client/dist/index.min.js": "fdd776db8633354f118fe2908c980592283968737e6b91dc3aa86d648da5c3fd",
|
| 90 |
"vendor/gradio-client/package.json": "96c5b9e6d3587fb7bd8e5bb28775ece222de1043045afc4e6389c88db137ad0e",
|
|
|
|
| 27 |
"bin/altd-sim": "792139f30bcfecf25f2d78595d2611234d30b0a254b5ece0ec587f1d27a80df2",
|
| 28 |
"bin/extract_saved_track": "3a7733c45b4301a786fcbfe92660a1c484749272da5f608d62f34878bd4ff31a",
|
| 29 |
"bin/libaltd_gpu.so": "e5e9a61d863bc3b429af69a13cd8d50f63cad8984b3e6a9001ae342fc5981e05",
|
| 30 |
+
"bucket_storage.py": "f3044964724de322c1372adc23fa31f83f33ff0096f2b8509eb137953d983ddb",
|
| 31 |
"build_info.py": "bffe4eb92fe3361f4ceb43b1264ca1528962ac67fa629de047f590165d238ee8",
|
| 32 |
"builtin_tracks/catalog.json": "4a7bba4385713e985d1427a0da35dcc32d5ecfd73d93cad7520563deb8685670",
|
| 33 |
"builtin_tracks/tracks/Replica A01 Beginner.track": "ca5749537450430794e2eade2e0ac72fa141a4f225e13e2f8ef842abb948ff15",
|
|
|
|
| 65 |
"help.html": "4ce8f3995723a419d810c60212e996d71bfc0fcb61d44bf4fa8500030c356f47",
|
| 66 |
"hf-auth.js": "3f3938bbc0935e4e9230c094029ef46e03beea74be199887c50e053e03dafcfe",
|
| 67 |
"hf_identity.py": "913fb1e089af21f376e8359a20cbc838d5bcd7971def6989a4382d53c1127b37",
|
| 68 |
+
"index.html": "99e2718ccaf02002a472d5c6dbf25e44776769c6570c3a135e6bbff0e26a0820",
|
| 69 |
"native/analysis.patch": "42f79de67cb0734cffb2a7582f5479cab42ab82675884b8b42b9f158d46a98e8",
|
| 70 |
"native/build-receipt.json": "559a7e4e382f9f7caa1c5ceb566a5a0bbefad2ed3a2e2cf604e31c9c3890c348",
|
| 71 |
"native/physics-build-receipt.json": "63561c108554a09884cc68a1bfadfb8a3f530a800de0700ff671d99e558609fe",
|
|
|
|
| 84 |
"steam_leaderboard.py": "d76397c39cae58f636ddf9a9be1a46ae3d77fefd6b7269feac73d34d97165481",
|
| 85 |
"track-library.js": "351ec4c026b49420ce963f4310cb000d9e987fd28e6dac5ecd0176509340f6e6",
|
| 86 |
"track-map.js": "ab5374aa49c7ccec90a787ee8c56cd71beb56b903bf2bbc322783e6f43c009f0",
|
| 87 |
+
"training_config.py": "6eb7282bbee3b3a6273bddc29c949d9904067414c26e501d815012f033173a1c",
|
| 88 |
"vendor/gradio-client/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 89 |
"vendor/gradio-client/dist/index.min.js": "fdd776db8633354f118fe2908c980592283968737e6b91dc3aa86d648da5c3fd",
|
| 90 |
"vendor/gradio-client/package.json": "96c5b9e6d3587fb7bd8e5bb28775ece222de1043045afc4e6389c88db137ad0e",
|
bucket_storage.py
CHANGED
|
@@ -76,7 +76,7 @@ RECIPE_DEFAULT_SETTINGS = {
|
|
| 76 |
"population": 4, "generations": 1, "ticks": 60, "mutation": 0.01,
|
| 77 |
"seed": 42, "mutation_end": 0.01, "schedule": "fixed", "selection": "best",
|
| 78 |
"parents": 1, "elite": 1, "crossover": "none", "decay": 0,
|
| 79 |
-
"adaptive_mutation": False, "control_hz":
|
| 80 |
"collision": False, "idle": False,
|
| 81 |
"rewards": [{"metric": "total_score", "type": "default", "weight": 100}],
|
| 82 |
}
|
|
|
|
| 76 |
"population": 4, "generations": 1, "ticks": 60, "mutation": 0.01,
|
| 77 |
"seed": 42, "mutation_end": 0.01, "schedule": "fixed", "selection": "best",
|
| 78 |
"parents": 1, "elite": 1, "crossover": "none", "decay": 0,
|
| 79 |
+
"adaptive_mutation": False, "control_hz": 60, "workers": 1,
|
| 80 |
"collision": False, "idle": False,
|
| 81 |
"rewards": [{"metric": "total_score", "type": "default", "weight": 100}],
|
| 82 |
}
|
index.html
CHANGED
|
@@ -85,7 +85,7 @@
|
|
| 85 |
<label for="reward_preset">Reward preset</label><select id="reward_preset" disabled><option value="custom">Custom</option><option value="distance" selected>First laps · distance only (+100 total score)</option><option value="center">Example mix · center, clearance, collisions</option><option value="clean">Clean driving · distance + collision penalty</option><option value="lap">Lap refinement · best lap only</option></select>
|
| 86 |
<div id="rewards"></div><button id="add" disabled>+ Add reward</button><small>Weights −100…+100; absolute shares normalize to 100%. Fourteen distinct metrics maximum. The current vehicle runner accepts these metrics; choose them for the behavior you want to train.</small>
|
| 87 |
</details></div>
|
| 88 |
-
<details id="run_settings"><summary>Run settings · timing and elimination</summary><div class="row"><div><label for="control_hz">Decisions per second</label><select id="control_hz" disabled><option>60</option><option
|
| 89 |
<p>Each recipe contains the training settings and reward mix. Tracks, networks and results stay out of the recipe library. Saving a recipe sends nothing to the server. Settings are sent when you start a run.</p>
|
| 90 |
<div class="row"><label for="recipe_slot">Recipe slot<select id="recipe_slot"><option>A</option><option>B</option><option>C</option><option>D</option><option>E</option><option>F</option><option>G</option><option>H</option><option>I</option><option>J</option></select></label><label for="recipe_name">Recipe name<input id="recipe_name" maxlength="80" value="My recipe"></label></div>
|
| 91 |
<button id="recipe_save">Save current settings</button> <button id="recipe_load">Load recipe</button>
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
const KEY='tiga.ald.recipes.v1';
|
| 100 |
const defaults={population:4,generations:1,ticks:60,mutation:0.01,seed:42,
|
| 101 |
mutation_end:0.01,schedule:'fixed',selection:'best',parents:1,elite:1,crossover:'none',
|
| 102 |
-
decay:0,adaptive_mutation:false,control_hz:
|
| 103 |
rewards:[{metric:'total_score',type:'default',weight:100}],freeze:{layers:[],inputs:[],outputs:[]}};
|
| 104 |
const metrics=['total_score','total_speed','total_abs_steering','total_actual_distance',
|
| 105 |
'total_drifting_amount','total_momentum_change_frequency','total_throttle_change_frequency',
|
|
|
|
| 85 |
<label for="reward_preset">Reward preset</label><select id="reward_preset" disabled><option value="custom">Custom</option><option value="distance" selected>First laps · distance only (+100 total score)</option><option value="center">Example mix · center, clearance, collisions</option><option value="clean">Clean driving · distance + collision penalty</option><option value="lap">Lap refinement · best lap only</option></select>
|
| 86 |
<div id="rewards"></div><button id="add" disabled>+ Add reward</button><small>Weights −100…+100; absolute shares normalize to 100%. Fourteen distinct metrics maximum. The current vehicle runner accepts these metrics; choose them for the behavior you want to train.</small>
|
| 87 |
</details></div>
|
| 88 |
+
<details id="run_settings"><summary>Run settings · timing and elimination</summary><div class="row"><div><label for="control_hz">Decisions per second</label><select id="control_hz" disabled><option selected>60</option><option>30</option><option>15</option></select></div><div><label for="workers">Parallel simulations</label><select id="workers" disabled><option>1</option><option selected>1</option><option>2</option><option>3</option><option>4</option></select></div></div><small>Physics runs at 60 Hz. CPU jobs can use 1–4 worker threads.</small><div id="seed_group"><label for="seed">Random seed</label><input id="seed" type="number" min="0" max="2147483647" value="42105" disabled></div><label><input id="collision" type="checkbox" disabled> Eliminate on wall contact</label><label><input id="idle" type="checkbox" disabled> Eliminate when stuck</label><label for="clean_min_laps">Minimum forward laps for a clean-lap winner</label><input id="clean_min_laps" type="number" min="1" max="100" value="2"><small>Winner classification only. Zero physical contacts are required. This does not change your reward recipe.</small></details></div><div id="libraries" class="card"><h3>Recipes · A–J · saved in this browser</h3>
|
| 89 |
<p>Each recipe contains the training settings and reward mix. Tracks, networks and results stay out of the recipe library. Saving a recipe sends nothing to the server. Settings are sent when you start a run.</p>
|
| 90 |
<div class="row"><label for="recipe_slot">Recipe slot<select id="recipe_slot"><option>A</option><option>B</option><option>C</option><option>D</option><option>E</option><option>F</option><option>G</option><option>H</option><option>I</option><option>J</option></select></label><label for="recipe_name">Recipe name<input id="recipe_name" maxlength="80" value="My recipe"></label></div>
|
| 91 |
<button id="recipe_save">Save current settings</button> <button id="recipe_load">Load recipe</button>
|
|
|
|
| 99 |
const KEY='tiga.ald.recipes.v1';
|
| 100 |
const defaults={population:4,generations:1,ticks:60,mutation:0.01,seed:42,
|
| 101 |
mutation_end:0.01,schedule:'fixed',selection:'best',parents:1,elite:1,crossover:'none',
|
| 102 |
+
decay:0,adaptive_mutation:false,control_hz:60,workers:1,collision:false,idle:false,
|
| 103 |
rewards:[{metric:'total_score',type:'default',weight:100}],freeze:{layers:[],inputs:[],outputs:[]}};
|
| 104 |
const metrics=['total_score','total_speed','total_abs_steering','total_actual_distance',
|
| 105 |
'total_drifting_amount','total_momentum_change_frequency','total_throttle_change_frequency',
|
training_config.py
CHANGED
|
@@ -4,7 +4,7 @@ import math
|
|
| 4 |
|
| 5 |
DEFAULTS={'mode':'train','clean_min_laps':2,'population':4,'generations':1,'ticks':60,'mutation':.01,'seed':42,
|
| 6 |
'mutation_end':.01,'schedule':'fixed','selection':'best','parents':1,'elite':1,
|
| 7 |
-
'crossover':'none','decay':0,'adaptive_mutation':False,'control_hz':
|
| 8 |
'collision':False,'idle':False,'freeze':{'layers':[],'inputs':[],'outputs':[]},
|
| 9 |
'rewards':[{'metric':'total_score','type':'default','weight':100}]}
|
| 10 |
METRICS={'total_score','total_speed','total_abs_steering','total_actual_distance',
|
|
|
|
| 4 |
|
| 5 |
DEFAULTS={'mode':'train','clean_min_laps':2,'population':4,'generations':1,'ticks':60,'mutation':.01,'seed':42,
|
| 6 |
'mutation_end':.01,'schedule':'fixed','selection':'best','parents':1,'elite':1,
|
| 7 |
+
'crossover':'none','decay':0,'adaptive_mutation':False,'control_hz':60,'workers':1,
|
| 8 |
'collision':False,'idle':False,'freeze':{'layers':[],'inputs':[],'outputs':[]},
|
| 9 |
'rewards':[{'metric':'total_score','type':'default','weight':100}]}
|
| 10 |
METRICS={'total_score','total_speed','total_abs_steering','total_actual_distance',
|