Fix simulator docker: CPU only for now (#20227)

* initial commit

* CPU working in dokcer

* Update selfdrive/manager.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/manager.py

* fixes

* fixing env var

* fixes

* building and running in docker

* camerad fix

* camerad fix

* this ACTUALLY works

* removing unused libraries

* updating to CARLA 0.9.11

* removing useless flags

* small changes

* forgot this

* sudo not needed for xhost

* final changes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 968ed10200913d81833e87a738cd780089eb0eaa
This commit is contained in:
iejMac
2021-03-07 23:02:57 -08:00
committed by GitHub
parent 3ed4ffbc30
commit afc0597686
6 changed files with 41 additions and 54 deletions
+3 -3
View File
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
# TODO: why are the keras models saved with python 2?
from __future__ import print_function
import os
import sys
import numpy as np
os.environ["OMP_NUM_THREADS"] = "1"
import onnxruntime as ort
def read(sz):
@@ -53,4 +54,3 @@ if __name__ == "__main__":
ort_session = ort.InferenceSession(sys.argv[1], options)
ort_session.set_providers([provider], None)
run_loop(ort_session)