{ "Global": { "infer_imgs": "images/demo.jpg", "batch_size": 1, "cpu_num_threads": 4, "image_shape": [ 3, 640, 640 ], "det_model_path": "ppshitu_lite_models_v1.0/mainbody_PPLCNet_x2_5_640_quant_v1.0_lite.nb", "rec_model_path": "ppshitu_lite_models_v1.0/general_PPLCNet_x2_5_lite_v1.0_infer.nb", "rec_label_path": "ppshitu_lite_models_v1.0/label.txt", "label_list": [ "foreground" ], "rec_nms_thresold": 0.05, "max_det_results": 5, "det_fpn_stride": [ 8, 16, 32, 64 ], "det_arch": "PicoDet", "return_k": 5 }, "DetPreProcess": { "transform_ops": [ { "interp": 2, "keep_ratio": false, "target_size": [ 640, 640 ], "type": "DetResize" }, { "is_scale": true, "mean": [ 0.485, 0.456, 0.406 ], "std": [ 0.229, 0.224, 0.225 ], "type": "DetNormalizeImage" }, { "type": "DetPermute" } ] }, "DetPostProcess": { "keep_top_k": 100, "name": "MultiClassNMS", "nms_threshold": 0.5, "nms_top_k": 1000, "score_threshold": 0.3 }, "RecPreProcess": { "transform_ops": [ { "size": 224, "type": "ResizeImage" }, { "scale": 0.00392157, "mean": [ 0.485, 0.456, 0.406 ], "std": [ 0.229, 0.224, 0.225 ], "order": "", "type": "NormalizeImage" } ] }, "IndexProcess": { "index_method": "HNSW32", "index_dir": "./drink_dataset_v1.0/index", "image_root": "./drink_dataset_v1.0/gallery", "data_file": "./drink_dataset_v1.0/gallery/drink_label.txt", "index_operation": "new", "delimiter": " ", "dist_type": "IP", "embedding_size": 512, "batch_size": 32, "return_k": 5, "score_thres": 0.4 } }