enazoe / yolo-tensorrt

TensorRT8.Support Yolov5n,s,m,l,x .darknet -> tensorrt. Yolov4 Yolov3 use raw darknet *.weights and *.cfg fils. If the wrapper is useful to you,please Star it.
MIT License
1.19k stars 315 forks source link

yolov4 eng problem #170

Open tuteming opened 2 years ago

tuteming commented 2 years ago

我使用sln在win10建置test_dll.exe,detector.dll成功,test_dll.exe也工作正常.yolov4-kFLOAT-batch1.eng也生成了. 因為sample_detector.cpp=>#include "class_timer.hpp" and #include "class_detector.h" 等於把整個extra and modules 全部都叫進去了 如果我要寫一個程式(已有yolov4-kFLOAT-batch1.eng),直接做偵測無須生成yolov4-kFLOAT-batch1.eng 請問我需要include modules 哪些檔案? 另外,我如果要用CMakeLists.txt在win10 compile, line 23 "stdc++fs" vs2017不支援,刪除它,compile ok, but run crash. how to solve this problem? 謝謝請賜教

enazoe commented 2 years ago

@tuteming 如果你用cmake来构建的话,现在的cmake文件只能作为参考,可能要修改,dll的生成需要除了sample下的文件剩下的所有文件,如果你现在编译ok,run出错不一定是成像问题,可能是路径问题,比如说图片路径,模型路径之类的