fix large ONNX staging

This commit is contained in:
firestar5683
2026-08-04 00:19:02 -05:00
parent 62afc81810
commit ab447ef306
3 changed files with 92 additions and 1 deletions
+3
View File
@@ -476,6 +476,9 @@ def _parse_size(value):
def read_file_chunked_to_disk(path):
from openpilot.common.file_chunker import open_file_chunked
if os.path.isfile(path):
return os.fspath(path)
temporary_path = f"{path}.unchunked"
try:
with open(temporary_path, "wb") as output, open_file_chunked(path) as source: