diff --git a/README.md b/README.md new file mode 100644 index 0000000..6c0d720 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/async_infer_advanced_example.cpp b/async_infer_advanced_example.cpp index ec43999..ac04748 100644 --- a/async_infer_advanced_example.cpp +++ b/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 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; }