From 6b89c27a5eb681b4403969dce898b74947071a99 Mon Sep 17 00:00:00 2001 From: Michael Welter Date: Sat, 23 Oct 2021 20:52:35 +0200 Subject: tracker/nn: Remove onnx session options which hurt performance on Linux --- tracker-neuralnet/ftnoir_tracker_neuralnet.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp index 8beb4119..f5939cf6 100644 --- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp +++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp @@ -568,16 +568,12 @@ bool neuralnet_tracker::load_and_initialize_model() // before running the inference pass. opts.SetIntraOpNumThreads(num_threads); opts.SetInterOpNumThreads(num_threads); - opts.SetGraphOptimizationLevel( - GraphOptimizationLevel::ORT_ENABLE_EXTENDED); - - opts.EnableCpuMemArena(); allocator_info = Ort::MemoryInfo::CreateCpu(OrtArenaAllocator, OrtMemTypeDefault); localizer.emplace( allocator_info, Ort::Session{env, convert(localizer_model_path_enc).c_str(), opts}); - + poseestimator.emplace( allocator_info, Ort::Session{env, convert(poseestimator_model_path_enc).c_str(), opts}); -- cgit v1.2.3