各サンプルコードでは以下の内容の sample.h
を共通のヘッダーファイルを使用します。
また、お試しの際には、目的の関数にお手元の環境に合わせた引数を渡して呼び出す main()
関数を適宜作成ください。
7int smp_save_optimized_model(
const char* original_model_name,
const char* save_model_name);
8int smp_change_cpu_device(
const char* model_name,
const char* img_name);
11#pragma region classification ( smp_classification.cpp )
12int smp_simple(
const char*model_name,
const char* img_name);
13int smp_benchmark(
const char*model_name,
const char* img_name,
const int bench_iter);
14int smp_with_fie(
const char*model_name,
const char* img_name);
17#pragma region anomally deteciton ( smp_anomaly_detection.cpp )
18int smp_ad_simple(
const char*model_name,
const char* img_name,
const FLOAT threshold);
19int smp_ad_benchmark(
const char* model_name,
const char* img_name,
const FLOAT threshold,
const int bench_iter);
20int smp_ad_with_fie(
const char* model_name,
const char* img_name,
const FLOAT threshold);
23#pragma region multi view cnn ( smp_multiviewcnn.cpp )
24int smp_mvcnn_simple(
const char*model_name,
const char* img_folder);
25int smp_mvcnn_benchmark(
const char*model_name,
const char* img_folder,
const int bench_iter);
26int smp_mvcnn_with_fie(
const char*model_name,
const char* img_folder);
29#pragma region multi view ad ( smp_multiviewad.cpp )
30int smp_mvad_simple(
const char* model_name,
const char* img_folder,
const FLOAT threshold);
31int smp_mvad_benchmark(
const char* model_name,
const char* img_folder,
const FLOAT threshold,
const int bench_iter);
32int smp_mvad_with_fie(
const char* model_name,
const char* img_folder,
const FLOAT threshold);
35#pragma region semantic segmentation ( smp_semantic_segmentation.cpp )
36int smp_semseg_simple(
const char* model_name,
const char* img_name);
37int smp_semseg_benchmark(
const char* model_name,
const char* img_name,
const int bench_iter);
38int smp_semseg_with_fie(
const char* model_name,
const char* img_name,
const INT category_num);
41#pragma region panoptic segmentation ( smp_panoptic_segmentation.cpp )
42int smp_panseg_simple(
const char* model_name,
const char* img_name);
43int smp_panseg_benchmark(
const char* model_name,
const char* img_name,
const int bench_iter);
44int smp_panseg_with_fie(
const char* model_name,
const char* img_name,
const INT category_num);