MCPcopy Create free account
hub / github.com/SunOner/sunone_aimbot / _build_export_script

Function _build_export_script

helper_api.py:935–944  ·  view source on GitHub ↗
(model_path: Path, params: dict[str, Any])

Source from the content-addressed store, hash-verified

933
934
935def _build_export_script(model_path: Path, params: dict[str, Any]) -> str:
936 return "\n".join(
937 [
938 "from ultralytics import YOLO",
939 "",
940 "if __name__ == '__main__':",
941 f" exported = YOLO({str(model_path)!r}).export(**{params!r})",
942 " print(f'Exported path: {exported}', flush=True)",
943 ]
944 )
945
946
947def _stream_export(payload: ExportRequest, model_path: Path):

Callers 1

_stream_exportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected