[Benchmark]Add SegmentationDiff to compare SegmentationResult diff (#1404)

* avoid mem copy for cpp benchmark

* set CMAKE_BUILD_TYPE to Release

* Add SegmentationDiff

* change pointer to reference

* fixed bug

* cast uint8 to int32
This commit is contained in:
WJJ1995
2023-02-22 14:42:21 +08:00
committed by GitHub
parent dd527388bc
commit 2f8d9c9a57
6 changed files with 177 additions and 45 deletions

1
fastdeploy/runtime/backends/tensorrt/utils.h Normal file → Executable file
View File

@@ -241,6 +241,7 @@ class FDTrtLogger : public nvinfer1::ILogger {
FDASSERT(false, "%s", msg);
}
}
private:
bool enable_info_ = false;
bool enable_warning_ = false;