From 9b482b72fb50139c2354a8a07db9702ed7039edd Mon Sep 17 00:00:00 2001 From: chenjian Date: Fri, 17 Feb 2023 16:03:37 +0800 Subject: [PATCH] fix demo code (#1355) --- .../vision/detection/paddledetection/c/infer_ppyoloe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/vision/detection/paddledetection/c/infer_ppyoloe.c b/examples/vision/detection/paddledetection/c/infer_ppyoloe.c index 4db5f7549..fe64274c2 100644 --- a/examples/vision/detection/paddledetection/c/infer_ppyoloe.c +++ b/examples/vision/detection/paddledetection/c/infer_ppyoloe.c @@ -41,7 +41,7 @@ void CpuInfer(const char* model_dir, const char* image_file) { if (!FD_C_PPYOLOEWrapperInitialized(model)) { printf("Failed to initialize.\n"); FD_C_DestroyRuntimeOptionWrapper(option); - FD_C_DestroyPaddleClasModelWrapper(model); + FD_C_DestroyPPYOLOEWrapper(model); return; } @@ -53,7 +53,7 @@ void CpuInfer(const char* model_dir, const char* image_file) { if (!FD_C_PPYOLOEWrapperPredict(model, im, result)) { printf("Failed to predict.\n"); FD_C_DestroyRuntimeOptionWrapper(option); - FD_C_DestroyPaddleClasModelWrapper(model); + FD_C_DestroyPPYOLOEWrapper(model); FD_C_DestroyMat(im); free(result); return; @@ -89,7 +89,7 @@ void GpuInfer(const char* model_dir, const char* image_file) { if (!FD_C_PPYOLOEWrapperInitialized(model)) { printf("Failed to initialize.\n"); FD_C_DestroyRuntimeOptionWrapper(option); - FD_C_DestroyPaddleClasModelWrapper(model); + FD_C_DestroyPPYOLOEWrapper(model); return; } @@ -101,7 +101,7 @@ void GpuInfer(const char* model_dir, const char* image_file) { if (!FD_C_PPYOLOEWrapperPredict(model, im, result)) { printf("Failed to predict.\n"); FD_C_DestroyRuntimeOptionWrapper(option); - FD_C_DestroyPaddleClasModelWrapper(model); + FD_C_DestroyPPYOLOEWrapper(model); FD_C_DestroyMat(im); free(result); return;