Browse Source

add README

master
ming.hong 11 months ago
parent
commit
dbe004953e
  1. 8
      README.md
  2. 4
      async_infer_advanced_example.cpp

8
README.md

@ -0,0 +1,8 @@
替換權重:
1. 找到 async_infer_advanced_example.cpp 裡的 main ,將 hef 檔案替換成 YOLOv5 和 YOLOv7,如下
2. auto infer_model = vdevice->create_infer_model("yolov7_yuv21.hef").expect("Failed to create infer model");
3. 到 build 底下重新編譯 .\detection_app.exe
目前輸入格式為 (YUV 大小會從 640 * 360 -> 640 * 640):
.\detection_app.exe .\input.yuv output.yuv

4
async_infer_advanced_example.cpp

@ -121,7 +121,7 @@ void readYUVThread(const std::string& yuvFile, int width, int height, int numFra
frameQueue.push(combinedFrame.clone());
// lock.unlock(); // aviod didn't auto unlock
cv_var.notify_one();
std::cout << "[INFO] Frame pushed to the queue." << std::endl;
// std::cout << "[INFO] Frame pushed to the queue." << std::endl;
}
catch (const std::exception& e) {
@ -133,7 +133,7 @@ void readYUVThread(const std::string& yuvFile, int width, int height, int numFra
std::unique_lock<std::mutex> lock(mtx);
doneReading = true;
cv_var.notify_one();
std::cout << "[INFO] Done reading YUV file." << std::endl;
// std::cout << "[INFO] Done reading YUV file." << std::endl;
}

Loading…
Cancel
Save