vagheshpatel commited on
Commit
4665c14
·
verified ·
1 Parent(s): ee6192f

Sync face-matching from metro-analytics-catalog

Browse files
Files changed (2) hide show
  1. config.json +21 -0
  2. export_and_quantize.sh +12 -0
config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "face-matching",
3
+ "library_name": "openvino",
4
+ "pipeline_tag": "image-classification",
5
+ "category": "Face Detection + One-to-One Verification",
6
+ "base_model": "face-detection-adas-0001 + face-reidentification-retail-0095 (Open Model Zoo)",
7
+ "source_framework": "Caffe / PyTorch (Open Model Zoo)",
8
+ "supported_precisions": [
9
+ "FP32",
10
+ "FP16"
11
+ ],
12
+ "inference_engine": "OpenVINO",
13
+ "hardware": [
14
+ "CPU",
15
+ "GPU",
16
+ "NPU"
17
+ ],
18
+ "detected_classes": "Human faces (detection) + 256-d face embeddings (matching)",
19
+ "hf_repo_id": "Intel/face-matching",
20
+ "description": "Face matching use case using face-detection-adas-0001 and face-reidentification-retail-0095 for one-to-one face verification via 256-d embedding similarity"
21
+ }
export_and_quantize.sh CHANGED
@@ -40,6 +40,18 @@ if [[ "${APPROVAL}" != "yes" ]]; then
40
  echo "Download cancelled by user."
41
  exit 0
42
  fi
 
 
 
 
 
 
 
 
 
 
 
 
43
  echo ""
44
 
45
  echo "--- Downloading face-detection-adas-0001 (FP16) ---"
 
40
  echo "Download cancelled by user."
41
  exit 0
42
  fi
43
+
44
+ # Ping the HuggingFace repo to register a tracked download of config.json.
45
+ # This is best-effort: a failure (offline, or before the repo is published)
46
+ # must not stop the export.
47
+ echo "--- Registering HuggingFace download (tracking ping) ---"
48
+ HF_REPO_ID="Intel/face-matching"
49
+ HF_CONFIG_URL="https://huggingface.co/${HF_REPO_ID}/resolve/main/config.json"
50
+ if curl -fsSL -o /dev/null "${HF_CONFIG_URL}"; then
51
+ echo "Registered HuggingFace download for ${HF_REPO_ID}"
52
+ else
53
+ echo "WARNING: HuggingFace tracking ping failed (offline?); continuing." >&2
54
+ fi
55
  echo ""
56
 
57
  echo "--- Downloading face-detection-adas-0001 (FP16) ---"