mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
Fix tici bigmodel (#23817)
* Fix bigmodel on tici: cam intrinsics arent static * Give TICI route own name for import * Make function useable in offline test * typo * change tici ecam focal to trained focal * No shadow variable * Fixed ref * Force update this time * Update model replay ref commit old-commit-hash: 48154703a7ebad8cfea4b9cfd0e37eee132fc32f
This commit is contained in:
@@ -21,19 +21,21 @@ from selfdrive.version import get_commit
|
||||
from tools.lib.framereader import FrameReader
|
||||
from tools.lib.logreader import LogReader
|
||||
|
||||
if TICI:
|
||||
TEST_ROUTE = "4cf7a6ad03080c90|2021-09-29--13-46-36"
|
||||
else:
|
||||
TEST_ROUTE = "303055c0002aefd1|2021-11-22--18-36-32"
|
||||
TICI_TEST_ROUTE = "4cf7a6ad03080c90|2021-09-29--13-46-36"
|
||||
EON_TEST_ROUTE = "303055c0002aefd1|2021-11-22--18-36-32"
|
||||
SEGMENT = 0
|
||||
if TICI:
|
||||
TEST_ROUTE = TICI_TEST_ROUTE
|
||||
else:
|
||||
TEST_ROUTE = EON_TEST_ROUTE
|
||||
|
||||
SEND_EXTRA_INPUTS = bool(os.getenv("SEND_EXTRA_INPUTS", "0"))
|
||||
|
||||
VIPC_STREAM = {"roadCameraState": VisionStreamType.VISION_STREAM_ROAD, "driverCameraState": VisionStreamType.VISION_STREAM_DRIVER,
|
||||
"wideRoadCameraState": VisionStreamType.VISION_STREAM_WIDE_ROAD}
|
||||
|
||||
def get_log_fn(ref_commit):
|
||||
return f"{TEST_ROUTE}_{'model_tici' if TICI else 'model'}_{ref_commit}.bz2"
|
||||
def get_log_fn(ref_commit, test_route, tici=True):
|
||||
return f"{test_route}_{'model_tici' if tici else 'model'}_{ref_commit}.bz2"
|
||||
|
||||
|
||||
def replace_calib(msg, calib):
|
||||
@@ -159,7 +161,7 @@ if __name__ == "__main__":
|
||||
if not update:
|
||||
with open(ref_commit_fn) as f:
|
||||
ref_commit = f.read().strip()
|
||||
log_fn = get_log_fn(ref_commit)
|
||||
log_fn = get_log_fn(ref_commit, TEST_ROUTE, tici=TICI)
|
||||
try:
|
||||
cmp_log = LogReader(BASE_URL + log_fn)
|
||||
|
||||
@@ -191,7 +193,7 @@ if __name__ == "__main__":
|
||||
print("Uploading new refs")
|
||||
|
||||
new_commit = get_commit()
|
||||
log_fn = get_log_fn(new_commit)
|
||||
log_fn = get_log_fn(new_commit, TEST_ROUTE, tici=TICI)
|
||||
save_log(log_fn, log_msgs)
|
||||
try:
|
||||
upload_file(log_fn, os.path.basename(log_fn))
|
||||
|
||||
@@ -1 +1 @@
|
||||
b48904b48036aa0c023759f214740f226b52b5b8
|
||||
19720e79b1c5136a882efd689651d9044e2e2007
|
||||
|
||||
Reference in New Issue
Block a user