mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[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:
@@ -49,7 +49,7 @@ int main(int argc, char* argv[]) {
|
||||
benchmark::ResultManager::LoadClassifyResult(&res_loaded, cls_result_path);
|
||||
// Calculate diff between two results.
|
||||
auto cls_diff =
|
||||
benchmark::ResultManager::CalculateDiffStatis(&res, &res_loaded);
|
||||
benchmark::ResultManager::CalculateDiffStatis(res, res_loaded);
|
||||
std::cout << "Labels diff: mean=" << cls_diff.labels.mean
|
||||
<< ", max=" << cls_diff.labels.max
|
||||
<< ", min=" << cls_diff.labels.min << std::endl;
|
||||
|
Reference in New Issue
Block a user