FastDeploy  latest
Fast & Easy to Deploy!
model.h
Go to the documentation of this file.
1 // Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
22 
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 // PPYOLOE
30 
32 
45 
51 DECLARE_DESTROY_WRAPPER_FUNCTION(PPYOLOE, fd_c_ppyoloe_wrapper);
52 
60 DECLARE_PREDICT_FUNCTION(PPYOLOE, fd_c_ppyoloe_wrapper);
61 
69 DECLARE_INITIALIZED_FUNCTION(PPYOLOE, fd_c_ppyoloe_wrapper);
70 
80 DECLARE_BATCH_PREDICT_FUNCTION(PPYOLOE, fd_c_ppyoloe_wrapper);
81 
82 // PicoDet
83 
85 
98 
104 DECLARE_DESTROY_WRAPPER_FUNCTION(PicoDet, fd_c_picodet_wrapper);
105 
113 DECLARE_PREDICT_FUNCTION(PicoDet, fd_c_picodet_wrapper);
114 
122 DECLARE_INITIALIZED_FUNCTION(PicoDet, fd_c_picodet_wrapper);
123 
133 DECLARE_BATCH_PREDICT_FUNCTION(PicoDet, fd_c_picodet_wrapper);
134 
135 
136 // PPYOLO
137 
139 
152 
158 DECLARE_DESTROY_WRAPPER_FUNCTION(PPYOLO, fd_c_ppyolo_wrapper);
159 
167 DECLARE_PREDICT_FUNCTION(PPYOLO, fd_c_ppyolo_wrapper);
168 
176 DECLARE_INITIALIZED_FUNCTION(PPYOLO, fd_c_ppyolo_wrapper);
177 
187 DECLARE_BATCH_PREDICT_FUNCTION(PPYOLO, fd_c_ppyolo_wrapper);
188 
189 // YOLOv3
190 
192 
205 
211 DECLARE_DESTROY_WRAPPER_FUNCTION(YOLOv3, fd_c_yolov3_wrapper);
212 
220 DECLARE_PREDICT_FUNCTION(YOLOv3, fd_c_yolov3_wrapper);
221 
229 DECLARE_INITIALIZED_FUNCTION(YOLOv3, fd_c_yolov3_wrapper);
230 
240 DECLARE_BATCH_PREDICT_FUNCTION(YOLOv3, fd_c_yolov3_wrapper);
241 
242 // PaddleYOLOX
243 
245 
258 
264 DECLARE_DESTROY_WRAPPER_FUNCTION(PaddleYOLOX, fd_c_paddleyolox_wrapper);
265 
273 DECLARE_PREDICT_FUNCTION(PaddleYOLOX, fd_c_paddleyolox_wrapper);
274 
282 DECLARE_INITIALIZED_FUNCTION(PaddleYOLOX, fd_c_paddleyolox_wrapper);
283 
293 DECLARE_BATCH_PREDICT_FUNCTION(PaddleYOLOX, fd_c_paddleyolox_wrapper);
294 
295 // FasterRCNN
296 
298 
311 
317 DECLARE_DESTROY_WRAPPER_FUNCTION(FasterRCNN, fd_c_fasterrcnn_wrapper);
318 
326 DECLARE_PREDICT_FUNCTION(FasterRCNN, fd_c_fasterrcnn_wrapper);
327 
335 DECLARE_INITIALIZED_FUNCTION(FasterRCNN, fd_c_fasterrcnn_wrapper);
336 
346 DECLARE_BATCH_PREDICT_FUNCTION(FasterRCNN, fd_c_fasterrcnn_wrapper);
347 
348 // MaskRCNN
349 
351 
364 
370 DECLARE_DESTROY_WRAPPER_FUNCTION(MaskRCNN, fd_c_maskrcnn_wrapper);
371 
379 DECLARE_PREDICT_FUNCTION(MaskRCNN, fd_c_maskrcnn_wrapper);
380 
388 DECLARE_INITIALIZED_FUNCTION(MaskRCNN, fd_c_maskrcnn_wrapper);
389 
399 DECLARE_BATCH_PREDICT_FUNCTION(MaskRCNN, fd_c_maskrcnn_wrapper);
400 
401 // SSD
402 
404 
417 
423 DECLARE_DESTROY_WRAPPER_FUNCTION(SSD, fd_c_ssd_wrapper);
424 
432 DECLARE_PREDICT_FUNCTION(SSD, fd_c_ssd_wrapper);
433 
441 DECLARE_INITIALIZED_FUNCTION(SSD, fd_c_ssd_wrapper);
442 
452 DECLARE_BATCH_PREDICT_FUNCTION(SSD, fd_c_ssd_wrapper);
453 
454 // PaddleYOLOv5
455 
457 
469 DECLARE_CREATE_WRAPPER_FUNCTION(PaddleYOLOv5);
470 
476 DECLARE_DESTROY_WRAPPER_FUNCTION(PaddleYOLOv5, fd_c_paddleyolov5_wrapper);
477 
485 DECLARE_PREDICT_FUNCTION(PaddleYOLOv5, fd_c_paddleyolov5_wrapper);
486 
494 DECLARE_INITIALIZED_FUNCTION(PaddleYOLOv5, fd_c_paddleyolov5_wrapper);
495 
505 DECLARE_BATCH_PREDICT_FUNCTION(PaddleYOLOv5, fd_c_paddleyolov5_wrapper);
506 
507 // PaddleYOLOv6
508 
510 
522 DECLARE_CREATE_WRAPPER_FUNCTION(PaddleYOLOv6);
523 
529 DECLARE_DESTROY_WRAPPER_FUNCTION(PaddleYOLOv6, fd_c_paddleyolov6_wrapper);
530 
538 DECLARE_PREDICT_FUNCTION(PaddleYOLOv6, fd_c_paddleyolov6_wrapper);
539 
547 DECLARE_INITIALIZED_FUNCTION(PaddleYOLOv6, fd_c_paddleyolov6_wrapper);
548 
558 DECLARE_BATCH_PREDICT_FUNCTION(PaddleYOLOv6, fd_c_paddleyolov6_wrapper);
559 
560 // PaddleYOLOv7
561 
563 
575 DECLARE_CREATE_WRAPPER_FUNCTION(PaddleYOLOv7);
576 
582 DECLARE_DESTROY_WRAPPER_FUNCTION(PaddleYOLOv7, fd_c_paddleyolov7_wrapper);
583 
591 DECLARE_PREDICT_FUNCTION(PaddleYOLOv7, fd_c_paddleyolov7_wrapper);
592 
600 DECLARE_INITIALIZED_FUNCTION(PaddleYOLOv7, fd_c_paddleyolov7_wrapper);
601 
611 DECLARE_BATCH_PREDICT_FUNCTION(PaddleYOLOv7, fd_c_paddleyolov7_wrapper);
612 
613 // PaddleYOLOv8
614 
616 
628 DECLARE_CREATE_WRAPPER_FUNCTION(PaddleYOLOv8);
629 
635 DECLARE_DESTROY_WRAPPER_FUNCTION(PaddleYOLOv8, fd_c_paddleyolov8_wrapper);
636 
644 DECLARE_PREDICT_FUNCTION(PaddleYOLOv8, fd_c_paddleyolov8_wrapper);
645 
653 DECLARE_INITIALIZED_FUNCTION(PaddleYOLOv8, fd_c_paddleyolov8_wrapper);
654 
664 DECLARE_BATCH_PREDICT_FUNCTION(PaddleYOLOv8, fd_c_paddleyolov8_wrapper);
665 
666 // RTMDet
667 
669 
682 
688 DECLARE_DESTROY_WRAPPER_FUNCTION(RTMDet, fd_c_rtmdet_wrapper);
689 
697 DECLARE_PREDICT_FUNCTION(RTMDet, fd_c_rtmdet_wrapper);
698 
706 DECLARE_INITIALIZED_FUNCTION(RTMDet, fd_c_rtmdet_wrapper);
707 
717 DECLARE_BATCH_PREDICT_FUNCTION(RTMDet, fd_c_rtmdet_wrapper);
718 
719 // CascadeRCNN
720 
722 
735 
741 DECLARE_DESTROY_WRAPPER_FUNCTION(CascadeRCNN, fd_c_cascadercnn_wrapper);
742 
750 DECLARE_PREDICT_FUNCTION(CascadeRCNN, fd_c_cascadercnn_wrapper);
751 
759 DECLARE_INITIALIZED_FUNCTION(CascadeRCNN, fd_c_cascadercnn_wrapper);
760 
770 DECLARE_BATCH_PREDICT_FUNCTION(CascadeRCNN, fd_c_cascadercnn_wrapper);
771 
772 // PSSDet
773 
775 
788 
794 DECLARE_DESTROY_WRAPPER_FUNCTION(PSSDet, fd_c_pssdet_wrapper);
795 
803 DECLARE_PREDICT_FUNCTION(PSSDet, fd_c_pssdet_wrapper);
804 
812 DECLARE_INITIALIZED_FUNCTION(PSSDet, fd_c_pssdet_wrapper);
813 
823 DECLARE_BATCH_PREDICT_FUNCTION(PSSDet, fd_c_pssdet_wrapper);
824 
825 // RetinaNet
826 
828 
841 
847 DECLARE_DESTROY_WRAPPER_FUNCTION(RetinaNet, fd_c_retinanet_wrapper);
848 
856 DECLARE_PREDICT_FUNCTION(RetinaNet, fd_c_retinanet_wrapper);
857 
865 DECLARE_INITIALIZED_FUNCTION(RetinaNet, fd_c_retinanet_wrapper);
866 
876 DECLARE_BATCH_PREDICT_FUNCTION(RetinaNet, fd_c_retinanet_wrapper);
877 
878 // FCOS
879 
881 
894 
900 DECLARE_DESTROY_WRAPPER_FUNCTION(FCOS, fd_c_fcos_wrapper);
901 
909 DECLARE_PREDICT_FUNCTION(FCOS, fd_c_fcos_wrapper);
910 
918 DECLARE_INITIALIZED_FUNCTION(FCOS, fd_c_fcos_wrapper);
919 
929 DECLARE_BATCH_PREDICT_FUNCTION(FCOS, fd_c_fcos_wrapper);
930 
931 // TTFNet
932 
934 
947 
953 DECLARE_DESTROY_WRAPPER_FUNCTION(TTFNet, fd_c_ttfnet_wrapper);
954 
962 DECLARE_PREDICT_FUNCTION(TTFNet, fd_c_ttfnet_wrapper);
963 
971 DECLARE_INITIALIZED_FUNCTION(TTFNet, fd_c_ttfnet_wrapper);
972 
982 DECLARE_BATCH_PREDICT_FUNCTION(TTFNet, fd_c_ttfnet_wrapper);
983 
984 // TOOD
985 
987 
1000 
1006 DECLARE_DESTROY_WRAPPER_FUNCTION(TOOD, fd_c_tood_wrapper);
1007 
1015 DECLARE_PREDICT_FUNCTION(TOOD, fd_c_tood_wrapper);
1016 
1024 DECLARE_INITIALIZED_FUNCTION(TOOD, fd_c_tood_wrapper);
1025 
1035 DECLARE_BATCH_PREDICT_FUNCTION(TOOD, fd_c_tood_wrapper);
1036 
1037 // GFL
1038 
1040 
1053 
1059 DECLARE_DESTROY_WRAPPER_FUNCTION(GFL, fd_c_gfl_wrapper);
1060 
1068 DECLARE_PREDICT_FUNCTION(GFL, fd_c_gfl_wrapper);
1069 
1077 DECLARE_INITIALIZED_FUNCTION(GFL, fd_c_gfl_wrapper);
1078 
1088 DECLARE_BATCH_PREDICT_FUNCTION(GFL, fd_c_gfl_wrapper);
1089 
1090 
1091 
1092 
1093 
1094 
1095 
1096 #ifdef __cplusplus
1097 } // extern "C"
1098 #endif
struct FD_C_MaskRCNNWrapper FD_C_MaskRCNNWrapper
Definition: model.h:350
struct FD_C_PaddleYOLOv5Wrapper FD_C_PaddleYOLOv5Wrapper
Definition: model.h:456
#define DECLARE_PREDICT_FUNCTION(model_type, wrapper_var_name)
Definition: base_define.h:27
struct FD_C_PPYOLOWrapper FD_C_PPYOLOWrapper
Definition: model.h:138
struct FD_C_PSSDetWrapper FD_C_PSSDetWrapper
Definition: model.h:774
struct FD_C_FasterRCNNWrapper FD_C_FasterRCNNWrapper
Definition: model.h:297
struct FD_C_CascadeRCNNWrapper FD_C_CascadeRCNNWrapper
Definition: model.h:721
struct FD_C_TTFNetWrapper FD_C_TTFNetWrapper
Definition: model.h:933
Definition: types_internal.h:26
struct FD_C_FCOSWrapper FD_C_FCOSWrapper
Definition: model.h:880
struct FD_C_TOODWrapper FD_C_TOODWrapper
Definition: model.h:986
struct FD_C_GFLWrapper FD_C_GFLWrapper
Definition: model.h:1039
struct FD_C_PPYOLOEWrapper FD_C_PPYOLOEWrapper
Definition: model.h:31
struct FD_C_PaddleYOLOv7Wrapper FD_C_PaddleYOLOv7Wrapper
Definition: model.h:562
struct FD_C_YOLOv3Wrapper FD_C_YOLOv3Wrapper
Definition: model.h:191
struct FD_C_PaddleYOLOXWrapper FD_C_PaddleYOLOXWrapper
Definition: model.h:244
struct FD_C_PaddleYOLOv8Wrapper FD_C_PaddleYOLOv8Wrapper
Definition: model.h:615
struct FD_C_SSDWrapper FD_C_SSDWrapper
Definition: model.h:403
#define DECLARE_DESTROY_WRAPPER_FUNCTION(model_type, wrapper_var_name)
Definition: base_define.h:24
struct FD_C_RetinaNetWrapper FD_C_RetinaNetWrapper
Definition: model.h:827
#define DECLARE_INITIALIZED_FUNCTION(model_type, wrapper_var_name)
Definition: base_define.h:31
struct FD_C_PaddleYOLOv6Wrapper FD_C_PaddleYOLOv6Wrapper
Definition: model.h:509
#define DECLARE_CREATE_WRAPPER_FUNCTION(model_type)
Definition: base_define.h:17
struct FD_C_PicoDetWrapper FD_C_PicoDetWrapper
Definition: model.h:84
struct FD_C_RTMDetWrapper FD_C_RTMDetWrapper
Definition: model.h:668
#define DECLARE_BATCH_PREDICT_FUNCTION(model_type, wrapper_var_name)
Definition: base_define.h:35