Sync motion-detection from metro-analytics-catalog
Browse files- config.json +16 -0
- export_and_quantize.sh +12 -0
config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "motion-detection",
|
| 3 |
+
"library_name": "opencv",
|
| 4 |
+
"category": "Motion Analytics (classical computer vision)",
|
| 5 |
+
"base_model": null,
|
| 6 |
+
"source_framework": "OpenCV",
|
| 7 |
+
"supported_precisions": [],
|
| 8 |
+
"inference_engine": "OpenCV (CPU) / GStreamer decode via DLStreamer",
|
| 9 |
+
"hardware": [
|
| 10 |
+
"CPU",
|
| 11 |
+
"GPU"
|
| 12 |
+
],
|
| 13 |
+
"detected_classes": "Generic foreground motion regions",
|
| 14 |
+
"hf_repo_id": "Intel/motion-detection",
|
| 15 |
+
"description": "Motion detection use case using classical background subtraction to flag generic foreground motion regions without a deep-learning model"
|
| 16 |
+
}
|
export_and_quantize.sh
CHANGED
|
@@ -22,6 +22,18 @@ if [[ "${APPROVAL}" != "yes" ]]; then
|
|
| 22 |
echo "Download cancelled by user."
|
| 23 |
exit 0
|
| 24 |
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
echo ""
|
| 26 |
echo "--- Downloading sample test video ---"
|
| 27 |
if [[ ! -f test_video.mp4 ]]; then
|
|
|
|
| 22 |
echo "Download cancelled by user."
|
| 23 |
exit 0
|
| 24 |
fi
|
| 25 |
+
|
| 26 |
+
# Ping the HuggingFace repo to register a tracked download of config.json.
|
| 27 |
+
# This is best-effort: a failure (offline, or before the repo is published)
|
| 28 |
+
# must not stop the export.
|
| 29 |
+
echo "--- Registering HuggingFace download (tracking ping) ---"
|
| 30 |
+
HF_REPO_ID="Intel/motion-detection"
|
| 31 |
+
HF_CONFIG_URL="https://huggingface.co/${HF_REPO_ID}/resolve/main/config.json"
|
| 32 |
+
if curl -fsSL -o /dev/null "${HF_CONFIG_URL}"; then
|
| 33 |
+
echo "Registered HuggingFace download for ${HF_REPO_ID}"
|
| 34 |
+
else
|
| 35 |
+
echo "WARNING: HuggingFace tracking ping failed (offline?); continuing." >&2
|
| 36 |
+
fi
|
| 37 |
echo ""
|
| 38 |
echo "--- Downloading sample test video ---"
|
| 39 |
if [[ ! -f test_video.mp4 ]]; then
|