Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘kBOOL’ is not a member of ‘nvinfer1::DataType’ case nvinfer1::DataType::kBOOL: #1

Open
zkailinzhang opened this issue Dec 7, 2021 · 1 comment

Comments

@zkailinzhang
Copy link

yolov5_fastreid_deepsort_tensorrt/includes/common.h: In function ‘unsigned int getElementSize(nvinfer1::DataType)’:
yolov5_fastreid_deepsort_tensorrt/includes/common.h:45:34: error: ‘kBOOL’ is not a member of ‘nvinfer1::DataType’
case nvinfer1::DataType::kBOOL:
^~~~~
/yolov5_fastreid_deepsort_tensorrt/src/fast-reid.cpp: In member function ‘std::vectorcv::Mat fastreid::InferenceImages(std::vectorcv::Mat&)’:
/yolov5_fastreid_deepsort_tensorrt/src/fast-reid.cpp:23:33: error: ‘std::chrono’ has not been declared
auto t_start_pre = std::chrono::high_resolution_clock::now();
^~~~~~
/yolov5_fastreid_deepsort_tensorrt/src/fast-reid.cpp:25:31: error: ‘std::chrono’ has not been declared
auto t_end_pre = std::chrono::high_resolution_clock::now();
^~~~~~
/yolov5_fastreid_deepsort_tensorrt/src/fast-reid.cpp:26:32: error: ‘std::chrono’ has not been declared
float total_pre = std::chrono::duration<float, std::milli>(t_end_pre - t_start_pre).count();
^~~~~~
/yolov5_fastreid_deepsort_tensorrt/src/fast-reid.cpp:26:49: error: expected primary-expression before ‘float’
float total_pre = std::chrono::duration<float, std::milli>(t_end_pre - t_start_pre).count();
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/object_tracker.dir/all' failed
make[1]: *** [CMakeFiles/object_tracker.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@Mrgao9
Copy link

Mrgao9 commented Mar 1, 2022

@zkailinzhang 您好,我也遇到相同问题,麻烦请问您是如何解决的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants