Skip to content

Commit 4a4b5fb

Browse files
committed
Bump to 0.2.0+ort1.17.1+ocv4.9.0
1 parent e59ab2f commit 4a4b5fb

File tree

199 files changed

+1118
-3117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1118
-3117
lines changed

.github/workflows/issue.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: issues
2+
on:
3+
schedule:
4+
- cron: "0 0 * * 0"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 7
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

README.md

+117-352
Large diffs are not rendered by default.

README.zh.md

-1,380
This file was deleted.

build/.gitignore

-14
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/lite/cv/test_lite_age_googlenet.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/age_googlenet.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/age_googlenet.onnx";
1010
std::string test_img_path = "../../../examples/lite/resources/test_lite_age_googlenet.jpg";
11-
std::string save_img_path = "../../../logs/test_lite_age_googlenet.jpg";
11+
std::string save_img_path = "../../../examples/logs/test_lite_age_googlenet.jpg";
1212

1313
// 1. Test Default Engine ONNXRuntime
1414
lite::cv::face::attr::AgeGoogleNet *age_googlenet = new lite::cv::face::attr::AgeGoogleNet(onnx_path);
@@ -31,9 +31,9 @@ static void test_default()
3131
static void test_onnxruntime()
3232
{
3333
#ifdef ENABLE_ONNXRUNTIME
34-
std::string onnx_path = "../../../hub/onnx/cv/age_googlenet.onnx";
34+
std::string onnx_path = "../../../examples/hub/onnx/cv/age_googlenet.onnx";
3535
std::string test_img_path = "../../../examples/lite/resources/test_lite_age_googlenet.jpg";
36-
std::string save_img_path = "../../../logs/test_lite_age_googlenet.jpg";
36+
std::string save_img_path = "../../../examples/logs/test_lite_age_googlenet.jpg";
3737

3838
// 2. Test Specific Engine ONNXRuntime
3939
lite::onnxruntime::cv::face::attr::AgeGoogleNet *onnx_age_googlenet =
@@ -52,9 +52,9 @@ static void test_onnxruntime()
5252
static void test_mnn()
5353
{
5454
#ifdef ENABLE_MNN
55-
std::string mnn_path = "../../../hub/mnn/cv/age_googlenet.mnn";
55+
std::string mnn_path = "../../../examples/hub/mnn/cv/age_googlenet.mnn";
5656
std::string test_img_path = "../../../examples/lite/resources/test_lite_age_googlenet.jpg";
57-
std::string save_img_path = "../../../logs/test_lite_age_googlenet_mnn.jpg";
57+
std::string save_img_path = "../../../examples/logs/test_lite_age_googlenet_mnn.jpg";
5858

5959
lite::mnn::cv::face::attr::AgeGoogleNet *age_googlenet =
6060
new lite::mnn::cv::face::attr::AgeGoogleNet(mnn_path);
@@ -77,10 +77,10 @@ static void test_mnn()
7777
static void test_ncnn()
7878
{
7979
#ifdef ENABLE_NCNN
80-
std::string param_path = "../../../hub/ncnn/cv/age_googlenet.opt.param";
81-
std::string bin_path = "../../../hub/ncnn/cv/age_googlenet.opt.bin";
80+
std::string param_path = "../../../examples/hub/ncnn/cv/age_googlenet.opt.param";
81+
std::string bin_path = "../../../examples/hub/ncnn/cv/age_googlenet.opt.bin";
8282
std::string test_img_path = "../../../examples/lite/resources/test_lite_age_googlenet.jpg";
83-
std::string save_img_path = "../../../logs/test_lite_age_googlenet_ncnn.jpg";
83+
std::string save_img_path = "../../../examples/logs/test_lite_age_googlenet_ncnn.jpg";
8484

8585
lite::ncnn::cv::face::attr::AgeGoogleNet *age_googlenet =
8686
new lite::ncnn::cv::face::attr::AgeGoogleNet(param_path, bin_path);
@@ -103,10 +103,10 @@ static void test_ncnn()
103103
static void test_tnn()
104104
{
105105
#ifdef ENABLE_TNN
106-
std::string proto_path = "../../../hub/tnn/cv/age_googlenet.opt.tnnproto";
107-
std::string model_path = "../../../hub/tnn/cv/age_googlenet.opt.tnnmodel";
106+
std::string proto_path = "../../../examples/hub/tnn/cv/age_googlenet.opt.tnnproto";
107+
std::string model_path = "../../../examples/hub/tnn/cv/age_googlenet.opt.tnnmodel";
108108
std::string test_img_path = "../../../examples/lite/resources/test_lite_age_googlenet.jpg";
109-
std::string save_img_path = "../../../logs/test_lite_age_googlenet_tnn.jpg";
109+
std::string save_img_path = "../../../examples/logs/test_lite_age_googlenet_tnn.jpg";
110110

111111
lite::tnn::cv::face::attr::AgeGoogleNet *age_googlenet =
112112
new lite::tnn::cv::face::attr::AgeGoogleNet(proto_path, model_path);

examples/lite/cv/test_lite_backgroundmattingv2.cpp

+17-17
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/BGMv2_mobilenetv2-512x512-full.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/BGMv2_mobilenetv2-512x512-full.onnx";
1010
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
1111
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
12-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_fgr.jpg";
13-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_pha.jpg";
14-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_merge.jpg";
12+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_fgr.jpg";
13+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_pha.jpg";
14+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_merge.jpg";
1515

1616
lite::cv::matting::BackgroundMattingV2 *bgmv2 =
1717
new lite::cv::matting::BackgroundMattingV2(onnx_path, 16); // 16 threads
@@ -37,12 +37,12 @@ static void test_default()
3737
static void test_onnxruntime()
3838
{
3939
#ifdef ENABLE_ONNXRUNTIME
40-
std::string onnx_path = "../../../hub/onnx/cv/BGMv2_mobilenetv2-512x512-full.onnx";
40+
std::string onnx_path = "../../../examples/hub/onnx/cv/BGMv2_mobilenetv2-512x512-full.onnx";
4141
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
4242
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
43-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_fgr_onnx.jpg";
44-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_pha_onnx.jpg";
45-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_merge_onnx.jpg";
43+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_fgr_onnx.jpg";
44+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_pha_onnx.jpg";
45+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_merge_onnx.jpg";
4646

4747
lite::onnxruntime::cv::matting::BackgroundMattingV2 *bgmv2 =
4848
new lite::onnxruntime::cv::matting::BackgroundMattingV2(onnx_path, 16); // 16 threads
@@ -69,12 +69,12 @@ static void test_onnxruntime()
6969
static void test_mnn()
7070
{
7171
#ifdef ENABLE_MNN
72-
std::string mnn_path = "../../../hub/mnn/cv/BGMv2_mobilenetv2-512x512-full.mnn";
72+
std::string mnn_path = "../../../examples/hub/mnn/cv/BGMv2_mobilenetv2-512x512-full.mnn";
7373
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
7474
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
75-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_fgr_mnn.jpg";
76-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_pha_mnn.jpg";
77-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_merge_mnn.jpg";
75+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_fgr_mnn.jpg";
76+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_pha_mnn.jpg";
77+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_merge_mnn.jpg";
7878

7979
lite::mnn::cv::matting::BackgroundMattingV2 *bgmv2 =
8080
new lite::mnn::cv::matting::BackgroundMattingV2(mnn_path, 16); // 16 threads
@@ -107,13 +107,13 @@ static void test_ncnn()
107107
static void test_tnn()
108108
{
109109
#ifdef ENABLE_TNN
110-
std::string proto_path = "../../../hub/tnn/cv/BGMv2_mobilenetv2-512x512-full.opt.tnnproto";
111-
std::string model_path = "../../../hub/tnn/cv/BGMv2_mobilenetv2-512x512-full.opt.tnnmodel";
110+
std::string proto_path = "../../../examples/hub/tnn/cv/BGMv2_mobilenetv2-512x512-full.opt.tnnproto";
111+
std::string model_path = "../../../examples/hub/tnn/cv/BGMv2_mobilenetv2-512x512-full.opt.tnnmodel";
112112
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
113113
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
114-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_fgr_tnn.jpg";
115-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_pha_tnn.jpg";
116-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_merge_tnn.jpg";
114+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_fgr_tnn.jpg";
115+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_pha_tnn.jpg";
116+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_merge_tnn.jpg";
117117

118118
lite::tnn::cv::matting::BackgroundMattingV2 *bgmv2 =
119119
new lite::tnn::cv::matting::BackgroundMattingV2(proto_path, model_path, 16); // 16 threads

examples/lite/cv/test_lite_backgroundmattingv2_dyn.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/BGMv2_mobilenetv2_hd_dynamic.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/BGMv2_mobilenetv2_hd_dynamic.onnx";
1010
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
1111
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
12-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_dyn_fgr.jpg";
13-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_dyn_pha.jpg";
14-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_dyn_merge.jpg";
12+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_dyn_fgr.jpg";
13+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_dyn_pha.jpg";
14+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_dyn_merge.jpg";
1515

1616
lite::cv::matting::BackgroundMattingV2Dyn *bgmv2_dyn =
1717
new lite::cv::matting::BackgroundMattingV2Dyn(onnx_path, 16); // 16 threads
@@ -37,12 +37,12 @@ static void test_default()
3737
static void test_onnxruntime()
3838
{
3939
#ifdef ENABLE_ONNXRUNTIME
40-
std::string onnx_path = "../../../hub/onnx/cv/BGMv2_mobilenetv2_hd_dynamic.onnx";
40+
std::string onnx_path = "../../../examples/hub/onnx/cv/BGMv2_mobilenetv2_hd_dynamic.onnx";
4141
std::string test_src_path = "../../../examples/lite/resources/test_lite_bgmv2_src.png";
4242
std::string test_bgr_path = "../../../examples/lite/resources/test_lite_bgmv2_bgr.png";
43-
std::string save_fgr_path = "../../../logs/test_lite_bgmv2_dyn_fgr_onnx.jpg";
44-
std::string save_pha_path = "../../../logs/test_lite_bgmv2_dyn_pha_onnx.jpg";
45-
std::string save_merge_path = "../../../logs/test_lite_bgmv2_dyn_merge_onnx.jpg";
43+
std::string save_fgr_path = "../../../examples/logs/test_lite_bgmv2_dyn_fgr_onnx.jpg";
44+
std::string save_pha_path = "../../../examples/logs/test_lite_bgmv2_dyn_pha_onnx.jpg";
45+
std::string save_merge_path = "../../../examples/logs/test_lite_bgmv2_dyn_merge_onnx.jpg";
4646

4747
lite::onnxruntime::cv::matting::BackgroundMattingV2Dyn *bgmv2_dyn =
4848
new lite::onnxruntime::cv::matting::BackgroundMattingV2Dyn(onnx_path, 16); // 16 threads

examples/lite/cv/test_lite_cava_combined_face.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/cavaface_IR_SE_100_Combined_Epoch_24.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/cavaface_IR_SE_100_Combined_Epoch_24.onnx";
1010
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
1111
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_1.png";
1212

@@ -32,7 +32,7 @@ static void test_default()
3232
static void test_onnxruntime()
3333
{
3434
#ifdef ENABLE_ONNXRUNTIME
35-
std::string onnx_path = "../../../hub/onnx/cv/cavaface_IR_SE_100_Combined_Epoch_24.onnx";
35+
std::string onnx_path = "../../../examples/hub/onnx/cv/cavaface_IR_SE_100_Combined_Epoch_24.onnx";
3636
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
3737
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
3838

@@ -59,7 +59,7 @@ static void test_onnxruntime()
5959
static void test_mnn()
6060
{
6161
#ifdef ENABLE_MNN
62-
std::string mnn_path = "../../../hub/mnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.mnn";
62+
std::string mnn_path = "../../../examples/hub/mnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.mnn";
6363
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
6464
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
6565

@@ -86,8 +86,8 @@ static void test_mnn()
8686
static void test_ncnn()
8787
{
8888
#ifdef ENABLE_NCNN
89-
std::string param_path = "../../../hub/ncnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.param";
90-
std::string bin_path = "../../../hub/ncnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.bin";
89+
std::string param_path = "../../../examples/hub/ncnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.param";
90+
std::string bin_path = "../../../examples/hub/ncnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.bin";
9191
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
9292
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
9393

@@ -114,8 +114,8 @@ static void test_ncnn()
114114
static void test_tnn()
115115
{
116116
#ifdef ENABLE_TNN
117-
std::string proto_path = "../../../hub/tnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.tnnproto";
118-
std::string model_path = "../../../hub/tnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.tnnmodel";
117+
std::string proto_path = "../../../examples/hub/tnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.tnnproto";
118+
std::string model_path = "../../../examples/hub/tnn/cv/cavaface_IR_SE_100_Combined_Epoch_24.opt.tnnmodel";
119119
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
120120
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
121121

examples/lite/cv/test_lite_cava_ghost_arcface.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.onnx";
1010
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
1111
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_1.png";
1212

@@ -32,7 +32,7 @@ static void test_default()
3232
static void test_onnxruntime()
3333
{
3434
#ifdef ENABLE_ONNXRUNTIME
35-
std::string onnx_path = "../../../hub/onnx/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.onnx";
35+
std::string onnx_path = "../../../examples/hub/onnx/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.onnx";
3636
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
3737
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
3838

@@ -59,7 +59,7 @@ static void test_onnxruntime()
5959
static void test_mnn()
6060
{
6161
#ifdef ENABLE_MNN
62-
std::string mnn_path = "../../../hub/mnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.mnn";
62+
std::string mnn_path = "../../../examples/hub/mnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.mnn";
6363
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
6464
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
6565

@@ -86,8 +86,8 @@ static void test_mnn()
8686
static void test_ncnn()
8787
{
8888
#ifdef ENABLE_NCNN
89-
std::string param_path = "../../../hub/ncnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.param";
90-
std::string bin_path = "../../../hub/ncnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.bin";
89+
std::string param_path = "../../../examples/hub/ncnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.param";
90+
std::string bin_path = "../../../examples/hub/ncnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.bin";
9191
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
9292
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
9393

@@ -114,8 +114,8 @@ static void test_ncnn()
114114
static void test_tnn()
115115
{
116116
#ifdef ENABLE_TNN
117-
std::string proto_path = "../../../hub/tnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.tnnproto";
118-
std::string model_path = "../../../hub/tnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.tnnmodel";
117+
std::string proto_path = "../../../examples/hub/tnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.tnnproto";
118+
std::string model_path = "../../../examples/hub/tnn/cv/cavaface_GhostNet_x1.3_Arcface_Epoch_24.opt.tnnmodel";
119119
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
120120
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
121121

examples/lite/cv/test_lite_center_loss_face.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
static void test_default()
88
{
9-
std::string onnx_path = "../../../hub/onnx/cv/CenterLossFace_epoch_100.onnx";
9+
std::string onnx_path = "../../../examples/hub/onnx/cv/CenterLossFace_epoch_100.onnx";
1010
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
1111
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_1.png";
1212

@@ -31,7 +31,7 @@ static void test_default()
3131
static void test_onnxruntime()
3232
{
3333
#ifdef ENABLE_ONNXRUNTIME
34-
std::string onnx_path = "../../../hub/onnx/cv/CenterLossFace_epoch_100.onnx";
34+
std::string onnx_path = "../../../examples/hub/onnx/cv/CenterLossFace_epoch_100.onnx";
3535
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
3636
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
3737

@@ -58,7 +58,7 @@ static void test_onnxruntime()
5858
static void test_mnn()
5959
{
6060
#ifdef ENABLE_MNN
61-
std::string mnn_path = "../../../hub/mnn/cv/CenterLossFace_epoch_100.mnn";
61+
std::string mnn_path = "../../../examples/hub/mnn/cv/CenterLossFace_epoch_100.mnn";
6262
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
6363
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
6464

@@ -85,8 +85,8 @@ static void test_mnn()
8585
static void test_ncnn()
8686
{
8787
#ifdef ENABLE_NCNN
88-
std::string param_path = "../../../hub/ncnn/cv/CenterLossFace_epoch_100.opt.param";
89-
std::string bin_path = "../../../hub/ncnn/cv/CenterLossFace_epoch_100.opt.bin";
88+
std::string param_path = "../../../examples/hub/ncnn/cv/CenterLossFace_epoch_100.opt.param";
89+
std::string bin_path = "../../../examples/hub/ncnn/cv/CenterLossFace_epoch_100.opt.bin";
9090
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
9191
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
9292

@@ -113,8 +113,8 @@ static void test_ncnn()
113113
static void test_tnn()
114114
{
115115
#ifdef ENABLE_TNN
116-
std::string proto_path = "../../../hub/tnn/cv/CenterLossFace_epoch_100.tnnproto";
117-
std::string model_path = "../../../hub/tnn/cv/CenterLossFace_epoch_100.tnnmodel";
116+
std::string proto_path = "../../../examples/hub/tnn/cv/CenterLossFace_epoch_100.tnnproto";
117+
std::string model_path = "../../../examples/hub/tnn/cv/CenterLossFace_epoch_100.tnnmodel";
118118
std::string test_img_path0 = "../../../examples/lite/resources/test_lite_faceid_0.png";
119119
std::string test_img_path1 = "../../../examples/lite/resources/test_lite_faceid_2.png";
120120

0 commit comments

Comments
 (0)