optimizing simulator performance (#20295)

* 20 hz

* weird blank screen on Low quality

* Epic quality
old-commit-hash: ea5fec76368617ec79344b1606a26c70af7e63a5
This commit is contained in:
iejMac
2021-03-09 23:48:46 -08:00
committed by GitHub
parent 46f5cd3559
commit efdd0e213a
2 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import os
import sys
import numpy as np
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["OMP_NUM_THREADS"] = "4"
import onnxruntime as ort
@@ -49,6 +49,9 @@ if __name__ == "__main__":
options = ort.SessionOptions()
options.intra_op_num_threads = 4
options.inter_op_num_threads = 8
options.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL
options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_ALL
provider = 'CPUExecutionProvider'
ort_session = ort.InferenceSession(sys.argv[1], options)

View File

@@ -25,4 +25,4 @@ docker run \
-it \
--gpus all \
carlasim/carla:0.9.11 \
./CarlaUE4.sh -opengl -nosound -quality-level=High
./CarlaUE4.sh -opengl -nosound -quality-level=Epic