diff --git a/examples/fasterrcnn.cpp b/examples/fasterrcnn.cpp index fcd78dff0..0c29097d3 100644 --- a/examples/fasterrcnn.cpp +++ b/examples/fasterrcnn.cpp @@ -114,7 +114,8 @@ static int detect_fasterrcnn(const cv::Mat& bgr, std::vector& objects) // py-faster-rcnn/models/pascal_voc/ZF/faster_rcnn_alt_opt/faster_rcnn_test.pt // https://dl.dropboxusercontent.com/s/o6ii098bu51d139/faster_rcnn_models.tgz?dl=0 // ZF_faster_rcnn_final.caffemodel - fasterrcnn.load_param("ZF_faster_rcnn_final.proto"); + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models + fasterrcnn.load_param("ZF_faster_rcnn_final.param"); fasterrcnn.load_model("ZF_faster_rcnn_final.bin"); // hyper parameters taken from diff --git a/examples/mobilenetssd.cpp b/examples/mobilenetssd.cpp index e1870cf64..6c6c480cd 100755 --- a/examples/mobilenetssd.cpp +++ b/examples/mobilenetssd.cpp @@ -41,6 +41,7 @@ static int detect_mobilenet(const cv::Mat& bgr, std::vector& objects) // model is converted from https://github.com/chuanqi305/MobileNet-SSD // and can be downloaded from https://drive.google.com/open?id=0ByaKLD9QaPtucWk0Y0dha1VVY0U + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models mobilenet.load_param("mobilenet_ssd_voc_ncnn.param"); mobilenet.load_model("mobilenet_ssd_voc_ncnn.bin"); diff --git a/examples/mobilenetv2ssdlite.cpp b/examples/mobilenetv2ssdlite.cpp index 5cf0861f0..91f403623 100755 --- a/examples/mobilenetv2ssdlite.cpp +++ b/examples/mobilenetv2ssdlite.cpp @@ -46,6 +46,7 @@ static int detect_mobilenetv2(const cv::Mat& bgr, std::vector& objects) // original pretrained model from https://github.com/chuanqi305/MobileNetv2-SSDLite // https://github.com/chuanqi305/MobileNetv2-SSDLite/blob/master/ssdlite/voc/deploy.prototxt + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models mobilenetv2.load_param("mobilenetv2_ssdlite_voc.param"); mobilenetv2.load_model("mobilenetv2_ssdlite_voc.bin"); diff --git a/examples/peleenetssd_seg.cpp b/examples/peleenetssd_seg.cpp index d002b8eee..55b8883ad 100644 --- a/examples/peleenetssd_seg.cpp +++ b/examples/peleenetssd_seg.cpp @@ -41,6 +41,7 @@ static int detect_peleenet(const cv::Mat& bgr, std::vector& objects,ncnn // model is converted from https://github.com/eric612/MobileNet-YOLO // and can be downloaded from https://drive.google.com/open?id=1Wt6jKv13sBRMHgrGAJYlOlRF-o80pC0g + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models peleenet.load_param("pelee.param"); peleenet.load_model("pelee.bin"); diff --git a/examples/retinaface.cpp b/examples/retinaface.cpp index 84d8eb16f..2a85f3d06 100755 --- a/examples/retinaface.cpp +++ b/examples/retinaface.cpp @@ -248,6 +248,7 @@ static int detect_retinaface(const cv::Mat& bgr, std::vector& faceob // model is converted from // https://github.com/deepinsight/insightface/tree/master/RetinaFace#retinaface-pretrained-models // https://github.com/deepinsight/insightface/issues/669 + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models // retinaface.load_param("retinaface-R50.param"); // retinaface.load_model("retinaface-R50.bin"); retinaface.load_param("mnet.25-opt.param"); diff --git a/examples/simplepose.cpp b/examples/simplepose.cpp index a515a5b40..19d46c8d8 100644 --- a/examples/simplepose.cpp +++ b/examples/simplepose.cpp @@ -47,6 +47,7 @@ static int detect_posenet(const cv::Mat& bgr, std::vector& keypoints) // pose_net.hybridize() // pose_net.export('pose') // then mxnet2ncnn + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models posenet.load_param("pose.param"); posenet.load_model("pose.bin"); diff --git a/examples/squeezenet.cpp b/examples/squeezenet.cpp index 8e602cc66..3448b2066 100644 --- a/examples/squeezenet.cpp +++ b/examples/squeezenet.cpp @@ -32,6 +32,7 @@ static int detect_squeezenet(const cv::Mat& bgr, std::vector& cls_scores) squeezenet.opt.use_vulkan_compute = true; #endif // NCNN_VULKAN + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models squeezenet.load_param("squeezenet_v1.1.param"); squeezenet.load_model("squeezenet_v1.1.bin"); diff --git a/examples/squeezenetssd.cpp b/examples/squeezenetssd.cpp index 40791d9b4..b6ff213e9 100755 --- a/examples/squeezenetssd.cpp +++ b/examples/squeezenetssd.cpp @@ -42,6 +42,7 @@ static int detect_squeezenet(const cv::Mat& bgr, std::vector& objects) // original pretrained model from https://github.com/chuanqi305/SqueezeNet-SSD // squeezenet_ssd_voc_deploy.prototxt // https://drive.google.com/open?id=0B3gersZ2cHIxdGpyZlZnbEQ5Snc + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models squeezenet.load_param("squeezenet_ssd_voc.param"); squeezenet.load_model("squeezenet_ssd_voc.bin"); diff --git a/examples/yolov2.cpp b/examples/yolov2.cpp index cce7fe8a7..86c0aedca 100644 --- a/examples/yolov2.cpp +++ b/examples/yolov2.cpp @@ -42,6 +42,7 @@ static int detect_yolov2(const cv::Mat& bgr, std::vector& objects) // original pretrained model from https://github.com/eric612/MobileNet-YOLO // https://github.com/eric612/MobileNet-YOLO/blob/master/models/yolov2/mobilenet_yolo_deploy.prototxt // https://github.com/eric612/MobileNet-YOLO/blob/master/models/yolov2/mobilenet_yolo_deploy_iter_80000.caffemodel + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models yolov2.load_param("mobilenet_yolo.param"); yolov2.load_model("mobilenet_yolo.bin"); diff --git a/examples/yolov3.cpp b/examples/yolov3.cpp index 146f7c567..bfb68f0bf 100644 --- a/examples/yolov3.cpp +++ b/examples/yolov3.cpp @@ -42,6 +42,7 @@ static int detect_yolov3(const cv::Mat& bgr, std::vector& objects) // original pretrained model from https://github.com/eric612/MobileNet-YOLO // param : https://drive.google.com/open?id=1V9oKHP6G6XvXZqhZbzNKL6FI_clRWdC- // bin : https://drive.google.com/open?id=1DBcuFCr-856z3FRQznWL_S5h-Aj3RawA + // the ncnn model https://github.com/nihui/ncnn-assets/tree/master/models yolov3.load_param("mobilenetv2_yolov3.param"); yolov3.load_model("mobilenetv2_yolov3.bin");