mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-11 02:33:51 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eb64700a9b | |||
| 745a5b812a | |||
| af8cd905ad |
@@ -9,6 +9,7 @@ venv/
|
|||||||
.idea
|
.idea
|
||||||
.overlay_init
|
.overlay_init
|
||||||
.overlay_consistent
|
.overlay_consistent
|
||||||
|
.host_runtime/
|
||||||
.sconsign.dblite
|
.sconsign.dblite
|
||||||
model2.png
|
model2.png
|
||||||
a.out
|
a.out
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ installation guides, and software configuration.
|
|||||||
* Galaxy: StarPilot's portal to configure your comma device using your phone from anywhere.
|
* Galaxy: StarPilot's portal to configure your comma device using your phone from anywhere.
|
||||||
Download models, change settings, update software, visualize live model outputs for tuning.
|
Download models, change settings, update software, visualize live model outputs for tuning.
|
||||||
* Always On Lateral (full time steering assist)*
|
* Always On Lateral (full time steering assist)*
|
||||||
* Learning Speed Limit Controller*
|
* Speed Limit Controller*
|
||||||
|
* Learning Curve Speed Controller*
|
||||||
* Conditional Experimental Mode (CEM)*
|
* Conditional Experimental Mode (CEM)*
|
||||||
* Driving Profiles*
|
* Driving Profiles*
|
||||||
* Custom themes*
|
* Custom themes*
|
||||||
|
|||||||
@@ -343,13 +343,16 @@ class ModelState:
|
|||||||
else:
|
else:
|
||||||
self.off_policy_numpy_inputs[self.off_policy_prev_desired_curv_key][:] = self.full_prev_desired_curv[0, self.temporal_idxs]
|
self.off_policy_numpy_inputs[self.off_policy_prev_desired_curv_key][:] = self.full_prev_desired_curv[0, self.temporal_idxs]
|
||||||
|
|
||||||
combined_outputs_dict = {**vision_outputs_dict, **policy_outputs_dict}
|
combined_outputs_dict = {**vision_outputs_dict}
|
||||||
if self.off_policy_enabled:
|
if self.off_policy_enabled:
|
||||||
self.off_policy_output = self.off_policy_run(**self.off_policy_inputs).contiguous().realize().uop.base.buffer.numpy()
|
self.off_policy_output = self.off_policy_run(**self.off_policy_inputs).contiguous().realize().uop.base.buffer.numpy()
|
||||||
off_policy_outputs_dict = self.off_policy_parser.parse_policy_outputs(
|
off_policy_outputs_dict = self.off_policy_parser.parse_policy_outputs(
|
||||||
self.slice_outputs(self.off_policy_output, self.off_policy_output_slices)
|
self.slice_outputs(self.off_policy_output, self.off_policy_output_slices)
|
||||||
)
|
)
|
||||||
combined_outputs_dict.update(off_policy_outputs_dict)
|
off_policy_outputs_dict.pop('plan', None)
|
||||||
|
combined_outputs_dict = {**combined_outputs_dict, **off_policy_outputs_dict, **policy_outputs_dict}
|
||||||
|
else:
|
||||||
|
combined_outputs_dict = {**combined_outputs_dict, **policy_outputs_dict}
|
||||||
if SEND_RAW_PRED:
|
if SEND_RAW_PRED:
|
||||||
raw_pred = [self.vision_output.copy(), self.policy_output.copy()]
|
raw_pred = [self.vision_output.copy(), self.policy_output.copy()]
|
||||||
if self.off_policy_enabled and self.off_policy_output is not None:
|
if self.off_policy_enabled and self.off_policy_output is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user