Skip to content

Commit af82b6d

Browse files
committed
fix build
1 parent 2e040f3 commit af82b6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SerialPrograms/Source/ML/Models/ML_YOLOv5Model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ std::tuple<int, int, double, double> resize_image_with_border(
5959

6060

6161
YOLOv5Session::YOLOv5Session(const std::string& model_path, std::vector<std::string> label_names, bool use_gpu)
62-
: m_env{create_ORT_env()}
63-
, m_label_names(std::move(label_names))
62+
: m_label_names(std::move(label_names))
63+
, m_env{create_ORT_env()}
6464
, m_session_options(create_session_options(ML_MODEL_CACHE_PATH() + "YOLOv5", use_gpu))
6565
, m_session{create_session(m_env, m_session_options, model_path, ML_MODEL_CACHE_PATH() + "YOLOv5")}
6666
, m_memory_info{Ort::MemoryInfo::CreateCpu(OrtDeviceAllocator, OrtMemTypeCPU)}

0 commit comments

Comments
 (0)