commit 6479f316847bb557529b9652408d62fe106ef23d Author: EVA x10 Development Date: Wed Nov 25 07:35:17 2026 +0100 Initial EVAx10 Video analitics release source with reviewed model licenses diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md new file mode 100644 index 0000000..5f007f0 --- /dev/null +++ b/ARCHITECTURE.md @@ -0,0 +1,47 @@ +# Edge Vision v0.1 architecture + +`VideoSource` emits immutable bitmap frames and camera metrics. Camera2 +consumes latest YUV frames on its own looper, samples preview frames and +rotates by the sensor orientation. It preserves the negotiated source +resolution in metrics and downsamples the analysis image to at most 640 +pixels wide. RTSP, USB and file sources can implement the same interface. +The test-image source is available for deterministic local smoke tests. + +`InferenceEngine` exposes providers, reusable model sessions, named tensor +execution and runtime metrics. `OrtEngine` verifies manifest size and +SHA-256, validates the ONNX session against declared input and outputs and +profiles first-run node assignment. Accelerator selection and actual node +placement are shown separately. The owner serializes all use and release of +ORT sessions on one worker. A future RKNN implementation can implement +this interface without camera or analytics changes. + +Adapters convert pixels and decode outputs independently of the source. +YuNet implements face detection. Two Cydral ONNX sessions produce the +age distribution and classification probabilities independently. Adapter types are explicit +in the model manifest. Compatible weights can be replaced independently after license review and a new build. +A new tensor contract requires an adapter. + +The worker admits at most one frame at a time. Busy, interval and +preview-sampling skips are counted. Camera HAL losses are unavailable. +The UI consumes the latest preview and normalized face boxes. Camera +permission and lifecycle are owned by the separate native APK. Inference +results from stopped generations are discarded. + +The tracker uses geometry and temporary in-memory IDs. After two +observations, a new track can be matched against recent visits by comparing +normalized SFace embeddings. YuNet landmarks align the face crop, and pose, +size and sharpness checks reject poor samples. At most three pose templates +are retained per visit and up to 256 visits live in memory. A repeat requires +two confident matches to the same inactive visit, separated in time and +ahead of the runner-up. Unknown matches are resolved as new visits after +a short delay. A repeat never updates aggregate demographics. + +The repeat window starts from last appearance. Stop, restart and Reset +Statistics clear the templates. The aggregator stores totals and buckets +in private preferences. Benchmark export stores only counters and timing. +The on-screen tracking log holds up to four recent decisions in memory. + +Model selection, provider, interval, threads and confidence are kept in an +independent session configuration. Digital DNA can map declarative fields +to that configuration in a later version. The current APK has no network +permission. diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..9056a95 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/BENCHMARK_REPORT.md b/BENCHMARK_REPORT.md new file mode 100644 index 0000000..7ffb6ed --- /dev/null +++ b/BENCHMARK_REPORT.md @@ -0,0 +1,75 @@ +# Initial benchmark · 24 November 2026 + +Measured on the RK3566 Android 13 bench. Old and new packages were run +sequentially against the same camera and the same unoccupied view at the +three exact stream resolutions. The tests used a 200 ms target interval. +Baseline ran TinyFaceDetector input 320 on WebGL (Mali-G52). Native used +fixed-input YuNet 320 with XNNPACK, two threads, and CPU fallback kernels. +The native capture path downsamples to a maximum analysis-frame width of +640 before the YuNet letterbox. The models and preprocessing differ. + +| Camera scene, no detected faces | FaceAPI detection | FaceAPI rate ceiling* | Native detection | Native measured FPS | +| --- | ---: | ---: | ---: | ---: | +| 640×480 | 299.8 ms | 3.3 | 69.7 ms | 4.2 | +| 1280×720 | 305.8 ms | 3.3 | 66.5 ms | 4.2 | +| 1600×1200 | 356.9 ms | 2.8 | 66.0 ms | 4.1 | + +*FaceAPI rate here is calculated from median processing time, excluding +capture and scheduling overhead. Native rates are completions per second. +Each statistic is a median of short-run samples after the first sample(s). +With no faces, total latency was within 0.2 ms of detector latency. + +At 640×480 the native provider comparison showed CPU 85.1 ms / 4.2 FPS, +XNNPACK 69.7 ms / 4.2 FPS, and NNAPI-reference 351.0 ms / 2.5 FPS. +ORT profiling identified 57 XNNPACK and 23 CPU node events in the detector +first run, and 12 XNNPACK and 15 CPU events in the first age/gender run. +The NNAPI profile recorded one partition. The platform enumerated only +a reference CPU implementation, so this does not show NPU execution. + +Both implementations processed the same local 640×480 multi-face +fixture, based on the FaceAPI demo image. They each detected three faces. +The baseline took 193.7 ms to detect and 255.2 ms for crop/classification +at every sampled iteration. Native medians were 76.7 ms detector and +26.4 ms for iterations in which its tracker invoked the age/gender model. +The native combined median of 81.7 ms includes iterations that skipped +classification. Native registered three visits and classified two faces +into Female, one into Unknown, and three into 25–34. These are model outputs. +No demographic ground truth was applied. + +| Other observations | FaceAPI baseline | Native | +| --- | ---: | ---: | +| APK size | 1,295,746 bytes | about 22.5 MB | +| Cold start, Android `am start -W TotalTime` | 2,078 ms | 1,594 ms | +| Median main-process CPU, no-face 640×480 run | 38.5% | 100.6% | +| Median main-process PSS, no-face 640×480 run | 112.2 MiB | 149.3 MiB | + +CPU 100% means one full logical core. FaceAPI's main-process counters +omit WebView's separate renderer. These CPU and RAM figures cannot +establish end-to-end resource savings across the two implementations. +A shell reading outside the timed loops showed the SoC sensor at around +46–48 °C. Controlled thermal and long-duration stability comparisons +were not performed. + +Real detection recall, age error and gender accuracy require consented, +annotated recordings or tests. Fixture detections are smoke checks with +expected counts, not an accuracy benchmark. One- and multi-person +performance at higher camera resolutions was not measured with controlled +subjects. See the raw [native JSON](benchmarks/native-initial.json) and +[CSV](benchmarks/native-initial.csv), and the [baseline JSON](benchmarks/baseline.json) +and [CSV](benchmarks/baseline.csv). + +With the identical 640×480 single-face fixture both runs detected one +face. FaceAPI medians were 197.0 ms detection, 88.2 ms crop/classification, +and 281.5 ms total. Native medians were 4.9 FPS and 87.3 ms detection. +The final native build ran the fixture for about one minute with zero +reported runtime errors. Latency samples are in +[native solo JSON](benchmarks/native-solo.json) and +[CSV](benchmarks/native-solo.csv). + +The Android split-screen test put Edge Vision beside installed +EVA x10 Player 5.1.60. Both tasks were visible with player surfaces +present. Edge Vision held the real camera and completed inference at +about 3.6–4.3 FPS during the reported end of the short run. A named +production playlist and continuous playback quality were not validated. +The split-screen samples are in [JSON](benchmarks/native-split.json) +and [CSV](benchmarks/native-split.csv). diff --git a/HARDWARE_COMPATIBILITY.md b/HARDWARE_COMPATIBILITY.md new file mode 100644 index 0000000..9c031df --- /dev/null +++ b/HARDWARE_COMPATIBILITY.md @@ -0,0 +1,41 @@ +# Physical Android bench + +Paired hardware is the same RK3566 tablet used by FaceAPI. Actual firmware +is Android 13 (API 33), model RK3566, product rk3566_t, platform rk356x, +ABI arm64-v8a. Android 11 (API 30) is the build minimum and was not available +for a separate physical run. There is approximately 1.9 GiB usable RAM +and 5.0 GiB free on /data at diagnosis. Screen 1280×800, Mali-G52. + +Camera2 device 0 is BACK, sensor orientation 180°, exposed by the external +camera HAL. The device reports 640×480, 1280×720 and 1600×1200 among its YUV +modes. No 1920×1080 sensor mode was advertised. + +- Rockchip (vendor) RKNPU driver reported **0.9.2**. Vendor library + `/vendor/lib64/librknnrt.so` identifies RKNN Runtime **1.5.2**. +- Vendor HIDL advertises `rockchip.hardware.neuralnetworks@1.0`. Android's + public NNAPI NDK enumerated exactly one device, `nnapi-reference`, type + CPU. The vendor RKNN HAL is not evidence of NNAPI NPU availability. +- The APK runs CPU kernels and XNNPACK on ARM CPU. ORT profile with fixed + 320 detector showed 57 XNNPACK and 23 CPU nodes. RKNN was inspected only. +- No root, firmware changes or replacement of system libraries were used. + +The dashboard shows temperature N/A when no public per-app CPU temperature +signal is available. ADB can read the `soc-thermal` zone for bench sampling. +The optional, read-only probe source is `tools/nnapi-devices.c`. + +The camera is exclusive unless the OEM supports concurrent clients on that +physical device. The two packages can be installed together. + +The installed Android package requests CAMERA only. It acquired the camera, +loaded both local sessions and ran inference with the package lacking +INTERNET permission. ADB remained connected over Wi-Fi. + +The stock FaceAPI baseline and Edge Vision remain installed under different +packages. A separate split-screen smoke test confirmed Edge Vision camera +and inference activity alongside the visible EVA x10 player. See the +benchmark report for scope and measured rate. + +The model-registry smoke test imported a pinned YuNet copy as a new +version, validated it in ONNX Runtime, selected it, and ran live +inference. The bundled fixed320 version was then selected and verified +again on the live camera. diff --git a/LICENSE_REPORT.md b/LICENSE_REPORT.md new file mode 100644 index 0000000..c925c98 --- /dev/null +++ b/LICENSE_REPORT.md @@ -0,0 +1,54 @@ +# Licensing review + +## Production admission policy + +Every shipped third-party library, AI runtime, and trained model must have +documented, royalty-free permission for commercial use, modification, and +redistribution in EVA x10. Review the exact binary or model weights and the +corresponding license scope. Download access, a code-only license, an +unreviewed conversion, or a private distribution channel is insufficient. +Record the source revision, artifact SHA-256, permission evidence, required +notices, and origin of any converted weights before admitting an artifact. +Prefer MIT, Apache-2.0, or BSD. CC0-1.0 is permitted for weights with an +explicit dedication. A contradictory or unclear grant blocks release. + +The normal APK build always checks the reviewed inventory and hashes in +`license-lock.json`, all three model permissions, the upstream evidence URLs, +and the presence of local notices. Runtime loads only approved APK assets and +verifies each model hash again. The former local model import path is disabled, +including for imports made by older installations. Changing models requires +reviewing and updating the manifest and lock together. + +## Reviewed components + +| Shipped component | Version and provenance | Grant and evidence | +| --- | --- | --- | +| ONNX Runtime Android | Microsoft Maven AAR 1.32.0, pinned SHA-256. Java classes and two ARM64 libraries. | MIT per the [exact Maven POM](https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.pom). Include MIT text and Microsoft third-party notices for the matching release. | +| YuNet detector | OpenCV Zoo 2026may, commit `47534e27c9851bb1128ccc0102f1145e27f23f98`. Upstream ONNX and local fixed-320 derivative. | MIT explicitly covers all files in the [model directory](https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license), including weights. Keep copyright and MIT text. The fixed-320 derivative changes the graph input dimensions. | +| SFace INT8 embeddings | OpenCV Zoo 2021dec INT8, commit `eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4`. | Apache-2.0 explicitly covers all files in the [model directory](https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/README.md#license), including the shipped quantized weights. Keep the upstream license and applicable attribution. | +| Cydral Age and Gender v1 | Original Dlib weights attributed to Cydral Technology. ONNX exports pinned to [conversion commit `6ddb6ce…`](https://github.com/mowshon/age-and-gender/tree/6ddb6ce2d598705ccbe2067967b2f8be01fd3914), with separate source and export hashes in the upstream model manifest. | The [Dlib model inventory](https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md#dnn_gender_classifier_v1datbz2) explicitly applies CC0-1.0 to each named weight artifact. The ONNX distributor confirms the same grant for its converted weights. CC0 permits commercial use, adaptation, and redistribution. The APK includes the text and provenance notice. | + +ONNX Runtime is the only external binary library in the APK. ARM64 ELF +dependencies resolve to Android system libraries and the sibling ONNX Runtime +library. XNNPACK and other bundled upstream components are covered by the +shipped ONNX Runtime notices, which include the XNNPACK BSD terms. The +ONNX format tools, Python, OpenCV binaries, Dlib binaries, landmark predictor +from the conversion repository, Android SDK build tools, and host JDK are +not distributed in this APK. NNAPI is an Android platform API. + +## Excluded components and scope + +Intel `age-gender-recognition-retail-0013` had no confirmed grant for the +specific downloadable weights and derivative used here. Its model weights +and converter were removed. The old APKs, FaceAPI baseline, and historical +benchmarks are archival. They are not production artifacts or evidence of +rights. The production repository is seeded from a clean commit so the old +Intel weights are absent throughout its published history. + +The model grants cover the software artifacts. They do not license +training photos, which are not distributed. They also do not establish +compliance for a particular biometric deployment. Cydral's original face +chips use Dlib eye-corner landmarks. This port approximates that geometry +using YuNet eye centers; age and gender accuracy must be measured separately +on consenting adults. Existing stored aggregate counts are preserved +across the upgrade. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f5f374f --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +# EVAx10 Video analitics v0.2.2 + +A separate native Android experiment for consenting adult volunteers. +Package `com.it_screen.edgevision`. The existing FaceAPI baseline is +preserved in the sibling FaceAPI-PoC repository and remains independently +installable as `com.it_screen.audiencepoc`. + +## Build and start + +`./build.sh` builds the ARM64, API 30+ APK with the Windows Android SDK 35 +and JDK 17 via WSL. The script pins and verifies the upstream Maven AAR. +Model assets load locally and are verified before ONNX Runtime session +creation. The signed test build is `build/EVAx10-Video-analitics-0.2.2.apk`. + +```text +adb install --no-incremental -r EVAx10-Video-analitics-0.2.2.apk +adb shell am start -W -n com.it_screen.edgevision/.MainActivity +adb logcat -s EdgeVision EdgeVisionBench +``` + +Press **Start**, grant camera access, or choose a local test image. +Stop releases the camera. Start reuses sessions if models and provider +settings match. Benchmarks appear as JSON and CSV under +`/sdcard/Android/data/com.it_screen.edgevision/files/benchmark/` after +**Export Benchmark**. Only aggregate measurements are exported. + +## Model replacement and rollback + +Model replacement in this build goes through the reviewed manifests under +`assets/models/` and the SHA-256 inventory in `license-lock.json`. See +[LICENSE_REPORT.md](LICENSE_REPORT.md) for the required permissions and +evidence. Local model import is disabled. Both bundled YuNet versions can +be selected on-device. + +Select the prior version from the corresponding dropdown to roll back a +model, then press Start. Both original and fixed-320 YuNet are included +for this purpose. For historical bench comparison only, tap Stop and +launch the separate baseline. + +```text +adb shell am start -W -n com.it_screen.audiencepoc/.MainActivity +``` + +See [architecture](ARCHITECTURE.md), [licensing](LICENSE_REPORT.md), +[hardware](HARDWARE_COMPATIBILITY.md) and [benchmarks](BENCHMARK_REPORT.md). + +## Repeat visits and tracking log + +Before Start, set **Окно повтора, мин** to 1, 2, 5, 10, 30 or 60 minutes. +In **Журнал трекинга**, a newly counted track shows “Новый визит · Total +1”. +A confidently matched returning track shows “Тот же человек · Total без изменений”. +An uncertain case shows “Проверяем повтор” until resolved. For a repeat test, +look squarely at the camera, leave the frame for more than three seconds, +then return within the window without pressing Stop. Returning after the +window counts a new visit. Clear Stats or Stop clears the in-memory embeddings. +On-device thresholds are experimental: pose and illumination can cause false +matches or missed repeats. + +## Delivered device build + +The previous bench APK is preserved as `build/EdgeVision-0.1.apk`. diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md new file mode 100644 index 0000000..5c95c0d --- /dev/null +++ b/THIRD_PARTY_NOTICES.md @@ -0,0 +1,6 @@ +# Third-party notices + +- [ONNX Runtime Android Maven 1.32.0 POM](https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.pom). MIT text and the same-version upstream notice file from Microsoft's 1.32.0 Python distribution are in `assets/notices`. Android-specific provenance is recorded in the Maven POM and build hash. No Python modules are shipped. +- [YuNet model-directory MIT license](https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/LICENSE). Shiqi Yu copyright. Text copied to `assets/notices/yunet-LICENSE.txt`. +- [OpenCV Zoo SFace model-directory Apache-2.0 license](https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/LICENSE). Text copied to `assets/notices/sface-LICENSE.txt`. +- [Cydral Age and Gender weight grants](https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md#dnn_gender_classifier_v1datbz2). CC0-1.0 text and ONNX conversion provenance in `assets/notices`. diff --git a/assets/models/age-v1.json b/assets/models/age-v1.json new file mode 100644 index 0000000..699d345 --- /dev/null +++ b/assets/models/age-v1.json @@ -0,0 +1,36 @@ +{ + "id": "cydral-age", + "name": "Cydral Age", + "version": "v1-onnx-6ddb6ce", + "type": "age", + "adapter": "cydral-age", + "format": "ONNX", + "file": "models/age-v1.onnx", + "size": 10768819, + "sha256": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c", + "source": "https://github.com/mowshon/age-and-gender/blob/6ddb6ce2d598705ccbe2067967b2f8be01fd3914/src/age_and_gender/models/age-v1.onnx", + "providers": [ + "CPU" + ], + "license": "CC0-1.0", + "licenseEvidence": "https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md", + "licenseNotice": "notices/cydral-CC0-1.0.txt", + "input": { + "name": "images", + "width": 64, + "height": 64, + "layout": "NCHW", + "dtype": "float32" + }, + "outputs": [ + "probabilities" + ], + "preprocessing": "YuNet eye centers, approximate dlib face chip; normalized RGB", + "postprocessing": "Expected age over 81 classes", + "limitations": "Original uses dlib eye-corner alignment; port uses YuNet eye centers. Accuracy requires field validation.", + "commercialUse": true, + "modificationAllowed": true, + "redistributionAllowed": true, + "licenseVerification": "verified", + "productionAllowed": true +} diff --git a/assets/models/age-v1.onnx b/assets/models/age-v1.onnx new file mode 100644 index 0000000..8929efa Binary files /dev/null and b/assets/models/age-v1.onnx differ diff --git a/assets/models/gender-v1.json b/assets/models/gender-v1.json new file mode 100644 index 0000000..3a9a6b4 --- /dev/null +++ b/assets/models/gender-v1.json @@ -0,0 +1,36 @@ +{ + "id": "cydral-gender", + "name": "Cydral Gender", + "version": "v1-onnx-6ddb6ce", + "type": "gender", + "adapter": "cydral-gender", + "format": "ONNX", + "file": "models/gender-v1.onnx", + "size": 530620, + "sha256": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734", + "source": "https://github.com/mowshon/age-and-gender/blob/6ddb6ce2d598705ccbe2067967b2f8be01fd3914/src/age_and_gender/models/gender-v1.onnx", + "providers": [ + "CPU" + ], + "license": "CC0-1.0", + "licenseEvidence": "https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md", + "licenseNotice": "notices/cydral-CC0-1.0.txt", + "input": { + "name": "images", + "width": 32, + "height": 32, + "layout": "NCHW", + "dtype": "float32" + }, + "outputs": [ + "probabilities" + ], + "preprocessing": "YuNet eye centers, approximate dlib face chip; normalized RGB", + "postprocessing": "Female/male probabilities", + "limitations": "Original uses dlib eye-corner alignment; port uses YuNet eye centers. Accuracy requires field validation.", + "commercialUse": true, + "modificationAllowed": true, + "redistributionAllowed": true, + "licenseVerification": "verified", + "productionAllowed": true +} diff --git a/assets/models/gender-v1.onnx b/assets/models/gender-v1.onnx new file mode 100644 index 0000000..8352131 Binary files /dev/null and b/assets/models/gender-v1.onnx differ diff --git a/assets/models/sface-int8.json b/assets/models/sface-int8.json new file mode 100644 index 0000000..8bd74a7 --- /dev/null +++ b/assets/models/sface-int8.json @@ -0,0 +1,36 @@ +{ + "id": "opencv-sface", + "name": "SFace INT8", + "version": "2021dec", + "type": "embedding", + "adapter": "sface", + "format": "ONNX", + "file": "models/sface-int8.onnx", + "size": 9896933, + "sha256": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a", + "source": "https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/face_recognition_sface_2021dec_int8.onnx", + "license": "Apache-2.0", + "productionAllowed": true, + "providers": [ + "CPU" + ], + "input": { + "name": "data", + "width": 112, + "height": 112, + "layout": "NCHW", + "dtype": "float32" + }, + "outputs": [ + "fc1" + ], + "preprocessing": "Five-point alignment, RGB 0–255", + "postprocessing": "L2 normalization and cosine similarity", + "limitations": "Temporary deduplication; local thresholds require bench validation", + "licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/README.md#license", + "licenseNotice": "notices/sface-LICENSE.txt", + "commercialUse": true, + "modificationAllowed": true, + "redistributionAllowed": true, + "licenseVerification": "verified" +} diff --git a/assets/models/sface-int8.onnx b/assets/models/sface-int8.onnx new file mode 100644 index 0000000..bd18a97 Binary files /dev/null and b/assets/models/sface-int8.onnx differ diff --git a/assets/models/yunet-320.json b/assets/models/yunet-320.json new file mode 100644 index 0000000..8ed1510 --- /dev/null +++ b/assets/models/yunet-320.json @@ -0,0 +1,51 @@ +{ + "format": "ONNX", + "providers": [ + "CPU", + "XNNPACK", + "NNAPI" + ], + "hardware": "Android API 30+, ARM64; CPU fallback", + "id": "opencv-yunet", + "name": "YuNet", + "version": "2026may-fixed320", + "type": "face", + "adapter": "yunet", + "source": "https://media.githubusercontent.com/media/opencv/opencv_zoo/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/face_detection_yunet_2026may.onnx", + "license": "MIT", + "commercialUse": true, + "redistributionAllowed": true, + "licenseVerification": "verified", + "productionAllowed": true, + "input": { + "name": "input", + "width": 320, + "height": 320, + "layout": "NCHW", + "dtype": "float32" + }, + "outputs": [ + "cls_8", + "cls_16", + "cls_32", + "obj_8", + "obj_16", + "obj_32", + "bbox_8", + "bbox_16", + "bbox_32", + "kps_8", + "kps_16", + "kps_32" + ], + "preprocessing": "BGR 0–255, letterbox top-left", + "postprocessing": "sqrt(cls*obj), stride decode, IoU NMS", + "limitations": "Frontal/near-frontal faces; small and occluded faces may be missed", + "file": "models/yunet-320.onnx", + "size": 229653, + "sha256": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c", + "derivation": "ONNX Runtime 1.32.0 make_dynamic_shape_fixed; verified tensor equivalence", + "licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license", + "licenseNotice": "notices/yunet-LICENSE.txt", + "modificationAllowed": true +} diff --git a/assets/models/yunet-320.onnx b/assets/models/yunet-320.onnx new file mode 100644 index 0000000..a1ae071 Binary files /dev/null and b/assets/models/yunet-320.onnx differ diff --git a/assets/models/yunet.json b/assets/models/yunet.json new file mode 100644 index 0000000..350eb7e --- /dev/null +++ b/assets/models/yunet.json @@ -0,0 +1,50 @@ +{ + "format": "ONNX", + "providers": [ + "CPU", + "XNNPACK", + "NNAPI" + ], + "hardware": "Android API 30+, ARM64; CPU fallback", + "id": "opencv-yunet", + "name": "YuNet", + "version": "2026may", + "type": "face", + "adapter": "yunet", + "source": "https://media.githubusercontent.com/media/opencv/opencv_zoo/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/face_detection_yunet_2026may.onnx", + "license": "MIT", + "commercialUse": true, + "redistributionAllowed": true, + "licenseVerification": "verified", + "productionAllowed": true, + "input": { + "name": "input", + "width": 320, + "height": 320, + "layout": "NCHW", + "dtype": "float32" + }, + "outputs": [ + "cls_8", + "cls_16", + "cls_32", + "obj_8", + "obj_16", + "obj_32", + "bbox_8", + "bbox_16", + "bbox_32", + "kps_8", + "kps_16", + "kps_32" + ], + "preprocessing": "BGR 0–255, letterbox top-left", + "postprocessing": "sqrt(cls*obj), stride decode, IoU NMS", + "limitations": "Frontal/near-frontal faces; small and occluded faces may be missed", + "file": "models/yunet.onnx", + "size": 229738, + "sha256": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0", + "licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license", + "licenseNotice": "notices/yunet-LICENSE.txt", + "modificationAllowed": true +} diff --git a/assets/models/yunet.onnx b/assets/models/yunet.onnx new file mode 100644 index 0000000..a939997 Binary files /dev/null and b/assets/models/yunet.onnx differ diff --git a/assets/notices/Cydral-age-gender-models.md b/assets/notices/Cydral-age-gender-models.md new file mode 100644 index 0000000..02c8c37 --- /dev/null +++ b/assets/notices/Cydral-age-gender-models.md @@ -0,0 +1,9 @@ +# Age and gender model notice + +The original dlib age and gender network weights were contributed by Cydral +Technology to the `davisking/dlib-models` project and dedicated to the public +domain under CC0 1.0. + +Source: + +License: diff --git a/assets/notices/LICENSE b/assets/notices/LICENSE new file mode 100644 index 0000000..48bc6bb --- /dev/null +++ b/assets/notices/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/assets/notices/ThirdPartyNotices.txt b/assets/notices/ThirdPartyNotices.txt new file mode 100644 index 0000000..cbbf4ce --- /dev/null +++ b/assets/notices/ThirdPartyNotices.txt @@ -0,0 +1,6325 @@ +THIRD PARTY SOFTWARE NOTICES AND INFORMATION + +Do Not Translate or Localize + +This software incorporates material from third parties. Microsoft makes certain +open source code available at http://3rdpartysource.microsoft.com, or you may +send a check or money order for US $5.00, including the product name, the open +source component name, and version number, to: + +Source Code Compliance Team +Microsoft Corporation +One Microsoft Way +Redmond, WA 98052 +USA + +Notwithstanding any other terms, you may reverse engineer this software to the +extent required to debug changes to any libraries licensed under the GNU Lesser +General Public License. + +_____ + +ggml-org/ggml + +MIT License + +Copyright (c) 2023-2026 The ggml authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ + +protocolbuffers/protobuf + +Copyright 2008 Google Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Code generated by the Protocol Buffer compiler is owned by the owner +of the input file used when generating it. This code is not +standalone and requires a support library to be linked with it. This +support library is itself covered by the above license. + +_____ + +madler/zlib + +The deflate format used by zlib was defined by Phil Katz. The deflate and +zlib specifications were written by L. Peter Deutsch. Thanks to all the +people who reported problems and suggested various improvements in zlib; they +are too numerous to cite here. + +Copyright notice: + + (C) 1995-2017 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +If you use the zlib library in a product, we would appreciate *not* receiving +lengthy legal documents to sign. The sources are provided for free but without +warranty of any kind. The library has been entirely written by Jean-loup +Gailly and Mark Adler; it does not include third-party code. + +If you redistribute modified sources, we would appreciate that you include in +the file ChangeLog history information documenting your changes. Please read +the FAQ for more information on the distribution of modified source versions. + +_____ + +pybind/pybind11 + +Copyright (c) 2016 Wenzel Jakob , All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Please also refer to the file CONTRIBUTING.md, which clarifies licensing of +external contributions to this project including patches, pull requests, etc. + +_____ + +onnx +Open Neural Network Exchange + +Copyright (c) Facebook, Inc. and Microsoft Corporation. All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +Eigen + +MPL v2.0 +Mozilla Public License Version 2.0 + + +================================== + +1. Definitions + +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions + +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities + +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation + +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination + +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + +_____ + +intel/dnnl + +Copyright 2016-2018 Intel Corporation + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +sub-components: + +xbyak + +Copyright (c) 2007 MITSUNARI Shigeo. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. +Neither the name of the copyright owner nor the names of its contributors may +be used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +Microsoft GSL + +Copyright (c) 2015 Microsoft Corporation. All rights reserved. + +This code is licensed under the MIT License (MIT). + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +_____ + +Tensorflow + +Copyright 2018 The TensorFlow Authors. All rights reserved. + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, +and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by +the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all +other entities that control, are controlled by, or are under common +control with that entity. For the purposes of this definition, +"control" means (i) the power, direct or indirect, to cause the +direction or management of such entity, whether by contract or +otherwise, or (ii) ownership of fifty percent (50%) or more of the +outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity +exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, +including but not limited to software source code, documentation +source, and configuration files. + +"Object" form shall mean any form resulting from mechanical +transformation or translation of a Source form, including but +not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or +Object form, made available under the License, as indicated by a +copyright notice that is included in or attached to the work +(an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object +form, that is based on (or derived from) the Work and for which the +editorial revisions, annotations, elaborations, or other modifications +represent, as a whole, an original work of authorship. For the purposes +of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, +the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including +the original version of the Work and any modifications or additions +to that Work or Derivative Works thereof, that is intentionally +submitted to Licensor for inclusion in the Work by the copyright owner +or by an individual or Legal Entity authorized to submit on behalf of +the copyright owner. For the purposes of this definition, "submitted" +means any form of electronic, verbal, or written communication sent +to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, +and issue tracking systems that are managed by, or on behalf of, the +Licensor for the purpose of discussing and improving the Work, but +excluding communication that is conspicuously marked or otherwise +designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity +on behalf of whom a Contribution has been received by Licensor and +subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the +Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, +use, offer to sell, sell, import, and otherwise transfer the Work, +where such license applies only to those patent claims licensable +by such Contributor that are necessarily infringed by their +Contribution(s) alone or by combination of their Contribution(s) +with the Work to which such Contribution(s) was submitted. If You +institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Work +or a Contribution incorporated within the Work constitutes direct +or contributory patent infringement, then any patent licenses +granted to You under this License for that Work shall terminate +as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the +Work or Derivative Works thereof in any medium, with or without +modifications, and in Source or Object form, provided that You +meet the following conditions: + +(a) You must give any other recipients of the Work or +Derivative Works a copy of this License; and + +(b) You must cause any modified files to carry prominent notices +stating that You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works +that You distribute, all copyright, patent, trademark, and +attribution notices from the Source form of the Work, +excluding those notices that do not pertain to any part of +the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its +distribution, then any Derivative Works that You distribute must +include a readable copy of the attribution notices contained +within such NOTICE file, excluding those notices that do not +pertain to any part of the Derivative Works, in at least one +of the following places: within a NOTICE text file distributed +as part of the Derivative Works; within the Source form or +documentation, if provided along with the Derivative Works; or, +within a display generated by the Derivative Works, if and +wherever such third-party notices normally appear. The contents +of the NOTICE file are for informational purposes only and +do not modify the License. You may add Your own attribution +notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided +that such additional attribution notices cannot be construed +as modifying the License. + +You may add Your own copyright statement to Your modifications and +may provide additional or different license terms and conditions +for use, reproduction, or distribution of Your modifications, or +for any such Derivative Works as a whole, provided Your use, +reproduction, and distribution of the Work otherwise complies with +the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, +any Contribution intentionally submitted for inclusion in the Work +by You to the Licensor shall be under the terms and conditions of +this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify +the terms of any separate license agreement you may have executed +with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade +names, trademarks, service marks, or product names of the Licensor, +except as required for reasonable and customary use in describing the +origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or +agreed to in writing, Licensor provides the Work (and each +Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied, including, without limitation, any warranties or conditions +of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A +PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or redistributing the Work and assume any +risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, +whether in tort (including negligence), contract, or otherwise, +unless required by applicable law (such as deliberate and grossly +negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, +incidental, or consequential damages of any character arising as a +result of this License or out of the use or inability to use the +Work (including but not limited to damages for loss of goodwill, +work stoppage, computer failure or malfunction, or any and all +other commercial damages or losses), even if such Contributor +has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing +the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, +or other liability obligations and/or rights consistent with this +License. However, in accepting such obligations, You may act only +on Your own behalf and on Your sole responsibility, not on behalf +of any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason +of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017, The TensorFlow Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +Microsoft Cognitive Toolkit (CNTK) + +Copyright (c) Microsoft Corporation. All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +_____ + +NumPy License + +Copyright (c) 2005, NumPy Developers + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + Neither the name of the NumPy Developers nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +Pytorch / Caffe2 + +From PyTorch: + +Copyright (c) 2016- Facebook, Inc (Adam Paszke) +Copyright (c) 2014- Facebook, Inc (Soumith Chintala) +Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert) +Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu) +Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu) +Copyright (c) 2011-2013 NYU (Clement Farabet) +Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston) +Copyright (c) 2006 Idiap Research Institute (Samy Bengio) +Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz) + +From Caffe2: + +Copyright (c) 2016-present, Facebook Inc. All rights reserved. + +All contributions by Facebook: +Copyright (c) 2016 Facebook Inc. + +All contributions by Google: +Copyright (c) 2015 Google Inc. +All rights reserved. + +All contributions by Yangqing Jia: +Copyright (c) 2015 Yangqing Jia +All rights reserved. + +All contributions from Caffe: +Copyright(c) 2013, 2014, 2015, the respective contributors +All rights reserved. + +All other contributions: +Copyright(c) 2015, 2016 the respective contributors +All rights reserved. + +Caffe2 uses a copyright model similar to Caffe: each contributor holds +copyright over their contributions to Caffe2. The project versioning records +all such contribution and copyright details. If a contributor wants to further +mark their specific copyright on a particular contribution, they should +indicate their copyright solely in the commit message of the change when it is +committed. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America + and IDIAP Research Institute nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +_____ + +Caffe + +COPYRIGHT + +All contributions by the University of California: +Copyright (c) 2014-2017 The Regents of the University of California (Regents) +All rights reserved. + +All other contributions: +Copyright (c) 2014-2017, the respective contributors +All rights reserved. + +Caffe uses a shared copyright model: each contributor holds copyright over +their contributions to Caffe. The project versioning records all such +contribution and copyright details. If a contributor wants to further mark +their specific copyright on a particular contribution, they should indicate +their copyright solely in the commit message of the change when it is +committed. + +LICENSE + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +CONTRIBUTION AGREEMENT + +By contributing to the BVLC/caffe repository through pull-request, comment, +or otherwise, the contributor releases their content to the +license and copyright terms herein. + +_____ + +The LLVM Compiler Infrastructure + +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2003-2017 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== +Copyrights and Licenses for Third Party Software Distributed with LLVM: +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- +Google Test llvm/utils/unittest/googletest +OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex} +pyyaml tests llvm/test/YAMLParser/{*.data, LICENSE.TXT} +ARM contributions llvm/lib/Target/ARM/LICENSE.TXT +md5 contributions llvm/lib/Support/MD5.cpp llvm/include/llvm/Support/MD5.h + +_____ + +google/benchmark + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +CONTRIBUTORS + +# People who have agreed to one of the CLAs and can contribute patches. +# The AUTHORS file lists the copyright holders; this file +# lists people. For example, Google employees are listed here +# but not in AUTHORS, because Google holds the copyright. +# +# Names should be added to this file only after verifying that +# the individual or the individual's organization has agreed to +# the appropriate Contributor License Agreement, found here: +# +# https://developers.google.com/open-source/cla/individual +# https://developers.google.com/open-source/cla/corporate +# +# The agreement for individuals can be filled out on the web. +# +# When adding J Random Contributor's name to this file, +# either J's name or J's organization's name should be +# added to the AUTHORS file, depending on whether the +# individual or corporate CLA was used. +# +# Names should be added to this file as: +# Name +# +# Please keep the list sorted. + +Albert Pretorius +Arne Beer +Billy Robert O'Neal III +Chris Kennelly +Christopher Seymour +David Coeurjolly +Deniz Evrenci +Dominic Hamon +Dominik Czarnota +Eric Fiselier +Eugene Zhuk +Evgeny Safronov +Federico Ficarelli +Felix Homann +Ismael Jimenez Martinez +Jern-Kuan Leong +JianXiong Zhou +Joao Paulo Magalhaes +John Millikin +Jussi Knuuttila +Kai Wolf +Kishan Kumar +Kaito Udagawa +Lei Xu +Matt Clarkson +Maxim Vafin +Nick Hutchinson +Oleksandr Sochka +Pascal Leroy +Paul Redmond +Pierre Phaneuf +Radoslav Yovchev +Raul Marin +Ray Glover +Robert Guo +Roman Lebedev +Shuo Chen +Tobias Ulvgård +Tom Madams +Yixuan Qiu +Yusuke Suzuki +Zbigniew Skowron + +AUTHORS + +# This is the official list of benchmark authors for copyright purposes. +# This file is distinct from the CONTRIBUTORS files. +# See the latter for an explanation. +# +# Names should be added to this file as: +# Name or Organization +# The email address is not required for organizations. +# +# Please keep the list sorted. + +Albert Pretorius +Arne Beer +Carto +Christopher Seymour +David Coeurjolly +Deniz Evrenci +Dirac Research +Dominik Czarnota +Eric Fiselier +Eugene Zhuk +Evgeny Safronov +Federico Ficarelli +Felix Homann +Google Inc. +International Business Machines Corporation +Ismael Jimenez Martinez +Jern-Kuan Leong +JianXiong Zhou +Joao Paulo Magalhaes +Jussi Knuuttila +Kaito Udagawa +Kishan Kumar +Lei Xu +Matt Clarkson +Maxim Vafin +MongoDB Inc. +Nick Hutchinson +Oleksandr Sochka +Paul Redmond +Radoslav Yovchev +Roman Lebedev +Shuo Chen +Steinar H. Gunderson +Stripe, Inc. +Yixuan Qiu +Yusuke Suzuki +Zbigniew Skowron + +_____ + +HalideIR + +Copyright (c) 2016 HalideIR contributors +Copyright (c) 2012-2014 MIT CSAIL, Google Inc., and other contributors +HalideIR is derived from the Halide project. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +_____ + +Distributed Machine Learning Common Codebase + +Copyright (c) 2015 by Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +_____ + +DLPack: Open In Memory Tensor Structure + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 by Contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +HowardHinnant/date + +The source code in this project is released using the MIT License. There is no +global license for the project because each file is licensed individually with +different author names and/or dates. + +If you contribute to this project, please add your name to the license of each +file you modify. If you have already contributed to this project and forgot to +add your name to the license, please feel free to submit a new P/R to add your +name to the license in each file you modified. + +For convenience, here is a copy of the MIT license found in each file except +without author names or dates: + +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ + +FreeBSD: getopt.c file + +Copyright (c) 1987, 1993, 1994 +The Regents of the University of California. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. +_____ + + +google/googletest + +Copyright 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +G3log : Asynchronous logger with Dynamic Sinks + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to +_____ + +Scikit-learn + +Copyright (c) 2007–2018 The scikit-learn developers. +All rights reserved. + + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + a. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + b. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + c. Neither the name of the Scikit-learn Developers nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +_____ + +google/re2 + +Copyright (c) 2009 The RE2 Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +_____ +onnx/onnx-tensorrt + +MIT License + +Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +Copyright (c) 2018 Open Neural Network Exchange + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ +nvidia/cutlass + +Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +SPDX-License-Identifier: BSD-3-Clause + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ +Boost + +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +_____ + +JDAI-CV/DNNLibrary + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [2019] [JD.com Inc. JD AI] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +_____ + +google/flatbuffers + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2014 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +_____ + +google/glog + +Copyright (c) 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +A function gettimeofday in utilities.cc is based on + +http://www.google.com/codesearch/p?hl=en#dR3YEbitojA/COPYING&q=GetSystemTimeAsFileTime%20license:bsd + +The license of this code is: + +Copyright (c) 2003-2008, Jouni Malinen and contributors +All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name(s) of the above-listed copyright holder(s) nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +abseil-cpp +https://github.com/abseil/abseil-cpp + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +_____ + +microsoft/wil + +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE + +_____ + +nlohmann/json + +MIT License + +Copyright (c) 2013-2019 Niels Lohmann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ + +dcleblanc/SafeInt + +MIT License + +Copyright (c) 2018 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ +Open MPI + +3-Clause BSD License + +Most files in this release are marked with the copyrights of the +organizations who have edited them. The copyrights below are in no +particular order and generally reflect members of the Open MPI core +team who have contributed code to this release. The copyrights for +code used under license from other parties are included in the +corresponding files. + +Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana + University Research and Technology + Corporation. All rights reserved. +Copyright (c) 2004-2017 The University of Tennessee and The University + of Tennessee Research Foundation. All rights + reserved. +Copyright (c) 2004-2010 High Performance Computing Center Stuttgart, + University of Stuttgart. All rights reserved. +Copyright (c) 2004-2008 The Regents of the University of California. + All rights reserved. +Copyright (c) 2006-2017 Los Alamos National Security, LLC. All rights + reserved. +Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved. +Copyright (c) 2006-2010 Voltaire, Inc. All rights reserved. +Copyright (c) 2006-2017 Sandia National Laboratories. All rights reserved. +Copyright (c) 2006-2010 Sun Microsystems, Inc. All rights reserved. + Use is subject to license terms. +Copyright (c) 2006-2017 The University of Houston. All rights reserved. +Copyright (c) 2006-2009 Myricom, Inc. All rights reserved. +Copyright (c) 2007-2017 UT-Battelle, LLC. All rights reserved. +Copyright (c) 2007-2017 IBM Corporation. All rights reserved. +Copyright (c) 1998-2005 Forschungszentrum Juelich, Juelich Supercomputing + Centre, Federal Republic of Germany +Copyright (c) 2005-2008 ZIH, TU Dresden, Federal Republic of Germany +Copyright (c) 2007 Evergrid, Inc. All rights reserved. +Copyright (c) 2008 Chelsio, Inc. All rights reserved. +Copyright (c) 2008-2009 Institut National de Recherche en + Informatique. All rights reserved. +Copyright (c) 2007 Lawrence Livermore National Security, LLC. + All rights reserved. +Copyright (c) 2007-2017 Mellanox Technologies. All rights reserved. +Copyright (c) 2006-2010 QLogic Corporation. All rights reserved. +Copyright (c) 2008-2017 Oak Ridge National Labs. All rights reserved. +Copyright (c) 2006-2012 Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2009-2015 Bull SAS. All rights reserved. +Copyright (c) 2010 ARM ltd. All rights reserved. +Copyright (c) 2016 ARM, Inc. All rights reserved. +Copyright (c) 2010-2011 Alex Brick . All rights reserved. +Copyright (c) 2012 The University of Wisconsin-La Crosse. All rights + reserved. +Copyright (c) 2013-2016 Intel, Inc. All rights reserved. +Copyright (c) 2011-2017 NVIDIA Corporation. All rights reserved. +Copyright (c) 2016 Broadcom Limited. All rights reserved. +Copyright (c) 2011-2017 Fujitsu Limited. All rights reserved. +Copyright (c) 2014-2015 Hewlett-Packard Development Company, LP. All + rights reserved. +Copyright (c) 2013-2017 Research Organization for Information Science (RIST). + All rights reserved. +Copyright (c) 2017-2018 Amazon.com, Inc. or its affiliates. All Rights + reserved. +Copyright (c) 2018 DataDirect Networks. All rights reserved. +Copyright (c) 2018-2019 Triad National Security, LLC. All rights reserved. + +$COPYRIGHT$ + +Additional copyrights may follow + +$HEADER$ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer listed + in this license in the documentation and/or other materials + provided with the distribution. + +- Neither the name of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +The copyright holders provide no reassurances that the source code +provided does not infringe any patent, copyright, or any other +intellectual property rights of third parties. The copyright holders +disclaim any liability to any recipient for claims brought against +recipient by any third party for infringement of that parties +intellectual property rights. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +The Android Open Source Project + +Copyright (C) 2017 The Android Open Source Project +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +------ + +libprotobuf-mutator + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + ----- + + openucx/ucx + https://github.com/openucx/ucx + + Copyright (c) 2014-2015 UT-Battelle, LLC. All rights reserved. + Copyright (C) 2014-2020 Mellanox Technologies Ltd. All rights reserved. + Copyright (C) 2014-2015 The University of Houston System. All rights reserved. + Copyright (C) 2015 The University of Tennessee and The University + of Tennessee Research Foundation. All rights reserved. + Copyright (C) 2016-2020 ARM Ltd. All rights reserved. + Copyright (c) 2016 Los Alamos National Security, LLC. All rights reserved. + Copyright (C) 2016-2020 Advanced Micro Devices, Inc. All rights reserved. + Copyright (C) 2019 UChicago Argonne, LLC. All rights reserved. + Copyright (c) 2018-2020 NVIDIA CORPORATION. All rights reserved. + Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved. + Copyright (C) 2016-2020 Stony Brook University. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ----- + + From PyTorch: + + Copyright (c) 2016- Facebook, Inc (Adam Paszke) + Copyright (c) 2014- Facebook, Inc (Soumith Chintala) + Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert) + Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu) + Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu) + Copyright (c) 2011-2013 NYU (Clement Farabet) + Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston) + Copyright (c) 2006 Idiap Research Institute (Samy Bengio) + Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz) + + From Caffe2: + + Copyright (c) 2016-present, Facebook Inc. All rights reserved. + + All contributions by Facebook: + Copyright (c) 2016 Facebook Inc. + + All contributions by Google: + Copyright (c) 2015 Google Inc. + All rights reserved. + + All contributions by Yangqing Jia: + Copyright (c) 2015 Yangqing Jia + All rights reserved. + + All contributions from Caffe: + Copyright(c) 2013, 2014, 2015, the respective contributors + All rights reserved. + + All other contributions: + Copyright(c) 2015, 2016 the respective contributors + All rights reserved. + + Caffe2 uses a copyright model similar to Caffe: each contributor holds + copyright over their contributions to Caffe2. The project versioning records + all such contribution and copyright details. If a contributor wants to further + mark their specific copyright on a particular contribution, they should + indicate their copyright solely in the commit message of the change when it is + committed. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America + and IDIAP Research Institute nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +_____ + + mpi4py + https://github.com/mpi4py/mpi4py/ + + ======================= + LICENSE: MPI for Python + ======================= + + :Author: Lisandro Dalcin + :Contact: dalcinl@gmail.com + + + Copyright (c) 2019, Lisandro Dalcin. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +_____ +huggingface/transformers + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +_____ +msgpack/msgpack-python + +Copyright (C) 2008-2011 INADA Naoki + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +_____ +lanpa/tensorboardX + +MIT License + +Copyright (c) 2017 Tzu-Wei Huang + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +_____ +tensorflow/tensorboard + +Copyright 2017 The TensorFlow Authors. All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017, The TensorFlow Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +_____ + +cerberus + +Cerberus is a lightweight and extensible data validation library for Python. + +ISC License + +Copyright (c) 2012-2016 Nicola Iarocci. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +_____ + +MurmurHash3 + +MIT license + +https://github.com/aappleby/smhasher + +SMHasher is a test suite designed to test the distribution, collision, and +performance properties of non-cryptographic hash functions. +This is the home for the MurmurHash family of hash functions along with the +SMHasher test suite used to verify them. +SMHasher is released under the MIT license. +All MurmurHash versions are public domain software, and the author disclaims all copyright to their code. + +_____ + +gtest-ios-framework + +https://github.com/mestevens/gtest-ios-framework + +Copyright (c) 2013 Matthew Stevens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +_____ + +DLPack + +https://github.com/dmlc/dlpack + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 by Contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +emsdk + +MIT/Expat license + +https://github.com/emscripten-core/emsdk + +Copyright (c) 2018 Emscripten authors (see AUTHORS in Emscripten) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +---------------------------------------------------------------------------- + +This is the MIT/Expat License. For more information see: + +1. http://www.opensource.org/licenses/mit-license.php + +2. http://en.wikipedia.org/wiki/MIT_License + +_____ + +coremltools + +BSD-3-Clause License + +https://github.com/apple/coremltools + +Copyright (c) 2020, Apple Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder(s) nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +© 2021 GitHub, Inc. + +_____ + +react-native + +MIT License + +https://github.com/facebook/react-native + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ + +pytorch/cpuinfo + +BSD 2-Clause "Simplified" License + +https://github.com/pytorch/cpuinfo + +Copyright (c) 2019 Google LLC +Copyright (c) 2017-2018 Facebook Inc. +Copyright (C) 2012-2017 Georgia Institute of Technology +Copyright (C) 2010-2012 Marat Dukhan + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +SQLite Is Public Domain + +All of the code and documentation in SQLite has been dedicated to the public +domain by the authors. All code authors, and representatives of the companies +they work for, have signed affidavits dedicating their contributions to the +public domain and originals of those signed affidavits are stored in a firesafe +at the main offices of Hwaci. Anyone is free to copy, modify, publish, use, +compile, sell, or distribute the original SQLite code, either in source code +form or as a compiled binary, for any purpose, commercial or non-commercial, +and by any means. + +The previous paragraph applies to the deliverable code and documentation in +SQLite - those parts of the SQLite library that you actually bundle and ship +with a larger application. Some scripts used as part of the build process (for +example the "configure" scripts generated by autoconf) might fall under other +open-source licenses. Nothing from these build scripts ever reaches the final +deliverable SQLite library, however, and so the licenses associated with those +scripts should not be a factor in assessing your rights to copy and use the +SQLite library. + +All of the deliverable code in SQLite has been written from scratch. No code +has been taken from other projects or from the open internet. Every line of +code can be traced back to its original author, and all of those authors have +public domain dedications on file. So the SQLite code base is clean and is +uncontaminated with licensed code from other projects. + +_____ + +google/XNNPACK + +BSD License + +For XNNPACK software + +Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. +Copyright 2019 Google LLC + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook nor the names of its contributors may be used to + endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +google/sentencepiece, https://github.com/google/sentencepiece +(included when statically linked with onnxruntime-extensions) + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +dlfcn-win32/dlfcn-win32 is licensed under the MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +_____ + +The Python Imaging Library (PIL) is + + Copyright © 1997-2011 by Secret Labs AB + Copyright © 1995-2011 by Fredrik Lundh + +Pillow is the friendly PIL fork. It is + + Copyright © 2010-2023 by Alex Clark and contributors + +Like PIL, Pillow is licensed under the open source HPND License: + +By obtaining, using, and/or copying this software and/or its associated +documentation, you agree that you have read, understood, and will comply +with the following terms and conditions: + +Permission to use, copy, modify, and distribute this software and its +associated documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appears in all copies, and that +both that copyright notice and this permission notice appear in supporting +documentation, and that the name of Secret Labs AB or the author not be +used in advertising or publicity pertaining to distribution of the software +without specific, written prior permission. + +SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, +INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +_____ + +openssl/openssl, https://github.com/openssl/openssl + + Apache License + Version 2.0, January 2004 + https://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + +_____ + +Tencent/rapidjson, https://github.com/Tencent/rapidjson + +Tencent is pleased to support the open source community by making RapidJSON available. + +Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. + +If you have downloaded a copy of the RapidJSON binary from Tencent, please note that the RapidJSON binary is licensed under the MIT License. +If you have downloaded a copy of the RapidJSON source code from Tencent, please note that RapidJSON source code is licensed under the MIT License, except for the third-party components listed below which are subject to different license terms. Your integration of RapidJSON into your own projects may require compliance with the MIT License, as well as the other licenses applicable to the third-party components included within RapidJSON. To avoid the problematic JSON license in your own projects, it's sufficient to exclude the bin/jsonchecker/ directory, as it's the only code under the JSON license. +A copy of the MIT License is included in this file. + +Other dependencies and licenses: + +Open Source Software Licensed Under the BSD License: +-------------------------------------------------------------------- + +The msinttypes r29 +Copyright (c) 2006-2013 Alexander Chemeris +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* Neither the name of copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Open Source Software Licensed Under the JSON License: +-------------------------------------------------------------------- + +json.org +Copyright (c) 2002 JSON.org +All Rights Reserved. + +JSON_checker +Copyright (c) 2002 JSON.org +All Rights Reserved. + + +Terms of the JSON License: +--------------------------------------------------- + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +The Software shall be used for Good, not Evil. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Terms of the MIT License: +-------------------------------------------------------------------- + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +_____ + +boostorg/boost, https://github.com/boostorg/boost + +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +_____ + +libb64/libb64, https://github.com/libb64/libb64 + +Copyright-Only Dedication (based on United States law) or Public Domain Certification + +The person or persons who have associated work with this document (the "Dedicator" or "Certifier") hereby either (a) certifies that, to the best of his knowledge, the work of authorship identified is in the public domain of the country from which the work is published, or (b) hereby dedicates whatever copyright the dedicators holds in the work of authorship identified below (the "Work") to the public domain. A certifier, moreover, dedicates any copyright interest he may have in the associated work, and for these purposes, is described as a "dedicator" below. + +A certifier has taken reasonable steps to verify the copyright status of this work. Certifier recognizes that his good faith efforts may not shield him from liability if in fact the work certified is not in the public domain. + +Dedicator makes this dedication for the benefit of the public at large and to the detriment of the Dedicator's heirs and successors. Dedicator intends this dedication to be an overt act of relinquishment in perpetuity of all present and future rights under copyright law, whether vested or contingent, in the Work. Dedicator understands that such relinquishment of all rights includes the relinquishment of all rights to enforce (by lawsuit or otherwise) those copyrights in the Work. + +Dedicator recognizes that, once placed in the public domain, the Work may be freely reproduced, distributed, transmitted, used, modified, built upon, or otherwise exploited by anyone for any purpose, commercial or non-commercial, and in any way, including by methods that have not yet been invented or conceived. + +_____ + +posix pthread library, https://sourceforge.net/projects/pthreads4w + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +_____ + +Triton Inference Server & Client, https://github.com/triton-inference-server + +Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of NVIDIA CORPORATION nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +microsoft/mimalloc, https://github.com/microsoft/mimalloc + +MIT License + +Copyright (c) 2018-2021 Microsoft Corporation, Daan Leijen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +_____ + +TensorFlow.js + +https://github.com/tensorflow/tfjs + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +—— + +curl/curl + +https://github.com/curl + +COPYRIGHT AND PERMISSION NOTICE + +Copyright (C) Daniel Stenberg, , and many +contributors, see the THANKS file. + +All rights reserved. + +Permission to use, copy, modify, and distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright +notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall not +be used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization of the copyright holder. + +_____ + +Mbed TLS + +https://github.com/Mbed-TLS/mbedtls + +Copyright The Mbed TLS Contributors + +Mbed TLS is available under the Apache License 2.0 OR the GNU General Public +License, version 2 or later. This distribution uses Mbed TLS under the Apache +License 2.0. The full Apache License 2.0 terms are reproduced above in this +file. + +_____ + +Intel neural-compressor + +https://github.com/intel/neural-compressor + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + ============================================================================ + + Copyright 2016-2019 Intel Corporation + Copyright 2018 YANDEX LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + This distribution includes third party software ("third party programs"). + This third party software, even if included with the distribution of + the Intel software, may be governed by separate license terms, including + without limitation, third party license terms, other Intel software license + terms, and open source software license terms. These separate license terms + govern your use of the third party programs as set forth in the + "THIRD-PARTY-PROGRAMS" file. + +_____ + +FlashAttention, https://github.com/Dao-AILab/flash-attention + +BSD 3-Clause License + +Copyright (c) 2022, the respective contributors, as shown by the AUTHORS file. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +neural-speed + +https://github.com/intel/neural-speed + + Apache License + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + ============================================================================ + + Copyright 2016-2019 Intel Corporation + Copyright 2018 YANDEX LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + This distribution includes third party software ("third party programs"). + This third party software, even if included with the distribution of + the Intel software, may be governed by separate license terms, including + without limitation, third party license terms, other Intel software license + terms, and open source software license terms. These separate license terms + govern your use of the third party programs as set forth in the + "THIRD-PARTY-PROGRAMS" file. + +_____ + +dawn + +https://dawn.googlesource.com/dawn + + BSD 3-Clause License + + Copyright 2017-2023 The Dawn & Tint Authors + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +KleidiAI + +https://gitlab.arm.com/kleidi/kleidiai + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +Copyright 2024-2025 Arm Limited and/or its affiliates + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +_____ + +microsoft/cpp_client_telemetry, https://github.com/microsoft/cpp_client_telemetry/ + +Apache License + +Copyright (c) Microsoft Corporation. All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +_____ +DeepSeek DeepGEMM (https://github.com/deepseek-ai/DeepGEMM) +Commit: 559d79fb6994a58b8a15b4b93bf13ccc16edf247 + +MIT License + +Copyright (c) 2025 DeepSeek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/assets/notices/cydral-CC0-1.0.txt b/assets/notices/cydral-CC0-1.0.txt new file mode 100644 index 0000000..2c4afab --- /dev/null +++ b/assets/notices/cydral-CC0-1.0.txt @@ -0,0 +1,117 @@ +CC0 1.0 Universal + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later +claims of infringement build upon, modify, incorporate in other works, reuse +and redistribute as freely as possible in any form whatsoever and for any +purposes, including without limitation commercial purposes. These owners may +contribute to the Commons to promote the ideal of a free culture and the +further production of creative, cultural and scientific works, or to gain +reputation or greater distribution for their Work in part through the use and +efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with a +Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not limited +to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, communicate, + and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + + iii. publicity and privacy rights pertaining to a person's image or likeness + depicted in a Work; + + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + + v. rights protecting the extraction, dissemination, use and reuse of data in + a Work; + + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation thereof, + including any amended or successor version of such directive); and + + vii. other similar, equivalent or corresponding rights throughout the world + based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time +extensions), (iii) in any current or future medium and for any number of +copies, and (iv) for any purpose whatsoever, including without limitation +commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes +the Waiver for the benefit of each member of the public at large and to the +detriment of Affirmer's heirs and successors, fully intending that such Waiver +shall not be subject to revocation, rescission, cancellation, termination, or +any other legal or equitable action to disrupt the quiet enjoyment of the Work +by the public as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account +Affirmer's express Statement of Purpose. In addition, to the extent the Waiver +is so judged Affirmer hereby grants to each affected person a royalty-free, +non transferable, non sublicensable, non exclusive, irrevocable and +unconditional license to exercise Affirmer's Copyright and Related Rights in +the Work (i) in all territories worldwide, (ii) for the maximum duration +provided by applicable law or treaty (including future time extensions), (iii) +in any current or future medium and for any number of copies, and (iv) for any +purpose whatsoever, including without limitation commercial, advertising or +promotional purposes (the "License"). The License shall be deemed effective as +of the date CC0 was applied by Affirmer to the Work. Should any part of the +License for any reason be judged legally invalid or ineffective under +applicable law, such partial invalidity or ineffectiveness shall not +invalidate the remainder of the License, and in such case Affirmer hereby +affirms that he or she will not (i) exercise any of his or her remaining +Copyright and Related Rights in the Work or (ii) assert any associated claims +and causes of action with respect to the Work, in either case contrary to +Affirmer's express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + + b. Affirmer offers the Work as-is and makes no representations or warranties + of any kind concerning the Work, express, implied, statutory or otherwise, + including without limitation warranties of title, merchantability, fitness + for a particular purpose, non infringement, or the absence of latent or + other defects, accuracy, or the present or absence of errors, whether or not + discoverable, all to the greatest extent permissible under applicable law. + + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without limitation + any person's Copyright and Related Rights in the Work. Further, Affirmer + disclaims responsibility for obtaining any necessary consents, permissions + or other rights required for any use of the Work. + + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to this + CC0 or use of the Work. + +For more information, please see + + diff --git a/assets/notices/sface-LICENSE.txt b/assets/notices/sface-LICENSE.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/assets/notices/sface-LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/assets/notices/yunet-LICENSE.txt b/assets/notices/yunet-LICENSE.txt new file mode 100644 index 0000000..4cdf89a --- /dev/null +++ b/assets/notices/yunet-LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Shiqi Yu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/benchmarks/baseline.csv b/benchmarks/baseline.csv new file mode 100644 index 0000000..f7d56d6 --- /dev/null +++ b/benchmarks/baseline.csv @@ -0,0 +1,51 @@ +scene,resolution,backend,input_size,interval_ms,sample,faces,detection_ms,age_gender_ms,total_ms,cpu_pct,pss_mib +camera,640×480,webgl,320,200,1,0,2131.5,,2132.399999999907,76,111.6669921875 +camera,640×480,webgl,320,200,2,0,321.5,,321.79999999981374,45,111.7353515625 +camera,640×480,webgl,320,200,3,0,317.6999999997206,,317.89999999990687,63,111.9033203125 +camera,640×480,webgl,320,200,4,0,337.10000000009313,,337.3000000002794,38,111.9873046875 +camera,640×480,webgl,320,200,5,0,310.79999999981374,,310.89999999990687,41,112.1376953125 +camera,640×480,webgl,320,200,6,0,288.8000000002794,,288.90000000037253,36,112.2216796875 +camera,640×480,webgl,320,200,7,0,283.40000000037253,,283.5,37,112.0498046875 +camera,640×480,webgl,320,200,8,0,328.10000000009313,,328.20000000018626,58,112.4091796875 +camera,640×480,webgl,320,200,9,0,245.20000000018626,,245.5,39,112.4677734375 +camera,640×480,webgl,320,200,10,0,261.60000000009313,,261.70000000018626,34,112.5439453125 +camera,1280×720,webgl,320,200,1,0,265.5,,265.6999999997206,107,117.138671875 +camera,1280×720,webgl,320,200,2,0,277.5,,277.70000000018626,32,116.546875 +camera,1280×720,webgl,320,200,3,0,277.39999999990687,,277.60000000009313,31,116.626953125 +camera,1280×720,webgl,320,200,4,0,339.70000000018626,,339.89999999990687,28,116.6953125 +camera,1280×720,webgl,320,200,5,0,361.39999999990687,,361.60000000009313,54,116.841796875 +camera,1280×720,webgl,320,200,6,0,345.60000000009313,,345.79999999981374,28,116.9072265625 +camera,1280×720,webgl,320,200,7,0,334.10000000009313,,334.29999999981374,28,116.3369140625 +camera,1280×720,webgl,320,200,8,0,267.5,,267.60000000009313,31,116.4013671875 +camera,1280×720,webgl,320,200,9,0,267.8000000002794,,267.8000000002794,43,116.5126953125 +camera,1280×720,webgl,320,200,10,0,261.89999999990687,,262.10000000009313,30,116.5751953125 +camera,1600×1200,webgl,320,200,1,0,291.6999999997206,,291.89999999990687,80,121.953125 +camera,1600×1200,webgl,320,200,2,0,343.1999999997206,,343.39999999990687,29,120.6875 +camera,1600×1200,webgl,320,200,3,0,380.39999999990687,,380.6999999997206,103,118.43359375 +camera,1600×1200,webgl,320,200,4,0,355.3000000002794,,355.5,29,118.5703125 +camera,1600×1200,webgl,320,200,5,0,358.5,,358.70000000018626,28,118.478515625 +camera,1600×1200,webgl,320,200,6,0,362.79999999981374,,363,64,118.58203125 +camera,1600×1200,webgl,320,200,7,0,344.6999999997206,,344.89999999990687,27,118.658203125 +camera,1600×1200,webgl,320,200,8,0,349.60000000009313,,349.8000000002794,98,117.416015625 +camera,1600×1200,webgl,320,200,9,0,341.89999999990687,,342.10000000009313,31,117.3974609375 +camera,1600×1200,webgl,320,200,10,0,361.89999999990687,,362.10000000009313,30,117.4560546875 +Solo,640×480,webgl,320,200,1,1,354.5,1446.6999999997206,1801.1999999997206,79,117.5498046875 +Solo,640×480,webgl,320,200,2,1,256.40000000037253,84.89999999990687,341.3000000002794,44,117.7626953125 +Solo,640×480,webgl,320,200,3,1,204.10000000009313,92.39999999990687,296.5,69,118.0185546875 +Solo,640×480,webgl,320,200,4,1,191.60000000009313,87.29999999981374,278.89999999990687,52,118.1943359375 +Solo,640×480,webgl,320,200,5,1,191.10000000009313,90,281.10000000009313,52,118.3349609375 +Solo,640×480,webgl,320,200,6,1,198.79999999981374,83.10000000009313,281.89999999990687,54,118.5029296875 +Solo,640×480,webgl,320,200,7,1,184.60000000009313,89.10000000009313,273.70000000018626,54,118.6455078125 +Solo,640×480,webgl,320,200,8,1,196.6999999997206,82.3000000002794,279,55,118.8251953125 +Solo,640×480,webgl,320,200,9,1,209,81,290,94,119.0556640625 +Solo,640×480,webgl,320,200,10,1,197.29999999981374,111.10000000009313,308.39999999990687,55,119.1962890625 +Group,640×480,webgl,320,200,1,3,250.40000000037253,296.39999999990687,546.8000000002794,46,120.3681640625 +Group,640×480,webgl,320,200,2,3,192.59999999962747,341,533.5999999996275,58,120.6884765625 +Group,640×480,webgl,320,200,3,3,195.59999999962747,291.8000000002794,487.39999999990687,56,121.0830078125 +Group,640×480,webgl,320,200,4,3,199.70000000018626,240.6999999997206,440.39999999990687,72,121.5087890625 +Group,640×480,webgl,320,200,5,3,186.10000000009313,249.20000000018626,435.3000000002794,63,121.8681640625 +Group,640×480,webgl,320,200,6,3,196.3000000002794,237.6999999997206,434,64,122.2392578125 +Group,640×480,webgl,320,200,7,3,183.10000000009313,320.79999999981374,503.89999999990687,58,120.12890625 +Group,640×480,webgl,320,200,8,3,196.6999999997206,311.39999999990687,508.09999999962747,70,120.5 +Group,640×480,webgl,320,200,9,3,191.79999999981374,236.20000000018626,428,62,120.8828125 +Group,640×480,webgl,320,200,10,3,188.70000000018626,261.20000000018626,449.90000000037253,68,121.16015625 diff --git a/benchmarks/baseline.json b/benchmarks/baseline.json new file mode 100755 index 0000000..7fcb365 --- /dev/null +++ b/benchmarks/baseline.json @@ -0,0 +1,397 @@ +[ + { + "scene": "camera", + "actual": "640×480", + "backend": "webgl", + "interval_ms": 200, + "input_size": 320, + "trace": [ + { + "detection_ms": 2131.5, + "age_gender_ms": null, + "total_ms": 2132.399999999907, + "faces": 0, + "raw": "76,114347" + }, + { + "detection_ms": 321.5, + "age_gender_ms": null, + "total_ms": 321.79999999981374, + "faces": 0, + "raw": "45,114417" + }, + { + "detection_ms": 317.6999999997206, + "age_gender_ms": null, + "total_ms": 317.89999999990687, + "faces": 0, + "raw": "63,114589" + }, + { + "detection_ms": 337.10000000009313, + "age_gender_ms": null, + "total_ms": 337.3000000002794, + "faces": 0, + "raw": "38,114675" + }, + { + "detection_ms": 310.79999999981374, + "age_gender_ms": null, + "total_ms": 310.89999999990687, + "faces": 0, + "raw": "41,114829" + }, + { + "detection_ms": 288.8000000002794, + "age_gender_ms": null, + "total_ms": 288.90000000037253, + "faces": 0, + "raw": "36,114915" + }, + { + "detection_ms": 283.40000000037253, + "age_gender_ms": null, + "total_ms": 283.5, + "faces": 0, + "raw": "37,114739" + }, + { + "detection_ms": 328.10000000009313, + "age_gender_ms": null, + "total_ms": 328.20000000018626, + "faces": 0, + "raw": "58,115107" + }, + { + "detection_ms": 245.20000000018626, + "age_gender_ms": null, + "total_ms": 245.5, + "faces": 0, + "raw": "39,115167" + }, + { + "detection_ms": 261.60000000009313, + "age_gender_ms": null, + "total_ms": 261.70000000018626, + "faces": 0, + "raw": "34,115245" + } + ] + }, + { + "scene": "camera", + "actual": "1280×720", + "backend": "webgl", + "interval_ms": 200, + "input_size": 320, + "trace": [ + { + "detection_ms": 265.5, + "age_gender_ms": null, + "total_ms": 265.6999999997206, + "faces": 0, + "raw": "107,119950" + }, + { + "detection_ms": 277.5, + "age_gender_ms": null, + "total_ms": 277.70000000018626, + "faces": 0, + "raw": "32,119344" + }, + { + "detection_ms": 277.39999999990687, + "age_gender_ms": null, + "total_ms": 277.60000000009313, + "faces": 0, + "raw": "31,119426" + }, + { + "detection_ms": 339.70000000018626, + "age_gender_ms": null, + "total_ms": 339.89999999990687, + "faces": 0, + "raw": "28,119496" + }, + { + "detection_ms": 361.39999999990687, + "age_gender_ms": null, + "total_ms": 361.60000000009313, + "faces": 0, + "raw": "54,119646" + }, + { + "detection_ms": 345.60000000009313, + "age_gender_ms": null, + "total_ms": 345.79999999981374, + "faces": 0, + "raw": "28,119713" + }, + { + "detection_ms": 334.10000000009313, + "age_gender_ms": null, + "total_ms": 334.29999999981374, + "faces": 0, + "raw": "28,119129" + }, + { + "detection_ms": 267.5, + "age_gender_ms": null, + "total_ms": 267.60000000009313, + "faces": 0, + "raw": "31,119195" + }, + { + "detection_ms": 267.8000000002794, + "age_gender_ms": null, + "total_ms": 267.8000000002794, + "faces": 0, + "raw": "43,119309" + }, + { + "detection_ms": 261.89999999990687, + "age_gender_ms": null, + "total_ms": 262.10000000009313, + "faces": 0, + "raw": "30,119373" + } + ] + }, + { + "scene": "camera", + "actual": "1600×1200", + "backend": "webgl", + "interval_ms": 200, + "input_size": 320, + "trace": [ + { + "detection_ms": 291.6999999997206, + "age_gender_ms": null, + "total_ms": 291.89999999990687, + "faces": 0, + "raw": "80,124880" + }, + { + "detection_ms": 343.1999999997206, + "age_gender_ms": null, + "total_ms": 343.39999999990687, + "faces": 0, + "raw": "29,123584" + }, + { + "detection_ms": 380.39999999990687, + "age_gender_ms": null, + "total_ms": 380.6999999997206, + "faces": 0, + "raw": "103,121276" + }, + { + "detection_ms": 355.3000000002794, + "age_gender_ms": null, + "total_ms": 355.5, + "faces": 0, + "raw": "29,121416" + }, + { + "detection_ms": 358.5, + "age_gender_ms": null, + "total_ms": 358.70000000018626, + "faces": 0, + "raw": "28,121322" + }, + { + "detection_ms": 362.79999999981374, + "age_gender_ms": null, + "total_ms": 363, + "faces": 0, + "raw": "64,121428" + }, + { + "detection_ms": 344.6999999997206, + "age_gender_ms": null, + "total_ms": 344.89999999990687, + "faces": 0, + "raw": "27,121506" + }, + { + "detection_ms": 349.60000000009313, + "age_gender_ms": null, + "total_ms": 349.8000000002794, + "faces": 0, + "raw": "98,120234" + }, + { + "detection_ms": 341.89999999990687, + "age_gender_ms": null, + "total_ms": 342.10000000009313, + "faces": 0, + "raw": "31,120215" + }, + { + "detection_ms": 361.89999999990687, + "age_gender_ms": null, + "total_ms": 362.10000000009313, + "faces": 0, + "raw": "30,120275" + } + ] + }, + { + "scene": "Solo", + "actual": "640×480", + "backend": "webgl", + "interval_ms": 200, + "input_size": 320, + "trace": [ + { + "detection_ms": 354.5, + "age_gender_ms": 1446.6999999997206, + "total_ms": 1801.1999999997206, + "faces": 1, + "raw": "79,120371" + }, + { + "detection_ms": 256.40000000037253, + "age_gender_ms": 84.89999999990687, + "total_ms": 341.3000000002794, + "faces": 1, + "raw": "44,120589" + }, + { + "detection_ms": 204.10000000009313, + "age_gender_ms": 92.39999999990687, + "total_ms": 296.5, + "faces": 1, + "raw": "69,120851" + }, + { + "detection_ms": 191.60000000009313, + "age_gender_ms": 87.29999999981374, + "total_ms": 278.89999999990687, + "faces": 1, + "raw": "52,121031" + }, + { + "detection_ms": 191.10000000009313, + "age_gender_ms": 90, + "total_ms": 281.10000000009313, + "faces": 1, + "raw": "52,121175" + }, + { + "detection_ms": 198.79999999981374, + "age_gender_ms": 83.10000000009313, + "total_ms": 281.89999999990687, + "faces": 1, + "raw": "54,121347" + }, + { + "detection_ms": 184.60000000009313, + "age_gender_ms": 89.10000000009313, + "total_ms": 273.70000000018626, + "faces": 1, + "raw": "54,121493" + }, + { + "detection_ms": 196.6999999997206, + "age_gender_ms": 82.3000000002794, + "total_ms": 279, + "faces": 1, + "raw": "55,121677" + }, + { + "detection_ms": 209, + "age_gender_ms": 81, + "total_ms": 290, + "faces": 1, + "raw": "94,121913" + }, + { + "detection_ms": 197.29999999981374, + "age_gender_ms": 111.10000000009313, + "total_ms": 308.39999999990687, + "faces": 1, + "raw": "55,122057" + } + ] + }, + { + "scene": "Group", + "actual": "640×480", + "backend": "webgl", + "interval_ms": 200, + "input_size": 320, + "trace": [ + { + "detection_ms": 250.40000000037253, + "age_gender_ms": 296.39999999990687, + "total_ms": 546.8000000002794, + "faces": 3, + "raw": "46,123257" + }, + { + "detection_ms": 192.59999999962747, + "age_gender_ms": 341, + "total_ms": 533.5999999996275, + "faces": 3, + "raw": "58,123585" + }, + { + "detection_ms": 195.59999999962747, + "age_gender_ms": 291.8000000002794, + "total_ms": 487.39999999990687, + "faces": 3, + "raw": "56,123989" + }, + { + "detection_ms": 199.70000000018626, + "age_gender_ms": 240.6999999997206, + "total_ms": 440.39999999990687, + "faces": 3, + "raw": "72,124425" + }, + { + "detection_ms": 186.10000000009313, + "age_gender_ms": 249.20000000018626, + "total_ms": 435.3000000002794, + "faces": 3, + "raw": "63,124793" + }, + { + "detection_ms": 196.3000000002794, + "age_gender_ms": 237.6999999997206, + "total_ms": 434, + "faces": 3, + "raw": "64,125173" + }, + { + "detection_ms": 183.10000000009313, + "age_gender_ms": 320.79999999981374, + "total_ms": 503.89999999990687, + "faces": 3, + "raw": "58,123012" + }, + { + "detection_ms": 196.6999999997206, + "age_gender_ms": 311.39999999990687, + "total_ms": 508.09999999962747, + "faces": 3, + "raw": "70,123392" + }, + { + "detection_ms": 191.79999999981374, + "age_gender_ms": 236.20000000018626, + "total_ms": 428, + "faces": 3, + "raw": "62,123784" + }, + { + "detection_ms": 188.70000000018626, + "age_gender_ms": 261.20000000018626, + "total_ms": 449.90000000037253, + "faces": 3, + "raw": "68,124068" + } + ] + } +] \ No newline at end of file diff --git a/benchmarks/native-initial.csv b/benchmarks/native-initial.csv new file mode 100644 index 0000000..8656a4f --- /dev/null +++ b/benchmarks/native-initial.csv @@ -0,0 +1,50 @@ +runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","14.7","5.3","67.1","null","67.1","638.8","200","null","130.8","null","17","0","0","3" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","68.5","null","68.5","638.8","200","101.4","149.3","null","32","0","0","4" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.1","83.9","null","84.0","638.8","200","105.9","167.8","null","47","0","0","6" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","68.5","null","68.6","638.8","200","107.2","119.6","null","62","0","0","7" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","63.9","null","63.9","638.8","200","100.6","138.0","null","77","0","0","8" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","70.1","null","70.2","638.8","200","98.6","156.3","null","92","0","0","9" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","64.9","null","64.9","638.8","200","99.8","174.8","null","107","0","0","11" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.0","93.3","null","93.3","638.8","200","106.1","126.8","null","122","0","0","12" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.5","null","70.5","638.8","200","101.4","145.2","null","137","0","0","13" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","68.2","null","68.2","638.8","200","99.6","163.5","null","152","0","0","14" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.4","null","70.4","638.8","200","104.2","114.9","null","167","0","0","15" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","68.4","null","68.4","638.8","200","100.9","133.4","null","182","0","0","17" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","71.0","null","71.0","638.8","200","98.9","151.8","null","197","0","0","18" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.0","null","70.0","638.8","200","99.3","170.1","null","212","0","0","19" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","69.7","null","69.7","638.8","200","105.5","121.1","null","227","0","0","20" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","67.6","null","67.6","638.8","200","99.6","139.4","null","242","0","0","21" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.0","null","70.0","638.8","200","99.4","157.7","null","257","0","0","23" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","66.9","null","66.9","638.8","200","99.4","176.0","null","272","0","0","24" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","6.4","66.1","null","66.2","0.0","200","null","106.5","null","6","0","3","165" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","76.9","null","77.0","0.0","200","105.2","113.3","null","11","0","3","166" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","93.1","27.2","120.3","0.0","200","88.7","113.6","null","17","0","3","168" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","91.2","null","91.4","0.0","200","96.0","94.1","null","23","0","3","169" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","64.5","19.0","83.5","0.0","200","90.6","102.1","null","28","0","3","170" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","72.0","null","72.1","0.0","200","89.3","110.2","null","33","0","3","171" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","81.5","null","81.7","0.0","200","91.3","94.4","null","39","0","3","172" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","76.1","null","76.2","0.0","200","91.0","101.0","null","43","0","3","173" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.7","76.7","26.4","103.1","0.0","200","89.7","107.6","null","49","0","3","174" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","68.2","null","68.3","0.0","200","85.8","91.5","null","54","0","3","175" +"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","17.5","5.3","81.7","null","81.7","431.1","200","null","146.8","null","15","0","0","193" +"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.7","4.2","77.9","null","77.9","431.1","200","138.0","159.1","null","30","0","0","194" +"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.6","3.9","140.9","null","140.9","431.1","200","146.0","170.7","null","42","0","0","195" +"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.7","4.3","89.0","null","89.0","431.1","200","157.1","117.5","null","57","0","0","196" +"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.6","4.2","81.2","null","81.3","431.1","200","137.3","135.8","null","72","0","0","197" +"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","17.6","3.5","349.0","null","349.0","742.5","200","null","141.2","null","19","0","0","202" +"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.8","347.0","null","347.0","742.5","200","149.4","155.9","null","35","0","0","203" +"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.5","351.0","null","351.0","742.5","200","140.5","171.6","null","52","0","0","204" +"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.5","366.7","null","366.8","742.5","200","139.4","188.4","null","69","0","0","205" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","17.6","5.4","65.6","null","65.7","545.2","200","null","121.1","null","15","0","0","262" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.7","4.2","65.0","null","65.0","545.2","200","102.2","136.6","null","30","0","0","264" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.0","97.9","null","97.9","545.2","200","106.2","154.8","null","45","0","0","265" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.3","64.1","null","64.2","545.2","200","109.1","113.6","null","60","0","0","266" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.1","66.0","null","66.0","545.2","200","100.3","131.8","null","75","0","0","267" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.7","4.1","79.2","null","79.2","545.2","200","100.9","150.1","null","90","0","0","269" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","17.6","5.1","81.2","null","81.3","0.0","200","null","103.7","null","15","0","0","272" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.2","65.9","null","65.9","0.0","200","94.6","119.0","null","30","0","0","273" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.1","65.8","null","65.8","0.0","200","90.7","134.6","null","45","0","0","274" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.1","72.6","null","72.6","0.0","200","95.2","93.8","null","60","0","0","276" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.5","4.2","66.5","null","66.6","0.0","200","90.9","109.2","null","75","0","0","277" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.2","67.5","null","67.5","0.0","200","90.9","124.8","null","90","0","0","278" diff --git a/benchmarks/native-initial.json b/benchmarks/native-initial.json new file mode 100644 index 0000000..7c5dafc --- /dev/null +++ b/benchmarks/native-initial.json @@ -0,0 +1,1178 @@ +[ + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 14.7, + "inference_fps": 5.3, + "detection_ms": 67.1, + "age_gender_ms": null, + "total_ms": 67.1, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 130.8, + "cpu_temperature_c": null, + "frame_drops": 17, + "errors": 0, + "faces": 0, + "uptime_s": 3 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 68.5, + "age_gender_ms": null, + "total_ms": 68.5, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 101.4, + "pss_mib": 149.3, + "cpu_temperature_c": null, + "frame_drops": 32, + "errors": 0, + "faces": 0, + "uptime_s": 4 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.1, + "detection_ms": 83.9, + "age_gender_ms": null, + "total_ms": 84, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 105.9, + "pss_mib": 167.8, + "cpu_temperature_c": null, + "frame_drops": 47, + "errors": 0, + "faces": 0, + "uptime_s": 6 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 68.5, + "age_gender_ms": null, + "total_ms": 68.6, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 107.2, + "pss_mib": 119.6, + "cpu_temperature_c": null, + "frame_drops": 62, + "errors": 0, + "faces": 0, + "uptime_s": 7 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 63.9, + "age_gender_ms": null, + "total_ms": 63.9, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 100.6, + "pss_mib": 138, + "cpu_temperature_c": null, + "frame_drops": 77, + "errors": 0, + "faces": 0, + "uptime_s": 8 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 70.1, + "age_gender_ms": null, + "total_ms": 70.2, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 98.6, + "pss_mib": 156.3, + "cpu_temperature_c": null, + "frame_drops": 92, + "errors": 0, + "faces": 0, + "uptime_s": 9 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.2, + "detection_ms": 64.9, + "age_gender_ms": null, + "total_ms": 64.9, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.8, + "pss_mib": 174.8, + "cpu_temperature_c": null, + "frame_drops": 107, + "errors": 0, + "faces": 0, + "uptime_s": 11 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4, + "detection_ms": 93.3, + "age_gender_ms": null, + "total_ms": 93.3, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 106.1, + "pss_mib": 126.8, + "cpu_temperature_c": null, + "frame_drops": 122, + "errors": 0, + "faces": 0, + "uptime_s": 12 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 70.5, + "age_gender_ms": null, + "total_ms": 70.5, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 101.4, + "pss_mib": 145.2, + "cpu_temperature_c": null, + "frame_drops": 137, + "errors": 0, + "faces": 0, + "uptime_s": 13 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.2, + "detection_ms": 68.2, + "age_gender_ms": null, + "total_ms": 68.2, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.6, + "pss_mib": 163.5, + "cpu_temperature_c": null, + "frame_drops": 152, + "errors": 0, + "faces": 0, + "uptime_s": 14 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 70.4, + "age_gender_ms": null, + "total_ms": 70.4, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 104.2, + "pss_mib": 114.9, + "cpu_temperature_c": null, + "frame_drops": 167, + "errors": 0, + "faces": 0, + "uptime_s": 15 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 68.4, + "age_gender_ms": null, + "total_ms": 68.4, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 100.9, + "pss_mib": 133.4, + "cpu_temperature_c": null, + "frame_drops": 182, + "errors": 0, + "faces": 0, + "uptime_s": 17 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 71, + "age_gender_ms": null, + "total_ms": 71, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 98.9, + "pss_mib": 151.8, + "cpu_temperature_c": null, + "frame_drops": 197, + "errors": 0, + "faces": 0, + "uptime_s": 18 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 70, + "age_gender_ms": null, + "total_ms": 70, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.3, + "pss_mib": 170.1, + "cpu_temperature_c": null, + "frame_drops": 212, + "errors": 0, + "faces": 0, + "uptime_s": 19 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.2, + "detection_ms": 69.7, + "age_gender_ms": null, + "total_ms": 69.7, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 105.5, + "pss_mib": 121.1, + "cpu_temperature_c": null, + "frame_drops": 227, + "errors": 0, + "faces": 0, + "uptime_s": 20 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 67.6, + "age_gender_ms": null, + "total_ms": 67.6, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.6, + "pss_mib": 139.4, + "cpu_temperature_c": null, + "frame_drops": 242, + "errors": 0, + "faces": 0, + "uptime_s": 21 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 70, + "age_gender_ms": null, + "total_ms": 70, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.4, + "pss_mib": 157.7, + "cpu_temperature_c": null, + "frame_drops": 257, + "errors": 0, + "faces": 0, + "uptime_s": 23 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 66.9, + "age_gender_ms": null, + "total_ms": 66.9, + "session_load_ms": 638.8, + "interval_ms": 200, + "cpu_pct": 99.4, + "pss_mib": 176, + "cpu_temperature_c": null, + "frame_drops": 272, + "errors": 0, + "faces": 0, + "uptime_s": 24 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 6.4, + "detection_ms": 66.1, + "age_gender_ms": null, + "total_ms": 66.2, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 106.5, + "cpu_temperature_c": null, + "frame_drops": 6, + "errors": 0, + "faces": 3, + "uptime_s": 165 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.8, + "detection_ms": 76.9, + "age_gender_ms": null, + "total_ms": 77, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 105.2, + "pss_mib": 113.3, + "cpu_temperature_c": null, + "frame_drops": 11, + "errors": 0, + "faces": 3, + "uptime_s": 166 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.8, + "detection_ms": 93.1, + "age_gender_ms": 27.2, + "total_ms": 120.3, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 88.7, + "pss_mib": 113.6, + "cpu_temperature_c": null, + "frame_drops": 17, + "errors": 0, + "faces": 3, + "uptime_s": 168 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5.1, + "detection_ms": 91.2, + "age_gender_ms": null, + "total_ms": 91.4, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 96, + "pss_mib": 94.1, + "cpu_temperature_c": null, + "frame_drops": 23, + "errors": 0, + "faces": 3, + "uptime_s": 169 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 64.5, + "age_gender_ms": 19, + "total_ms": 83.5, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 90.6, + "pss_mib": 102.1, + "cpu_temperature_c": null, + "frame_drops": 28, + "errors": 0, + "faces": 3, + "uptime_s": 170 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 72, + "age_gender_ms": null, + "total_ms": 72.1, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 89.3, + "pss_mib": 110.2, + "cpu_temperature_c": null, + "frame_drops": 33, + "errors": 0, + "faces": 3, + "uptime_s": 171 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 81.5, + "age_gender_ms": null, + "total_ms": 81.7, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 91.3, + "pss_mib": 94.4, + "cpu_temperature_c": null, + "frame_drops": 39, + "errors": 0, + "faces": 3, + "uptime_s": 172 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 76.1, + "age_gender_ms": null, + "total_ms": 76.2, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 91, + "pss_mib": 101, + "cpu_temperature_c": null, + "frame_drops": 43, + "errors": 0, + "faces": 3, + "uptime_s": 173 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.7, + "detection_ms": 76.7, + "age_gender_ms": 26.4, + "total_ms": 103.1, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 89.7, + "pss_mib": 107.6, + "cpu_temperature_c": null, + "frame_drops": 49, + "errors": 0, + "faces": 3, + "uptime_s": 174 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5.1, + "detection_ms": 68.2, + "age_gender_ms": null, + "total_ms": 68.3, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 85.8, + "pss_mib": 91.5, + "cpu_temperature_c": null, + "frame_drops": 54, + "errors": 0, + "faces": 3, + "uptime_s": 175 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "CPU", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=91}", + "demographics_nodes": "CPU (awaiting first run)", + "resolution": "640×480", + "camera_fps": 17.5, + "inference_fps": 5.3, + "detection_ms": 81.7, + "age_gender_ms": null, + "total_ms": 81.7, + "session_load_ms": 431.1, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 146.8, + "cpu_temperature_c": null, + "frame_drops": 15, + "errors": 0, + "faces": 0, + "uptime_s": 193 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "CPU", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=91}", + "demographics_nodes": "CPU (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.2, + "detection_ms": 77.9, + "age_gender_ms": null, + "total_ms": 77.9, + "session_load_ms": 431.1, + "interval_ms": 200, + "cpu_pct": 138, + "pss_mib": 159.1, + "cpu_temperature_c": null, + "frame_drops": 30, + "errors": 0, + "faces": 0, + "uptime_s": 194 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "CPU", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=91}", + "demographics_nodes": "CPU (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 3.9, + "detection_ms": 140.9, + "age_gender_ms": null, + "total_ms": 140.9, + "session_load_ms": 431.1, + "interval_ms": 200, + "cpu_pct": 146, + "pss_mib": 170.7, + "cpu_temperature_c": null, + "frame_drops": 42, + "errors": 0, + "faces": 0, + "uptime_s": 195 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "CPU", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=91}", + "demographics_nodes": "CPU (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.7, + "inference_fps": 4.3, + "detection_ms": 89, + "age_gender_ms": null, + "total_ms": 89, + "session_load_ms": 431.1, + "interval_ms": 200, + "cpu_pct": 157.1, + "pss_mib": 117.5, + "cpu_temperature_c": null, + "frame_drops": 57, + "errors": 0, + "faces": 0, + "uptime_s": 196 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "CPU", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=91}", + "demographics_nodes": "CPU (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 81.2, + "age_gender_ms": null, + "total_ms": 81.3, + "session_load_ms": 431.1, + "interval_ms": 200, + "cpu_pct": 137.3, + "pss_mib": 135.8, + "cpu_temperature_c": null, + "frame_drops": 72, + "errors": 0, + "faces": 0, + "uptime_s": 197 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "NNAPI", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{Nnapi=1}", + "demographics_nodes": "NNAPI (awaiting first run)", + "resolution": "640×480", + "camera_fps": 17.6, + "inference_fps": 3.5, + "detection_ms": 349, + "age_gender_ms": null, + "total_ms": 349, + "session_load_ms": 742.5, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 141.2, + "cpu_temperature_c": null, + "frame_drops": 19, + "errors": 0, + "faces": 0, + "uptime_s": 202 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "NNAPI", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{Nnapi=1}", + "demographics_nodes": "NNAPI (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 2.8, + "detection_ms": 347, + "age_gender_ms": null, + "total_ms": 347, + "session_load_ms": 742.5, + "interval_ms": 200, + "cpu_pct": 149.4, + "pss_mib": 155.9, + "cpu_temperature_c": null, + "frame_drops": 35, + "errors": 0, + "faces": 0, + "uptime_s": 203 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "NNAPI", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{Nnapi=1}", + "demographics_nodes": "NNAPI (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 2.5, + "detection_ms": 351, + "age_gender_ms": null, + "total_ms": 351, + "session_load_ms": 742.5, + "interval_ms": 200, + "cpu_pct": 140.5, + "pss_mib": 171.6, + "cpu_temperature_c": null, + "frame_drops": 52, + "errors": 0, + "faces": 0, + "uptime_s": 204 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "NNAPI", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{Nnapi=1}", + "demographics_nodes": "NNAPI (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.6, + "inference_fps": 2.5, + "detection_ms": 366.7, + "age_gender_ms": null, + "total_ms": 366.8, + "session_load_ms": 742.5, + "interval_ms": 200, + "cpu_pct": 139.4, + "pss_mib": 188.4, + "cpu_temperature_c": null, + "frame_drops": 69, + "errors": 0, + "faces": 0, + "uptime_s": 205 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 17.6, + "inference_fps": 5.4, + "detection_ms": 65.6, + "age_gender_ms": null, + "total_ms": 65.7, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 121.1, + "cpu_temperature_c": null, + "frame_drops": 15, + "errors": 0, + "faces": 0, + "uptime_s": 262 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 16.7, + "inference_fps": 4.2, + "detection_ms": 65, + "age_gender_ms": null, + "total_ms": 65, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": 102.2, + "pss_mib": 136.6, + "cpu_temperature_c": null, + "frame_drops": 30, + "errors": 0, + "faces": 0, + "uptime_s": 264 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 16.6, + "inference_fps": 4, + "detection_ms": 97.9, + "age_gender_ms": null, + "total_ms": 97.9, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": 106.2, + "pss_mib": 154.8, + "cpu_temperature_c": null, + "frame_drops": 45, + "errors": 0, + "faces": 0, + "uptime_s": 265 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 16.6, + "inference_fps": 4.3, + "detection_ms": 64.1, + "age_gender_ms": null, + "total_ms": 64.2, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": 109.1, + "pss_mib": 113.6, + "cpu_temperature_c": null, + "frame_drops": 60, + "errors": 0, + "faces": 0, + "uptime_s": 266 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 66, + "age_gender_ms": null, + "total_ms": 66, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": 100.3, + "pss_mib": 131.8, + "cpu_temperature_c": null, + "frame_drops": 75, + "errors": 0, + "faces": 0, + "uptime_s": 267 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1600×1200", + "camera_fps": 16.7, + "inference_fps": 4.1, + "detection_ms": 79.2, + "age_gender_ms": null, + "total_ms": 79.2, + "session_load_ms": 545.2, + "interval_ms": 200, + "cpu_pct": 100.9, + "pss_mib": 150.1, + "cpu_temperature_c": null, + "frame_drops": 90, + "errors": 0, + "faces": 0, + "uptime_s": 269 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 17.6, + "inference_fps": 5.1, + "detection_ms": 81.2, + "age_gender_ms": null, + "total_ms": 81.3, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 103.7, + "cpu_temperature_c": null, + "frame_drops": 15, + "errors": 0, + "faces": 0, + "uptime_s": 272 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 65.9, + "age_gender_ms": null, + "total_ms": 65.9, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 94.6, + "pss_mib": 119, + "cpu_temperature_c": null, + "frame_drops": 30, + "errors": 0, + "faces": 0, + "uptime_s": 273 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 65.8, + "age_gender_ms": null, + "total_ms": 65.8, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 90.7, + "pss_mib": 134.6, + "cpu_temperature_c": null, + "frame_drops": 45, + "errors": 0, + "faces": 0, + "uptime_s": 274 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 16.6, + "inference_fps": 4.1, + "detection_ms": 72.6, + "age_gender_ms": null, + "total_ms": 72.6, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 95.2, + "pss_mib": 93.8, + "cpu_temperature_c": null, + "frame_drops": 60, + "errors": 0, + "faces": 0, + "uptime_s": 276 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 16.5, + "inference_fps": 4.2, + "detection_ms": 66.5, + "age_gender_ms": null, + "total_ms": 66.6, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 90.9, + "pss_mib": 109.2, + "cpu_temperature_c": null, + "frame_drops": 75, + "errors": 0, + "faces": 0, + "uptime_s": 277 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "1280×720", + "camera_fps": 16.6, + "inference_fps": 4.2, + "detection_ms": 67.5, + "age_gender_ms": null, + "total_ms": 67.5, + "session_load_ms": 0, + "interval_ms": 200, + "cpu_pct": 90.9, + "pss_mib": 124.8, + "cpu_temperature_c": null, + "frame_drops": 90, + "errors": 0, + "faces": 0, + "uptime_s": 278 + } +] \ No newline at end of file diff --git a/benchmarks/native-solo.csv b/benchmarks/native-solo.csv new file mode 100644 index 0000000..08c827c --- /dev/null +++ b/benchmarks/native-solo.csv @@ -0,0 +1,35 @@ +runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","6.0","88.0","null","88.1","861.4","200","null","127.4","null","8","0","1","23" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.3","null","88.5","861.4","200","84.7","134.2","null","13","0","1","24" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","67.5","null","67.6","861.4","200","80.6","142.1","null","18","0","1","25" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.9","null","68.0","861.4","200","92.7","121.8","null","23","0","1","26" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","85.9","null","86.0","861.4","200","85.4","128.2","null","28","0","1","27" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","87.3","null","87.4","861.4","200","83.9","134.8","null","34","0","1","28" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.0","null","88.2","861.4","200","89.8","142.7","null","40","0","1","30" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","91.1","null","91.2","861.4","200","95.3","105.3","null","45","0","1","31" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","87.7","null","87.8","861.4","200","90.3","113.1","null","51","0","1","32" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","106.8","null","106.9","861.4","200","84.7","121.4","null","57","0","1","33" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.1","null","88.2","861.4","200","87.5","105.8","null","63","0","1","34" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","79.0","null","79.1","861.4","200","87.9","113.6","null","69","0","1","36" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","65.0","null","65.1","861.4","200","88.2","120.2","null","73","0","1","37" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.8","null","67.9","861.4","200","85.4","126.7","null","78","0","1","38" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","74.3","null","74.4","861.4","200","88.2","108.2","null","83","0","1","39" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","70.1","null","70.2","861.4","200","86.2","114.8","null","88","0","1","40" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","74.3","null","74.4","861.4","200","80.8","121.4","null","93","0","1","41" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","97.5","null","97.7","861.4","200","87.9","104.5","null","99","0","1","42" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","90.1","null","90.1","861.4","200","84.3","112.4","null","105","0","1","43" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","66.5","null","66.6","861.4","200","82.2","120.2","null","110","0","1","44" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.3","null","67.4","861.4","200","88.3","120.0","null","115","0","1","45" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.7","90.3","null","90.5","861.4","200","88.0","101.6","null","121","0","1","46" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","91.0","null","91.2","861.4","200","88.8","108.1","null","126","0","1","47" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","102.1","null","102.3","861.4","200","90.0","114.7","null","131","0","1","48" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","78.2","null","78.4","861.4","200","92.9","99.1","null","136","0","1","49" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","100.1","null","100.3","861.4","200","87.2","105.6","null","142","0","1","50" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","97.9","null","98.1","861.4","200","85.6","112.2","null","147","0","1","51" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","90.7","null","90.9","861.4","200","87.3","120.0","null","153","0","1","53" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","95.7","null","95.9","861.4","200","91.6","102.9","null","159","0","1","54" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","67.9","null","68.0","861.4","200","79.3","111.5","null","164","0","1","55" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","68.6","null","68.7","861.4","200","80.2","118.0","null","169","0","1","56" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","67.0","null","67.1","861.4","200","82.7","101.1","null","174","0","1","57" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","99.0","null","99.1","861.4","200","88.3","107.7","null","180","0","1","58" +"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","66.3","null","66.4","861.4","200","83.1","115.5","null","185","0","1","59" diff --git a/benchmarks/native-solo.json b/benchmarks/native-solo.json new file mode 100644 index 0000000..e43b99c --- /dev/null +++ b/benchmarks/native-solo.json @@ -0,0 +1,818 @@ +[ + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 6, + "detection_ms": 88, + "age_gender_ms": null, + "total_ms": 88.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 127.4, + "cpu_temperature_c": null, + "frame_drops": 8, + "errors": 0, + "faces": 1, + "uptime_s": 23 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 88.3, + "age_gender_ms": null, + "total_ms": 88.5, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 84.7, + "pss_mib": 134.2, + "cpu_temperature_c": null, + "frame_drops": 13, + "errors": 0, + "faces": 1, + "uptime_s": 24 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5.1, + "detection_ms": 67.5, + "age_gender_ms": null, + "total_ms": 67.6, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 80.6, + "pss_mib": 142.1, + "cpu_temperature_c": null, + "frame_drops": 18, + "errors": 0, + "faces": 1, + "uptime_s": 25 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 67.9, + "age_gender_ms": null, + "total_ms": 68, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 92.7, + "pss_mib": 121.8, + "cpu_temperature_c": null, + "frame_drops": 23, + "errors": 0, + "faces": 1, + "uptime_s": 26 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 85.9, + "age_gender_ms": null, + "total_ms": 86, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 85.4, + "pss_mib": 128.2, + "cpu_temperature_c": null, + "frame_drops": 28, + "errors": 0, + "faces": 1, + "uptime_s": 27 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 87.3, + "age_gender_ms": null, + "total_ms": 87.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 83.9, + "pss_mib": 134.8, + "cpu_temperature_c": null, + "frame_drops": 34, + "errors": 0, + "faces": 1, + "uptime_s": 28 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 88, + "age_gender_ms": null, + "total_ms": 88.2, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 89.8, + "pss_mib": 142.7, + "cpu_temperature_c": null, + "frame_drops": 40, + "errors": 0, + "faces": 1, + "uptime_s": 30 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 91.1, + "age_gender_ms": null, + "total_ms": 91.2, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 95.3, + "pss_mib": 105.3, + "cpu_temperature_c": null, + "frame_drops": 45, + "errors": 0, + "faces": 1, + "uptime_s": 31 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 87.7, + "age_gender_ms": null, + "total_ms": 87.8, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 90.3, + "pss_mib": 113.1, + "cpu_temperature_c": null, + "frame_drops": 51, + "errors": 0, + "faces": 1, + "uptime_s": 32 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 106.8, + "age_gender_ms": null, + "total_ms": 106.9, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 84.7, + "pss_mib": 121.4, + "cpu_temperature_c": null, + "frame_drops": 57, + "errors": 0, + "faces": 1, + "uptime_s": 33 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 88.1, + "age_gender_ms": null, + "total_ms": 88.2, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 87.5, + "pss_mib": 105.8, + "cpu_temperature_c": null, + "frame_drops": 63, + "errors": 0, + "faces": 1, + "uptime_s": 34 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 79, + "age_gender_ms": null, + "total_ms": 79.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 87.9, + "pss_mib": 113.6, + "cpu_temperature_c": null, + "frame_drops": 69, + "errors": 0, + "faces": 1, + "uptime_s": 36 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 65, + "age_gender_ms": null, + "total_ms": 65.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88.2, + "pss_mib": 120.2, + "cpu_temperature_c": null, + "frame_drops": 73, + "errors": 0, + "faces": 1, + "uptime_s": 37 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 67.8, + "age_gender_ms": null, + "total_ms": 67.9, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 85.4, + "pss_mib": 126.7, + "cpu_temperature_c": null, + "frame_drops": 78, + "errors": 0, + "faces": 1, + "uptime_s": 38 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 74.3, + "age_gender_ms": null, + "total_ms": 74.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88.2, + "pss_mib": 108.2, + "cpu_temperature_c": null, + "frame_drops": 83, + "errors": 0, + "faces": 1, + "uptime_s": 39 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 70.1, + "age_gender_ms": null, + "total_ms": 70.2, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 86.2, + "pss_mib": 114.8, + "cpu_temperature_c": null, + "frame_drops": 88, + "errors": 0, + "faces": 1, + "uptime_s": 40 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 74.3, + "age_gender_ms": null, + "total_ms": 74.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 80.8, + "pss_mib": 121.4, + "cpu_temperature_c": null, + "frame_drops": 93, + "errors": 0, + "faces": 1, + "uptime_s": 41 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.8, + "detection_ms": 97.5, + "age_gender_ms": null, + "total_ms": 97.7, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 87.9, + "pss_mib": 104.5, + "cpu_temperature_c": null, + "frame_drops": 99, + "errors": 0, + "faces": 1, + "uptime_s": 42 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 90.1, + "age_gender_ms": null, + "total_ms": 90.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 84.3, + "pss_mib": 112.4, + "cpu_temperature_c": null, + "frame_drops": 105, + "errors": 0, + "faces": 1, + "uptime_s": 43 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 66.5, + "age_gender_ms": null, + "total_ms": 66.6, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 82.2, + "pss_mib": 120.2, + "cpu_temperature_c": null, + "frame_drops": 110, + "errors": 0, + "faces": 1, + "uptime_s": 44 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 67.3, + "age_gender_ms": null, + "total_ms": 67.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88.3, + "pss_mib": 120, + "cpu_temperature_c": null, + "frame_drops": 115, + "errors": 0, + "faces": 1, + "uptime_s": 45 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.7, + "detection_ms": 90.3, + "age_gender_ms": null, + "total_ms": 90.5, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88, + "pss_mib": 101.6, + "cpu_temperature_c": null, + "frame_drops": 121, + "errors": 0, + "faces": 1, + "uptime_s": 46 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 91, + "age_gender_ms": null, + "total_ms": 91.2, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88.8, + "pss_mib": 108.1, + "cpu_temperature_c": null, + "frame_drops": 126, + "errors": 0, + "faces": 1, + "uptime_s": 47 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 102.1, + "age_gender_ms": null, + "total_ms": 102.3, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 90, + "pss_mib": 114.7, + "cpu_temperature_c": null, + "frame_drops": 131, + "errors": 0, + "faces": 1, + "uptime_s": 48 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 78.2, + "age_gender_ms": null, + "total_ms": 78.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 92.9, + "pss_mib": 99.1, + "cpu_temperature_c": null, + "frame_drops": 136, + "errors": 0, + "faces": 1, + "uptime_s": 49 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.8, + "detection_ms": 100.1, + "age_gender_ms": null, + "total_ms": 100.3, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 87.2, + "pss_mib": 105.6, + "cpu_temperature_c": null, + "frame_drops": 142, + "errors": 0, + "faces": 1, + "uptime_s": 50 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 97.9, + "age_gender_ms": null, + "total_ms": 98.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 85.6, + "pss_mib": 112.2, + "cpu_temperature_c": null, + "frame_drops": 147, + "errors": 0, + "faces": 1, + "uptime_s": 51 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 90.7, + "age_gender_ms": null, + "total_ms": 90.9, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 87.3, + "pss_mib": 120, + "cpu_temperature_c": null, + "frame_drops": 153, + "errors": 0, + "faces": 1, + "uptime_s": 53 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.9, + "detection_ms": 95.7, + "age_gender_ms": null, + "total_ms": 95.9, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 91.6, + "pss_mib": 102.9, + "cpu_temperature_c": null, + "frame_drops": 159, + "errors": 0, + "faces": 1, + "uptime_s": 54 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5.1, + "detection_ms": 67.9, + "age_gender_ms": null, + "total_ms": 68, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 79.3, + "pss_mib": 111.5, + "cpu_temperature_c": null, + "frame_drops": 164, + "errors": 0, + "faces": 1, + "uptime_s": 55 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 68.6, + "age_gender_ms": null, + "total_ms": 68.7, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 80.2, + "pss_mib": 118, + "cpu_temperature_c": null, + "frame_drops": 169, + "errors": 0, + "faces": 1, + "uptime_s": 56 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5, + "detection_ms": 67, + "age_gender_ms": null, + "total_ms": 67.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 82.7, + "pss_mib": 101.1, + "cpu_temperature_c": null, + "frame_drops": 174, + "errors": 0, + "faces": 1, + "uptime_s": 57 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 4.8, + "detection_ms": 99, + "age_gender_ms": null, + "total_ms": 99.1, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 88.3, + "pss_mib": 107.7, + "cpu_temperature_c": null, + "frame_drops": 180, + "errors": 0, + "faces": 1, + "uptime_s": 58 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age\/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "{CPU=15, Xnnpack=12}", + "resolution": "Test 640×480", + "camera_fps": null, + "inference_fps": 5.1, + "detection_ms": 66.3, + "age_gender_ms": null, + "total_ms": 66.4, + "session_load_ms": 861.4, + "interval_ms": 200, + "cpu_pct": 83.1, + "pss_mib": 115.5, + "cpu_temperature_c": null, + "frame_drops": 185, + "errors": 0, + "faces": 1, + "uptime_s": 59 + } +] \ No newline at end of file diff --git a/benchmarks/native-split.csv b/benchmarks/native-split.csv new file mode 100644 index 0000000..dd24ba5 --- /dev/null +++ b/benchmarks/native-split.csv @@ -0,0 +1,12 @@ +runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,14.6,4.2,276.7,,276.8,973.6,200,,115.4,,15,0,0,15 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,9.9,3.9,130.4,,130.4,973.6,200,127.4,133.5,,22,0,0,16 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,12.5,2.8,243.2,,243.3,973.6,200,107.4,146.7,,30,0,0,17 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,11.9,3.9,206.8,,206.8,973.6,200,126.5,163.8,,39,0,0,18 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,13.7,4.1,183,,183,973.6,200,145.6,111.3,,52,0,0,20 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,15.6,4,143.1,,143.2,973.6,200,116.7,130.8,,68,0,0,21 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,16.5,4.3,137.3,,137.4,973.6,200,120.9,149.1,,82,0,0,22 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,16.8,3.8,162.1,,162.2,973.6,200,127.6,88.5,,92,0,0,23 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,11.8,4.3,182.7,,182.7,973.6,200,126.6,108.1,,103,0,0,24 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,14.6,3.6,252.6,,252.6,973.6,200,120.9,126.3,,115,0,0,25 +ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,13.5,2.9,423.2,,423.2,973.6,200,86.7,137.4,,118,0,0,27 diff --git a/benchmarks/native-split.json b/benchmarks/native-split.json new file mode 100644 index 0000000..f441cd2 --- /dev/null +++ b/benchmarks/native-split.json @@ -0,0 +1,266 @@ +[ + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 14.6, + "inference_fps": 4.2, + "detection_ms": 276.7, + "age_gender_ms": null, + "total_ms": 276.8, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": null, + "pss_mib": 115.4, + "cpu_temperature_c": null, + "frame_drops": 15, + "errors": 0, + "faces": 0, + "uptime_s": 15 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 9.9, + "inference_fps": 3.9, + "detection_ms": 130.4, + "age_gender_ms": null, + "total_ms": 130.4, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 127.4, + "pss_mib": 133.5, + "cpu_temperature_c": null, + "frame_drops": 22, + "errors": 0, + "faces": 0, + "uptime_s": 16 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 12.5, + "inference_fps": 2.8, + "detection_ms": 243.2, + "age_gender_ms": null, + "total_ms": 243.3, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 107.4, + "pss_mib": 146.7, + "cpu_temperature_c": null, + "frame_drops": 30, + "errors": 0, + "faces": 0, + "uptime_s": 17 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 11.9, + "inference_fps": 3.9, + "detection_ms": 206.8, + "age_gender_ms": null, + "total_ms": 206.8, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 126.5, + "pss_mib": 163.8, + "cpu_temperature_c": null, + "frame_drops": 39, + "errors": 0, + "faces": 0, + "uptime_s": 18 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 13.7, + "inference_fps": 4.1, + "detection_ms": 183, + "age_gender_ms": null, + "total_ms": 183, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 145.6, + "pss_mib": 111.3, + "cpu_temperature_c": null, + "frame_drops": 52, + "errors": 0, + "faces": 0, + "uptime_s": 20 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 15.6, + "inference_fps": 4, + "detection_ms": 143.1, + "age_gender_ms": null, + "total_ms": 143.2, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 116.7, + "pss_mib": 130.8, + "cpu_temperature_c": null, + "frame_drops": 68, + "errors": 0, + "faces": 0, + "uptime_s": 21 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.5, + "inference_fps": 4.3, + "detection_ms": 137.3, + "age_gender_ms": null, + "total_ms": 137.4, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 120.9, + "pss_mib": 149.1, + "cpu_temperature_c": null, + "frame_drops": 82, + "errors": 0, + "faces": 0, + "uptime_s": 22 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 16.8, + "inference_fps": 3.8, + "detection_ms": 162.1, + "age_gender_ms": null, + "total_ms": 162.2, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 127.6, + "pss_mib": 88.5, + "cpu_temperature_c": null, + "frame_drops": 92, + "errors": 0, + "faces": 0, + "uptime_s": 23 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 11.8, + "inference_fps": 4.3, + "detection_ms": 182.7, + "age_gender_ms": null, + "total_ms": 182.7, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 126.6, + "pss_mib": 108.1, + "cpu_temperature_c": null, + "frame_drops": 103, + "errors": 0, + "faces": 0, + "uptime_s": 24 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 14.6, + "inference_fps": 3.6, + "detection_ms": 252.6, + "age_gender_ms": null, + "total_ms": 252.6, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 120.9, + "pss_mib": 126.3, + "cpu_temperature_c": null, + "frame_drops": 115, + "errors": 0, + "faces": 0, + "uptime_s": 25 + }, + { + "runtime": "ONNX Runtime 1.32.0", + "provider": "XNNPACK", + "threads": 2, + "detector": "YuNet 2026may-fixed320", + "demographics": "Intel Age/Gender 2023.0-fp32-onnx1", + "detector_nodes": "{CPU=23, Xnnpack=57}", + "demographics_nodes": "XNNPACK (awaiting first run)", + "resolution": "640×480", + "camera_fps": 13.5, + "inference_fps": 2.9, + "detection_ms": 423.2, + "age_gender_ms": null, + "total_ms": 423.2, + "session_load_ms": 973.6, + "interval_ms": 200, + "cpu_pct": 86.7, + "pss_mib": 137.4, + "cpu_temperature_c": null, + "frame_drops": 118, + "errors": 0, + "faces": 0, + "uptime_s": 27 + } +] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a2cfd1e --- /dev/null +++ b/build.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")" +sdk=${WINDOWS_ANDROID_SDK:-/mnt/c/Users/Andrei/AppData/Local/Android/Sdk} +jdk=${WINDOWS_JDK:-'/mnt/c/Program Files/Eclipse Adoptium/jdk-17.0.17.10-hotspot'} +tools="$sdk/build-tools/35.0.0" +jar=$(wslpath -w "$sdk/platforms/android-35/android.jar") +mkdir -p build +ort_url=https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.aar +if [[ ! -f build/ort.aar ]]; then + curl -fsSL "$ort_url" -o build/ort.aar +fi +python3 tools/check-production-assets.py +rm -rf build/classes build/dex +mkdir -p build/classes build/dex +python3 - <<'PACK' +from pathlib import Path +from zipfile import ZipFile +with ZipFile('build/ort.aar') as aar: + Path('build/ort.jar').write_bytes(aar.read('classes.jar')) +PACK +ort_jar=$(wslpath -w "$PWD/build/ort.jar") +"$jdk/bin/javac.exe" -encoding UTF-8 -source 8 -target 8 -classpath "$jar;$ort_jar" -d build/classes src/*.java +classes=() +for class_file in build/classes/com/it_screen/edgevision/*.class; do + classes+=("$(wslpath -w "$PWD/$class_file")") +done +"$jdk/bin/java.exe" -cp "$(wslpath -w "$tools/lib/d8.jar")" com.android.tools.r8.D8 --min-api 26 --lib "$jar" --output "$(wslpath -w "$PWD/build/dex")" "${classes[@]}" "$ort_jar" +"$tools/aapt2.exe" link -I "$jar" --manifest AndroidManifest.xml -o build/assets.apk +python3 - <<'PY' +import shutil +from pathlib import Path +import zipfile +shutil.copyfile('build/assets.apk', 'build/unsigned.apk') +with zipfile.ZipFile('build/unsigned.apk', 'a') as apk: + apk.write('build/dex/classes.dex', 'classes.dex') + with zipfile.ZipFile('build/ort.aar') as aar: + for source in aar.namelist(): + if source.startswith('jni/arm64-v8a/') and source.endswith('.so'): + apk.writestr(source.replace('jni/', 'lib/', 1), aar.read(source), + compress_type=zipfile.ZIP_DEFLATED) + for asset in sorted(Path('assets').rglob('*')): + if asset.is_file(): + apk.write(asset, asset.as_posix(), compress_type=zipfile.ZIP_DEFLATED) +PY +"$tools/zipalign.exe" -f 4 build/unsigned.apk build/aligned.apk +if [[ ! -f build/poc-debug.p12 ]]; then + "$jdk/bin/keytool.exe" -genkeypair -keystore build/poc-debug.p12 -storepass android -alias edgevision -keyalg RSA -keysize 2048 -validity 3650 -dname CN=EdgeVision +fi +"$jdk/bin/java.exe" -jar "$(wslpath -w "$tools/lib/apksigner.jar")" sign --ks build/poc-debug.p12 --ks-pass pass:android --out build/EVAx10-Video-analitics-0.2.2.apk build/aligned.apk +"$jdk/bin/java.exe" -jar "$(wslpath -w "$tools/lib/apksigner.jar")" verify --verbose build/EVAx10-Video-analitics-0.2.2.apk diff --git a/license-lock.json b/license-lock.json new file mode 100644 index 0000000..bf06799 --- /dev/null +++ b/license-lock.json @@ -0,0 +1,28 @@ +{ + "models": { + "age-v1.json": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c", + "gender-v1.json": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734", + "sface-int8.json": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a", + "yunet-320.json": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c", + "yunet.json": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0" + }, + "runtimeAarSha256": "8e8dbb412ed4939675a157702f0c1e3621b436a645af7f7244536ac20bfad628", + "assetInventory": { + "models/age-v1.json": "53a6ef17e552ee73c7732b78d797a8d9bb8d1dea55ab5f1d9d72b4d013f5ad1f", + "models/age-v1.onnx": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c", + "models/gender-v1.json": "d166b8e6f615bde33840fb2031be0144180f39f7feb4a47e3bd6ae74af85fec2", + "models/gender-v1.onnx": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734", + "models/sface-int8.json": "0cecf333c4076d18ddb75ab441695a1990f31d54ff8b66d68a684b2e0d0b65a3", + "models/sface-int8.onnx": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a", + "models/yunet-320.json": "048c0116fccbf37c0443892c20c2bcbbc78164adcc9631ffa14d60e1dc6f60d1", + "models/yunet-320.onnx": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c", + "models/yunet.json": "ef262db23553cb60ffbf032d86f7eb6579ffac876535ebb6a2de4a0f7816bbc8", + "models/yunet.onnx": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0", + "notices/Cydral-age-gender-models.md": "bc8ef03ce2fcb9349977a9f357a44f1194ef13b67fee1b7562ffa49e12d35bf2", + "notices/LICENSE": "2f07c72751aed99790b8a4869cf2311df85a860b22ded05fa22803587a48922c", + "notices/ThirdPartyNotices.txt": "d8696258afcf9df7827a5e01d6b6d55ee9b461b4e82020f5f48242deb9cc2270", + "notices/cydral-CC0-1.0.txt": "6a1ee543e5282cd9061881edf462e6fdab181f328da71fc2c9a6950a80e94d01", + "notices/sface-LICENSE.txt": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", + "notices/yunet-LICENSE.txt": "c83b8120c50ccbd4c4f96edf53141bdd566ebb8f8e9227e415326aa1b1aba958" + } +} diff --git a/src/Audience.java b/src/Audience.java new file mode 100644 index 0000000..2e1e0d4 --- /dev/null +++ b/src/Audience.java @@ -0,0 +1,109 @@ +package com.it_screen.edgevision; + +import java.util.*; + +final class VisitorTracker { + private final List tracks = new ArrayList<>(); + private int nextId = 1; + + List update(List faces, long now, long timeout) { + tracks.removeIf(track -> now - track.seen > timeout); + List visible = new ArrayList<>(); + Set used = new HashSet<>(); + for (Face face : faces) { + Track best = null; + float score = 0.2f; + for (Track track : tracks) { + if (used.contains(track)) continue; + float overlap = face.overlap(track.face); + if (overlap >= score) { score = overlap; best = track; } + } + if (best == null) { + best = new Track(nextId++); + tracks.add(best); + } + best.face = face; + best.seen = now; + best.observations++; + used.add(best); + visible.add(best); + } + return visible; + } + + void clear() { tracks.clear(); } + + static final class Track { + final int id; + final VisitMemory.Candidate visit = new VisitMemory.Candidate(); + boolean repeat; + boolean checkingLogged; + Face face; + long seen, classified; + int observations, ageCount, ageSum, male, female; + int countedAge = -1; + int countedGender = -1; + float score; + + Track(int id) { this.id = id; } + + boolean needsClassification(long now) { + return classified == 0 || (now - classified >= 800 && (ageCount < 3 || Math.max(male, female) < 3)); + } + + void sample(Demographics result, Integer age, String gender, long now) { + classified = now; + if (age != null && ageCount < 5) { ageCount++; ageSum += age; } + if ("Male".equals(gender) && male < 5) male++; + if ("Female".equals(gender) && female < 5) female++; + score = result.confidence; + } + + Integer averageAge() { return ageCount == 0 ? null : Math.round((float) ageSum / ageCount); } + int gender() { return male == female ? 2 : (male > female ? 0 : 1); } + String label() { + Integer age = averageAge(); + return "#" + id + " " + (age == null ? "Age unknown" : "~" + age) + " " + + AudienceAggregator.GENDERS[gender()] + (score > 0 ? " " + Math.round(score * 100) + "%" : ""); + } + } +} + +final class AudienceAggregator { + static final String[] GENDERS = {"Male", "Female", "Unknown"}; + static final String[] AGES = {"Under 18", "18–24", "25–34", "35–44", "45–59", "60+", "Unknown"}; + final int[] genders = new int[GENDERS.length]; + final int[] ages = new int[AGES.length]; + int visits; + + boolean observe(VisitorTracker.Track track) { + if (track.visit.visit == 0 || track.repeat) return false; + int age = ageGroup(track.averageAge()); + int gender = track.gender(); + if (track.countedAge == age && track.countedGender == gender) return false; + if (track.countedAge == -1) visits++; + else { + ages[track.countedAge]--; + genders[track.countedGender]--; + } + ages[age]++; + genders[gender]++; + track.countedAge = age; + track.countedGender = gender; + return true; + } + + void reset() { + visits = 0; + Arrays.fill(genders, 0); + Arrays.fill(ages, 0); + } + + private int ageGroup(Integer age) { + if (age == null || age < 18 || age > 80) return 6; + if (age < 25) return 1; + if (age < 35) return 2; + if (age < 45) return 3; + return age < 60 ? 4 : 5; + } +} diff --git a/src/Benchmark.java b/src/Benchmark.java new file mode 100644 index 0000000..4e56027 --- /dev/null +++ b/src/Benchmark.java @@ -0,0 +1,43 @@ +package com.it_screen.edgevision; + +import java.io.File; +import java.nio.file.Files; +import java.util.ArrayDeque; +import java.util.Iterator; +import org.json.JSONArray; +import org.json.JSONObject; + +final class Benchmark { + private final ArrayDeque samples = new ArrayDeque<>(); + void add(JSONObject data) { + if (samples.size() == 1200) samples.removeFirst(); + samples.addLast(data); + } + + File save(File directory) throws Exception { + if (directory == null || (!directory.isDirectory() && !directory.mkdirs())) + throw new IllegalStateException("Benchmark directory unavailable"); + JSONArray rows = new JSONArray(); + for (JSONObject sample : samples) rows.put(sample); + File base = new File(directory, "edge-vision-" + System.currentTimeMillis()); + Files.write(new File(base + ".json").toPath(), rows.toString(2).getBytes(java.nio.charset.StandardCharsets.UTF_8)); + StringBuilder csv = new StringBuilder(); + if (!samples.isEmpty()) { + JSONObject first = samples.getFirst(); + java.util.List fields = new java.util.ArrayList<>(); + Iterator keys = first.keys(); + while (keys.hasNext()) fields.add(keys.next()); + csv.append(String.join(",", fields)).append('\n'); + for (JSONObject sample : samples) { + String delimiter = ""; + for (String field : fields) { + csv.append(delimiter).append('"').append(sample.optString(field).replace("\"", "\"\"")).append('"'); + delimiter = ","; + } + csv.append('\n'); + } + } + Files.write(new File(base + ".csv").toPath(), csv.toString().getBytes(java.nio.charset.StandardCharsets.UTF_8)); + return base; + } +} diff --git a/src/CydralDemographics.java b/src/CydralDemographics.java new file mode 100644 index 0000000..2761031 --- /dev/null +++ b/src/CydralDemographics.java @@ -0,0 +1,62 @@ +package com.it_screen.edgevision; + +import android.graphics.Bitmap; +import android.graphics.Matrix; + +final class CydralDemographics implements AgeEstimator, GenderEstimator { + private static final Demographics UNKNOWN = new Demographics(null, "Unknown", 0); + private final Predictor age, gender; + + CydralDemographics(Predictor age, Predictor gender) { + this.age = age; + this.gender = gender; + } + + Demographics classify(Bitmap image, Face face) throws Exception { + float[] points = face.landmarks; + if (points == null || face.confidence < 0.7f || + Math.min(face.box.width() * image.getWidth(), face.box.height() * image.getHeight()) < 48 || + Math.hypot(points[2] - points[0], points[3] - points[1]) < 16) return UNKNOWN; + float[] distribution = age.predict(image, points); + if (distribution == null || distribution.length != 81) return UNKNOWN; + float estimate = 0.25f * distribution[0]; + for (int years = 1; years < distribution.length; years++) estimate += years * distribution[years]; + if (!Float.isFinite(estimate) || estimate < 18 || estimate > 80) return UNKNOWN; + + float[] classes = gender.predict(image, points); + if (classes == null || classes.length != 2 || !Float.isFinite(classes[0]) || !Float.isFinite(classes[1])) + return new Demographics(Math.round(estimate), "Unknown", 0); + return new Demographics(Math.round(estimate), classes[0] >= classes[1] ? "Female" : "Male", + Math.max(classes[0], classes[1])); + } + + long runs() { return age.session.runs() + gender.session.runs(); } + + String providerAssignment() { + return "Age " + age.session.providerAssignment() + " / Gender " + gender.session.providerAssignment(); + } + + @Override public Integer age(Demographics result) { return result.age; } + + @Override public String gender(Demographics result, float threshold) { + return result.confidence >= threshold ? result.gender : "Unknown"; + } + + static final class Predictor extends ImageModel { + private static final float[] RGB_MEANS = {122.781998f, 117.000999f, 104.297997f}; + private final float[] targetEyes; + + Predictor(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception { + super(session, entry); + // Approximate the reference's padded dlib chip using YuNet eye centers. + targetEyes = new float[]{0.30524f * width, 0.30099f * height, + 0.68080f * width, 0.30088f * height}; + } + + float[] predict(Bitmap image, float[] landmarks) throws Exception { + Matrix transform = new Matrix(); + if (!transform.setPolyToPoly(landmarks, 0, targetEyes, 0, 2)) return null; + return runNormalized(image, transform, RGB_MEANS).get("probabilities"); + } + } +} diff --git a/src/InferenceEngine.java b/src/InferenceEngine.java new file mode 100644 index 0000000..45c1e76 --- /dev/null +++ b/src/InferenceEngine.java @@ -0,0 +1,18 @@ +package com.it_screen.edgevision; + +import java.util.Map; +import java.util.Set; + +interface InferenceEngine extends AutoCloseable { + Set providers(); + Model load(ModelRegistry.Entry specification, String provider, int threads) throws Exception; + @Override void close(); + + interface Model extends AutoCloseable { + Map run(String input, float[] data, long[] shape, Set outputs) throws Exception; + String providerAssignment(); + long runs(); + double lastInferenceMs(); + @Override void close() throws Exception; + } +} diff --git a/src/InternalCamera.java b/src/InternalCamera.java new file mode 100644 index 0000000..e50724f --- /dev/null +++ b/src/InternalCamera.java @@ -0,0 +1,164 @@ +package com.it_screen.edgevision; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.graphics.Bitmap; +import android.graphics.ImageFormat; +import android.hardware.camera2.*; +import android.media.Image; +import android.media.ImageReader; +import android.os.Handler; +import android.os.HandlerThread; +import android.os.SystemClock; +import android.util.Size; +import java.nio.ByteBuffer; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; + +final class InternalCamera implements VideoSource { + private final CameraManager manager; + private final int targetWidth, targetHeight; + private final HandlerThread thread = new HandlerThread("EdgeVision-Camera"); + private Handler handler; + private volatile boolean closed; + private CameraDevice camera; + private CameraCaptureSession session; + private ImageReader reader; + private Listener listener; + private int rotation; + private int[] pixels; + private long lastFrame, epoch, dropped; + private int frameCount; + private double fps; + + InternalCamera(Context context, int width, int height) { + manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); + targetWidth = width; + targetHeight = height; + } + + static String id(CameraManager manager) throws CameraAccessException { + String[] ids = manager.getCameraIdList(); + if (ids.length == 0) throw new IllegalStateException("No camera"); + for (String id : ids) { + Integer direction = manager.getCameraCharacteristics(id).get(CameraCharacteristics.LENS_FACING); + if (direction != null && direction == CameraCharacteristics.LENS_FACING_BACK) return id; + } + return ids[0]; + } + + static Size[] sizes(CameraManager manager) throws CameraAccessException { + return manager.getCameraCharacteristics(id(manager)).get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP) + .getOutputSizes(ImageFormat.YUV_420_888); + } + + @Override public void start(Listener listener) { + this.listener = listener; + thread.start(); + handler = new Handler(thread.getLooper()); + handler.post(this::open); + } + + @SuppressLint("MissingPermission") + private void open() { + if (closed) return; + try { + String id = id(manager); + CameraCharacteristics characteristics = manager.getCameraCharacteristics(id); + Integer orientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); + rotation = orientation == null ? 0 : orientation; + Size size = Arrays.stream(sizes(manager)).min(Comparator.comparingLong(s -> + Math.abs(s.getWidth() - targetWidth) + Math.abs(s.getHeight() - targetHeight))).orElseThrow(); + reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), ImageFormat.YUV_420_888, 4); + reader.setOnImageAvailableListener(this::receive, handler); + manager.openCamera(id, new CameraDevice.StateCallback() { + @Override public void onOpened(CameraDevice value) { + if (closed) { value.close(); return; } + camera = value; + configure(); + } + @Override public void onDisconnected(CameraDevice value) { value.close(); fail("Camera disconnected"); } + @Override public void onError(CameraDevice value, int code) { value.close(); fail("Camera error " + code); } + }, handler); + } catch (Exception error) { fail(error.toString()); } + } + + private void configure() { + try { + camera.createCaptureSession(Collections.singletonList(reader.getSurface()), new CameraCaptureSession.StateCallback() { + @Override public void onConfigured(CameraCaptureSession value) { + if (closed) { value.close(); return; } + session = value; + try { + CaptureRequest.Builder request = camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); + request.addTarget(reader.getSurface()); + session.setRepeatingRequest(request.build(), null, handler); + } catch (Exception error) { fail(error.toString()); } + } + @Override public void onConfigureFailed(CameraCaptureSession value) { fail("Cannot configure camera stream"); } + }, handler); + } catch (Exception error) { fail(error.toString()); } + } + + private void receive(ImageReader input) { + try (Image image = input.acquireLatestImage()) { + if (closed || image == null) return; + long now = SystemClock.elapsedRealtime(); + frameCount++; + if (epoch == 0) epoch = now; + if (now - epoch >= 1000) { + fps = 1000.0 * frameCount / (now - epoch); + frameCount = 0; + epoch = now; + } + if (now - lastFrame < 75) { dropped++; return; } + lastFrame = now; + listener.frame(convert(image), image.getWidth() + "×" + image.getHeight(), fps, dropped); + } catch (Exception error) { if (!closed) fail(error.toString()); } + } + + private Bitmap convert(Image image) { + Image.Plane[] planes = image.getPlanes(); + ByteBuffer y = planes[0].getBuffer(), u = planes[1].getBuffer(), v = planes[2].getBuffer(); + int fullW = image.getWidth(), fullH = image.getHeight(); + int w = Math.min(fullW, 640), h = fullH * w / fullW; + boolean transpose = rotation == 90 || rotation == 270; + int outW = transpose ? h : w, outH = transpose ? w : h; + if (pixels == null || pixels.length != outW * outH) pixels = new int[outW * outH]; + int yr = planes[0].getRowStride(), ur = planes[1].getRowStride(), vr = planes[2].getRowStride(); + int yp = planes[0].getPixelStride(), up = planes[1].getPixelStride(), vp = planes[2].getPixelStride(); + for (int row = 0; row < h; row++) { + int py = row * fullH / h; + for (int col = 0; col < w; col++) { + int px = col * fullW / w; + int luma = Math.max(0, (y.get(py * yr + px * yp) & 255) - 16); + int cb = (u.get(py / 2 * ur + px / 2 * up) & 255) - 128; + int cr = (v.get(py / 2 * vr + px / 2 * vp) & 255) - 128; + int r = clamp((298 * luma + 409 * cr + 128) >> 8); + int g = clamp((298 * luma - 100 * cb - 208 * cr + 128) >> 8); + int b = clamp((298 * luma + 516 * cb + 128) >> 8); + int index = rotation == 180 ? (h - 1 - row) * w + w - 1 - col : + rotation == 90 ? col * h + h - 1 - row : + rotation == 270 ? (w - 1 - col) * h + row : row * w + col; + pixels[index] = 0xff000000 | r << 16 | g << 8 | b; + } + } + return Bitmap.createBitmap(pixels, outW, outH, Bitmap.Config.ARGB_8888); + } + + private static int clamp(int value) { return Math.max(0, Math.min(255, value)); } + + private void fail(String reason) { if (!closed) listener.error(reason); } + + @Override public void close() { + closed = true; + if (handler == null) return; + handler.post(() -> { + if (session != null) session.close(); + if (camera != null) camera.close(); + if (reader != null) reader.close(); + thread.quitSafely(); + }); + } +} diff --git a/src/MainActivity.java b/src/MainActivity.java new file mode 100644 index 0000000..9b7b143 --- /dev/null +++ b/src/MainActivity.java @@ -0,0 +1,638 @@ +package com.it_screen.edgevision; + +import android.Manifest; +import android.app.Activity; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.PackageManager; +import android.graphics.*; +import android.hardware.camera2.CameraManager; +import android.os.*; +import android.view.*; +import android.widget.*; +import java.util.*; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicLong; +import org.json.JSONObject; + +public final class MainActivity extends Activity { + private final ExecutorService inference = Executors.newSingleThreadExecutor(); + private final AtomicBoolean busy = new AtomicBoolean(); + private final AtomicBoolean previewQueued = new AtomicBoolean(); + private final AtomicLong skipped = new AtomicLong(); + private final VisitorTracker tracker = new VisitorTracker(); + private final VisitMemory visitMemory = new VisitMemory(); + private final ArrayDeque visitEvents = new ArrayDeque<>(); + private final AudienceAggregator totals = new AudienceAggregator(); + private final Benchmark benchmark = new Benchmark(); + private final Handler ui = new Handler(Looper.getMainLooper()); + private final long startedAt = SystemClock.elapsedRealtime(); + private volatile long generation, nextFrame; + private volatile Bitmap previewFrame; + private VideoSource source; + private InferenceEngine engine; + private ModelRegistry registry; + private Settings loaded; + private YuNet detector; + private CydralDemographics demographics; + private SFace faceEmbedding; + private SharedPreferences preferences; + private List faceModels, demographicModels; + private List providers; + private long metricsEpoch, frameCount, lastCpu, lastCpuAt, errors; + private double aiFps; + private double loadMs; + private TextView status, dashboard, stats, trackingLog; + private Preview preview; + private Button start, stop, test; + private Spinner resolution, interval, detection, classification, provider, threadCount, faceModel, ageModel, visitWindow; + private boolean running; + + @Override public void onCreate(Bundle state) { + super.onCreate(state); + getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | + View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | + View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); + preferences = getSharedPreferences("aggregates", MODE_PRIVATE); + totals.visits = preferences.getInt("total", 0); + readCounts("age", totals.ages); + readCounts("gender", totals.genders); + createDashboard(); + updateStats(0, totals.visits, totals.genders.clone(), totals.ages.clone()); + try { + registry = new ModelRegistry(getAssets()); + engine = new OrtEngine(registry, getCacheDir()); + providers = new ArrayList<>(engine.providers()); + providers.retainAll(List.of("CPU", "XNNPACK", "NNAPI")); + providers.sort(Comparator.comparingInt(List.of("CPU", "XNNPACK", "NNAPI")::indexOf)); + faceModels = registry.list("face"); + demographicModels = registry.list("age"); + choices(provider, providers); + if (providers.contains("XNNPACK")) provider.setSelection(providers.indexOf("XNNPACK")); + choices(faceModel, faceModels); + for (int i = 0; i < faceModels.size(); i++) { + if (faceModels.get(i).json.optString("version").equals("2026may-fixed320")) faceModel.setSelection(i); + } + choices(ageModel, demographicModels); + configureSizes(); + setStatus("Ready · adult volunteers only"); + setRunning(false); + } catch (Exception | LinkageError error) { + setStatus("Initialization error: " + error); + start.setEnabled(false); + test.setEnabled(false); + } + } + + private void readCounts(String prefix, int[] counts) { + for (int i = 0; i < counts.length; i++) counts[i] = preferences.getInt(prefix + i, 0); + } + + private void persist() { + SharedPreferences.Editor write = preferences.edit().putInt("total", totals.visits); + for (int i = 0; i < totals.ages.length; i++) write.putInt("age" + i, totals.ages[i]); + for (int i = 0; i < totals.genders.length; i++) write.putInt("gender" + i, totals.genders[i]); + write.apply(); + } + + private void configureSizes() { + try { + SizeList list = new SizeList(InternalCamera.sizes((CameraManager) getSystemService(CAMERA_SERVICE))); + choices(resolution, list.values); + if (list.values.contains("640×480")) resolution.setSelection(list.values.indexOf("640×480")); + } catch (Exception error) { + android.util.Log.w("EdgeVision", "Camera sizes unavailable before permission", error); + } + } + + private static final class SizeList { + final List values = new ArrayList<>(); + SizeList(android.util.Size[] input) { + Arrays.sort(input, Comparator.comparingLong(s -> (long) s.getWidth() * s.getHeight())); + for (android.util.Size size : input) values.add(size.getWidth() + "×" + size.getHeight()); + } + } + + private void createDashboard() { + LinearLayout root = new LinearLayout(this); + root.setOrientation(LinearLayout.HORIZONTAL); + root.setBackgroundColor(0xff101821); + LinearLayout left = column(); + left.setPadding(16, 10, 12, 10); + root.addView(left, new LinearLayout.LayoutParams(0, -1, 2)); + String appName = getApplicationInfo().loadLabel(getPackageManager()).toString(); + TextView title = text(appName + " v" + appVersion(), 22); + title.setSingleLine(true); + title.setEllipsize(android.text.TextUtils.TruncateAt.END); + left.addView(title); + status = text("Initializing…", 14); + left.addView(status); + preview = new Preview(); + left.addView(preview, new LinearLayout.LayoutParams(-1, 0, 1)); + LinearLayout actions = new LinearLayout(this); + left.addView(actions); + start = button(actions, "Start", () -> { + if (checkSelfPermission(Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) startCamera(); + else requestPermissions(new String[]{Manifest.permission.CAMERA}, 1); + }); + stop = button(actions, "Stop", () -> halt("Camera stopped")); + button(actions, "Reset Statistics", this::reset); + button(actions, "Export Benchmark", () -> inference.execute(() -> { + try { + java.io.File file = benchmark.save(getExternalFilesDir("benchmark")); + ui.post(() -> Toast.makeText(this, "Saved " + file.getName() + " JSON / CSV", Toast.LENGTH_LONG).show()); + } catch (Exception error) { ui.post(() -> setStatus(error.toString())); } + })); + test = button(actions, "Test Image", () -> { + Intent picker = new Intent(Intent.ACTION_OPEN_DOCUMENT).setType("image/*").addCategory(Intent.CATEGORY_OPENABLE); + startActivityForResult(picker, 2); + }); + LinearLayout row1 = new LinearLayout(this), row2 = new LinearLayout(this); + left.addView(row1); + left.addView(row2); + resolution = setting(row1, "Resolution", "640×480", "1280×720"); + interval = setting(row1, "Interval ms", "100", "200", "500", "1000"); + interval.setSelection(1); + detection = setting(row1, "Detection threshold", "0.5", "0.6", "0.7", "0.8", "0.9"); + detection.setSelection(1); + classification = setting(row1, "Class. threshold", "0.6", "0.7", "0.8", "0.9", "0.95"); + classification.setSelection(2); + provider = setting(row2, "Execution provider", "CPU"); + threadCount = setting(row2, "Threads", "1", "2", "3", "4"); + threadCount.setSelection(1); + faceModel = setting(row2, "Detector", "Loading"); + ageModel = setting(row2, "Age / gender", "Loading"); + visitWindow = setting(row2, "Окно повтора, мин", "1", "2", "5", "10", "30", "60"); + visitWindow.setSelection(Math.max(0, Math.min(5, preferences.getInt("visit_window", 0)))); + visitWindow.setOnItemSelectedListener(new android.widget.AdapterView.OnItemSelectedListener() { + @Override public void onItemSelected(android.widget.AdapterView parent, View view, int pos, long id) { + preferences.edit().putInt("visit_window", pos).apply(); + } + @Override public void onNothingSelected(android.widget.AdapterView parent) { } + }); + ScrollView scroll = new ScrollView(this); + scroll.setBackgroundColor(0xff1a2833); + root.addView(scroll, new LinearLayout.LayoutParams(0, -1, 1)); + LinearLayout right = column(); + right.setPadding(14, 10, 12, 10); + scroll.addView(right); + stats = text("", 14); + dashboard = text("Runtime ONNX Runtime 1.32.0\nMetrics N/A", 14); + right.addView(text("Журнал трекинга", 16)); + trackingLog = text("Ожидание лица", 13); + right.addView(trackingLog); + right.addView(stats); + right.addView(dashboard); + setContentView(root); + start.setEnabled(false); + test.setEnabled(false); + } + + private String appVersion() { + try { + return getPackageManager().getPackageInfo(getPackageName(), 0).versionName; + } catch (PackageManager.NameNotFoundException error) { + throw new IllegalStateException("Own package metadata is unavailable", error); + } + } + + private LinearLayout column() { + LinearLayout view = new LinearLayout(this); + view.setOrientation(LinearLayout.VERTICAL); + return view; + } + + private TextView text(String value, int size) { + TextView text = new TextView(this); + text.setText(value); + text.setTextSize(size); + text.setTextColor(0xffe5f2fa); + return text; + } + + private Button button(LinearLayout parent, String name, Runnable action) { + Button view = new Button(this); + view.setText(name); + view.setAllCaps(false); + view.setOnClickListener(v -> action.run()); + parent.addView(view); + return view; + } + + private Spinner setting(LinearLayout parent, String name, String... values) { + LinearLayout wrapper = column(); + wrapper.addView(text(name, 12)); + Spinner spinner = new Spinner(this); + spinner.setContentDescription(name); + choices(spinner, Arrays.asList(values)); + wrapper.addView(spinner); + parent.addView(wrapper, new LinearLayout.LayoutParams(0, -2, 1)); + return spinner; + } + + private void choices(Spinner spinner, List values) { + ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, values.toArray()); + adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + spinner.setAdapter(adapter); + } + + private void setStatus(String message) { + status.setText(message); + android.util.Log.i("EdgeVision", message); + } + + private void setRunning(boolean value) { + running = value; + start.setEnabled(!value); + test.setEnabled(!value); + stop.setEnabled(value); + for (Spinner control : new Spinner[]{resolution, interval, detection, classification, provider, threadCount, faceModel, ageModel, visitWindow}) + control.setEnabled(!value); + } + + private Settings readSettings() { + return new Settings(resolution.getSelectedItem().toString(), + Integer.parseInt(interval.getSelectedItem().toString()), + Float.parseFloat(detection.getSelectedItem().toString()), + Float.parseFloat(classification.getSelectedItem().toString()), + (String) provider.getSelectedItem(), Integer.parseInt(threadCount.getSelectedItem().toString()), + faceModels.get(faceModel.getSelectedItemPosition()), demographicModels.get(ageModel.getSelectedItemPosition()), + Long.parseLong(visitWindow.getSelectedItem().toString()) * 60000L); + } + + private void startCamera() { + if (running) return; + Settings selection = readSettings(); + String[] dimensions = selection.resolution.split("×"); + begin(selection, new InternalCamera(this, Integer.parseInt(dimensions[0]), Integer.parseInt(dimensions[1]))); + } + + private void begin(Settings selection, VideoSource input) { + setRunning(true); + setStatus("Loading model sessions…"); + final long run = ++generation; + nextFrame = 0; + skipped.set(0); + inference.execute(() -> { + tracker.clear(); + visitMemory.clear(); + visitEvents.clear(); + ui.post(() -> { if (generation == run) trackingLog.setText("Ожидание лица"); }); + metricsEpoch = 0; + frameCount = 0; + aiFps = 0; + lastCpuAt = 0; + try { + load(selection); + ui.post(() -> { + if (generation != run) return; + source = input; + setStatus("Opening source · " + selection.provider); + source.start(new VideoSource.Listener() { + @Override public void frame(Bitmap frame, String size, double fps, long drops) { + accept(run, selection, frame, size, fps, drops); + } + @Override public void error(String reason) { failed(run, reason); } + }); + }); + } catch (Exception | LinkageError error) { failed(run, error.toString()); } + }); + } + + private void load(Settings config) throws Exception { + if (loaded != null && loaded.sameModels(config)) { loadMs = 0; return; } + long startAt = System.nanoTime(); + engine.close(); + loaded = null; + if (!"yunet".equals(config.face.json.getString("adapter")) || !"cydral-age".equals(config.age.json.getString("adapter"))) + throw new IllegalArgumentException("Unknown model adapter"); + try { + detector = new YuNet(engine.load(config.face, config.provider, config.threads), config.face); + ModelRegistry.Entry gender = registry.list("gender").get(0); + demographics = new CydralDemographics( + new CydralDemographics.Predictor(engine.load(config.age, "CPU", config.threads), config.age), + new CydralDemographics.Predictor(engine.load(gender, "CPU", config.threads), gender)); + ModelRegistry.Entry embedding = registry.list("embedding").get(0); + faceEmbedding = new SFace(engine.load(embedding, "CPU", config.threads), embedding); + loaded = config; + loadMs = ms(startAt); + } catch (Exception failure) { + engine.close(); + throw failure; + } + } + + private void accept(long run, Settings config, Bitmap bitmap, String size, double fps, long sourceDrops) { + if (generation != run) return; + previewFrame = bitmap; + if (previewQueued.compareAndSet(false, true)) ui.post(() -> { + previewQueued.set(false); + if (generation == run) preview.invalidate(); + }); + long now = SystemClock.elapsedRealtime(); + if (now < nextFrame || !busy.compareAndSet(false, true)) { skipped.incrementAndGet(); return; } + nextFrame = now + config.interval; + inference.execute(() -> { + try { + if (generation == run) analyze(run, config, bitmap, size, fps, sourceDrops, now); + } catch (Exception error) { failed(run, error.toString()); } + finally { busy.set(false); } + }); + } + + private void analyze(long run, Settings config, Bitmap frame, String size, double cameraFps, + long sourceDrops, long now) throws Exception { + long inferenceAt = System.nanoTime(); + List faces = detector.detect(frame, config.detection); + double faceMs = ms(inferenceAt); + long ageAt = System.nanoTime(); + List visible = tracker.update(faces, now, Math.max(3000, 3L * config.interval)); + List overlays = new ArrayList<>(); + visitMemory.expire(now, config.visitWindowMs); + Set activeVisits = new HashSet<>(); + for (VisitorTracker.Track track : visible) { + if (track.visit.visit != 0) activeVisits.add(track.visit.visit); + } + boolean changed = false; + int probes = 0; + int classifications = 0; + long runs = demographics.runs(); + for (VisitorTracker.Track track : visible) { + if (track.needsClassification(now) && classifications < 6) { + Demographics estimate = demographics.classify(frame, track.face); + track.sample(estimate, demographics.age(estimate), demographics.gender(estimate, config.classification), now); + classifications++; + } + if (track.observations >= 2) { + VisitMemory.Sample sample = null; + long delay = track.visit.visit == 0 ? 250 : 1200; + if (probes < 2 && now - track.visit.lastProbe >= delay) { + track.visit.lastProbe = now; + sample = faceEmbedding.sample(frame, track.face, angle -> visitMemory.needsAngle(track.visit, angle)); + probes++; + } + if (track.visit.visit != 0) { + visitMemory.refresh(track.visit, sample, now); + } else { + VisitMemory.Decision decision = visitMemory.decide(track.id, track.visit, sample, activeVisits, now); + if (decision != null) { + track.repeat = decision.repeat; + activeVisits.add(track.visit.visit); + addVisitEvent("#" + track.id + " · " + (track.repeat + ? "Тот же человек (визит #" + track.visit.visit + ") · Total без изменений" + : "Новый визит · Total +1 · " + decision.reason)); + } else if (!track.checkingLogged) { + track.checkingLogged = true; + addVisitEvent("#" + track.id + " · Проверяем повтор"); + } + } + } + changed |= totals.observe(track); + overlays.add(new DrawBox(track.face.box, track.label())); + } + if (generation != run) return; + if (changed) persist(); + double ageMs = demographics.runs() == runs ? -1 : ms(ageAt); + double totalMs = ms(inferenceAt); + long current = SystemClock.elapsedRealtime(); + if (metricsEpoch == 0) metricsEpoch = current; + frameCount++; + boolean sampled = current - metricsEpoch >= 1000; + if (sampled) { + aiFps = 1000.0 * frameCount / (current - metricsEpoch); + metricsEpoch = current; + frameCount = 0; + } + int visits = totals.visits; + int[] genders = totals.genders.clone(), ages = totals.ages.clone(); + final String tracking = visitEvents.isEmpty() ? "Ожидание лица" : String.join("\n", visitEvents); + final String detail; + if (sampled) { + JSONObject report = metrics(config, size, cameraFps, faceMs, ageMs, totalMs, sourceDrops, faces.size()); + benchmark.add(report); + detail = describe(report); + android.util.Log.i("EdgeVisionBench", report.toString()); + } else detail = null; + ui.post(() -> { + if (generation != run) return; + status.setText("Source active · adult estimates"); + if (!tracking.contentEquals(trackingLog.getText())) trackingLog.setText(tracking); + preview.boxes = overlays; + preview.invalidate(); + updateStats(faces.size(), visits, genders, ages); + if (detail != null) dashboard.setText(detail); + }); + } + + private JSONObject metrics(Settings config, String size, double cameraFps, double faceMs, double ageMs, + double totalMs, long sourceDrops, int faces) throws Exception { + long now = SystemClock.elapsedRealtime(), cpu = android.os.Process.getElapsedCpuTime(); + Object cpuPercent = lastCpuAt == 0 ? JSONObject.NULL : round(100.0 * (cpu - lastCpu) / Math.max(1, now - lastCpuAt)); + lastCpuAt = now; + lastCpu = cpu; + return new JSONObject() + .put("runtime", "ONNX Runtime 1.32.0").put("provider", config.provider).put("threads", config.threads) + .put("detector", config.face.toString()).put("demographics", config.age + " / Cydral Gender v1") + .put("detector_nodes", detector.session.providerAssignment()) + .put("demographics_nodes", demographics.providerAssignment()) + .put("resolution", size).put("camera_fps", cameraFps <= 0 ? JSONObject.NULL : round(cameraFps)) + .put("inference_fps", round(aiFps)).put("detection_ms", round(faceMs)) + .put("age_gender_ms", ageMs < 0 ? JSONObject.NULL : round(ageMs)) + .put("total_ms", round(totalMs)).put("session_load_ms", round(loadMs)).put("interval_ms", config.interval) + .put("cpu_pct", cpuPercent).put("pss_mib", round(Debug.getPss() / 1024.0)).put("cpu_temperature_c", JSONObject.NULL) + .put("frame_drops", sourceDrops + skipped.get()).put("errors", errors) + .put("faces", faces).put("uptime_s", (now - startedAt) / 1000); + } + + private String describe(JSONObject data) { + return "\nDiagnostic Dashboard\n" + + "Runtime " + value(data, "runtime") + "\n" + + "Execution Provider " + value(data, "provider") + " · " + value(data, "threads") + " threads\n" + + "Face nodes " + value(data, "detector_nodes") + "\n" + + "Age/gender nodes " + value(data, "demographics_nodes") + "\n" + + "Models " + value(data, "detector") + " / " + value(data, "demographics") + "\n" + + "Resolution " + value(data, "resolution") + "\n" + + "Camera / AI FPS " + value(data, "camera_fps") + " / " + value(data, "inference_fps") + "\n" + + "Face / Age-Gender ms " + value(data, "detection_ms") + " / " + value(data, "age_gender_ms") + "\n" + + "Total processing ms " + value(data, "total_ms") + "\n" + + "CPU (process) " + value(data, "cpu_pct") + "%\n" + + "RAM (PSS) " + value(data, "pss_mib") + " MiB\n" + + "CPU Temperature " + value(data, "cpu_temperature_c") + "\n" + + "Skipped frames " + value(data, "frame_drops") + "\n" + + "Runtime errors " + value(data, "errors") + "\n" + + "Uptime " + value(data, "uptime_s") + " s"; + } + + private static Object value(JSONObject data, String key) { return data.isNull(key) ? "N/A" : data.opt(key); } + private static double ms(long start) { return (System.nanoTime() - start) / 1e6; } + private static double round(double value) { return Math.round(value * 10) / 10.0; } + + private void updateStats(int current, int visits, int[] genders, int[] ages) { + StringBuilder body = new StringBuilder("Total visits ").append(visits).append("\nCurrent visitors ").append(current); + for (int i = 0; i < genders.length; i++) body.append('\n').append(AudienceAggregator.GENDERS[i]).append(" ").append(genders[i]); + body.append("\n\nEstimated age (adult-only)"); + for (int i = 0; i < ages.length; i++) body.append('\n').append(AudienceAggregator.AGES[i]).append(" ").append(i == 0 ? "N/A" : ages[i]); + stats.setText(body); + } + + private void failed(long run, String reason) { + android.util.Log.e("EdgeVision", reason); + inference.execute(() -> errors++); + ui.post(() -> { if (generation == run) halt(reason + " · select CPU to retry"); }); + } + + private void addVisitEvent(String event) { + if (visitEvents.size() == 4) visitEvents.removeLast(); + visitEvents.addFirst(event); + } + + private void reset() { + inference.execute(() -> { + tracker.clear(); + visitMemory.clear(); + visitEvents.clear(); + totals.reset(); + persist(); + ui.post(() -> { + preview.boxes = java.util.Collections.emptyList(); + preview.invalidate(); + trackingLog.setText("Журнал очищен"); + updateStats(0, 0, new int[3], new int[7]); + }); + }); + } + + private void halt(String message) { + generation++; + if (source != null) { + source.close(); + source = null; + } + previewFrame = null; + preview.boxes = java.util.Collections.emptyList(); + preview.invalidate(); + setRunning(false); + setStatus(message); + inference.execute(() -> { + visitMemory.clear(); + int visits = totals.visits; + int[] genders = totals.genders.clone(), ages = totals.ages.clone(); + ui.post(() -> { if (!running) updateStats(0, visits, genders, ages); }); + }); + } + + @Override public void onRequestPermissionsResult(int request, String[] permissions, int[] grants) { + super.onRequestPermissionsResult(request, permissions, grants); + if (request == 1 && grants.length > 0 && grants[0] == PackageManager.PERMISSION_GRANTED) { + configureSizes(); + startCamera(); + } else if (request == 1) setStatus("Camera permission denied"); + } + + @Override protected void onActivityResult(int request, int code, Intent data) { + super.onActivityResult(request, code, data); + if (code != RESULT_OK || data == null || data.getData() == null) return; + android.net.Uri uri = data.getData(); + if (request != 2) return; + begin(readSettings(), new VideoSource() { + private boolean closed; + private final Runnable cleanup = () -> closed = true; + @Override public void start(Listener listener) { + inference.execute(() -> { + try { + android.graphics.ImageDecoder.Source image = ImageDecoder.createSource(getContentResolver(), uri); + Bitmap bitmap = ImageDecoder.decodeBitmap(image, (decoder, info, item) -> { + decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); + int width = info.getSize().getWidth(), height = info.getSize().getHeight(); + float scale = Math.min(1, 960f / Math.max(width, height)); + decoder.setTargetSize(Math.max(1, Math.round(width * scale)), Math.max(1, Math.round(height * scale))); + }); + ui.post(new Runnable() { + @Override public void run() { + if (closed) return; + listener.frame(bitmap, "Test " + bitmap.getWidth() + "×" + bitmap.getHeight(), 0, 0); + ui.postDelayed(this, 100); + } + }); + } catch (Exception failure) { listener.error(failure.toString()); } + }); + } + @Override public void close() { cleanup.run(); } + }); + } + + @Override protected void onStop() { + if (running) halt("Stopped in background"); + super.onStop(); + } + + @Override protected void onDestroy() { + if (engine != null) inference.execute(engine::close); + inference.shutdown(); + super.onDestroy(); + } + + private static final class Settings { + final String resolution, provider; + final int interval, threads; + final long visitWindowMs; + final float detection, classification; + final ModelRegistry.Entry face, age; + Settings(String resolution, int interval, float detection, float classification, String provider, + int threads, ModelRegistry.Entry face, ModelRegistry.Entry age, long visitWindowMs) { + this.resolution = resolution; + this.interval = interval; + this.detection = detection; + this.classification = classification; + this.provider = provider; + this.threads = threads; + this.face = face; + this.age = age; + this.visitWindowMs = visitWindowMs; + } + boolean sameModels(Settings other) { + return other.face == face && other.age == age && other.provider.equals(provider) && other.threads == threads; + } + } + + private static final class DrawBox { + final RectF rect; + final String label; + DrawBox(RectF rect, String label) { this.rect = rect; this.label = label; } + } + + private final class Preview extends View { + private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); + List boxes = java.util.Collections.emptyList(); + Preview() { super(MainActivity.this); } + @Override protected void onDraw(Canvas canvas) { + canvas.drawColor(0xff080d12); + Bitmap frame = previewFrame; + if (frame == null) return; + float scale = Math.min(getWidth() / (float) frame.getWidth(), getHeight() / (float) frame.getHeight()); + float width = scale * frame.getWidth(), height = scale * frame.getHeight(); + float x = (getWidth() - width) / 2, y = (getHeight() - height) / 2; + paint.setColor(Color.WHITE); + paint.setStyle(Paint.Style.FILL); + canvas.drawBitmap(frame, null, new RectF(x, y, x + width, y + height), paint); + for (DrawBox box : boxes) { + RectF rect = box.rect; + RectF target = new RectF(x + rect.left * width, y + rect.top * height, + x + rect.right * width, y + rect.bottom * height); + paint.setColor(0xff68e2bf); + paint.setStrokeWidth(2); + paint.setStyle(Paint.Style.STROKE); + canvas.drawRect(target, paint); + paint.setStyle(Paint.Style.FILL); + paint.setTextSize(17); + float top = Math.max(y + 20, target.top); + paint.setColor(0xff0d212c); + canvas.drawRect(target.left, top - 20, target.left + paint.measureText(box.label) + 8, top + 2, paint); + paint.setColor(Color.WHITE); + canvas.drawText(box.label, target.left + 3, top - 3, paint); + } + } + } +} diff --git a/src/ModelRegistry.java b/src/ModelRegistry.java new file mode 100644 index 0000000..7a5283a --- /dev/null +++ b/src/ModelRegistry.java @@ -0,0 +1,73 @@ +package com.it_screen.edgevision; + +import android.content.res.AssetManager; +import java.io.InputStream; +import java.security.MessageDigest; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import org.json.JSONObject; + +final class ModelRegistry { + private final AssetManager assets; + ModelRegistry(AssetManager assets) { + this.assets = assets; + } + + List list(String type) throws Exception { + List entries = new ArrayList<>(); + String[] paths = assets.list("models"); + if (paths == null) return entries; + for (String path : paths) { + if (!path.endsWith(".json")) continue; + try (InputStream in = assets.open("models/" + path)) { + Entry entry = new Entry(new JSONObject(new String(readBytes(in), java.nio.charset.StandardCharsets.UTF_8))); + if (entry.json.getString("type").equals(type) && entry.approved()) entries.add(entry); + } + } + entries.sort(java.util.Comparator.comparing(Entry::toString)); + return Collections.unmodifiableList(entries); + } + + byte[] verified(Entry entry) throws Exception { + String path = entry.json.getString("file"); + if (!path.matches("models/[A-Za-z0-9._-]+\\.onnx") || !"ONNX".equals(entry.json.getString("format"))) + throw new IllegalArgumentException("Invalid ONNX asset " + path); + if (!entry.approved()) throw new SecurityException("Model is not approved for production: " + entry); + try (InputStream in = assets.open(path)) { + byte[] bytes = readBytes(in); + verify(entry.json, bytes); + return bytes; + } + } + + private void verify(JSONObject manifest, byte[] bytes) throws Exception { + byte[] digest = MessageDigest.getInstance("SHA-256").digest(bytes); + StringBuilder hex = new StringBuilder(); + for (byte b : digest) hex.append(String.format(java.util.Locale.ROOT, "%02x", b & 255)); + if (bytes.length != manifest.getLong("size") || !hex.toString().equalsIgnoreCase(manifest.getString("sha256"))) + throw new SecurityException("Model checksum mismatch: " + manifest.getString("id")); + } + + static byte[] readBytes(InputStream stream) throws java.io.IOException { + java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream(); + byte[] buffer = new byte[8192]; + for (int count; (count = stream.read(buffer)) >= 0;) { + if (output.size() > 32 * 1024 * 1024 - count) throw new java.io.IOException("Asset exceeds 32 MiB"); + output.write(buffer, 0, count); + } + return output.toByteArray(); + } + + static final class Entry { + final JSONObject json; + Entry(JSONObject json) { this.json = json; } + boolean approved() { + return json.optBoolean("productionAllowed") && json.optBoolean("commercialUse") && + json.optBoolean("modificationAllowed") && json.optBoolean("redistributionAllowed") && + "verified".equals(json.optString("licenseVerification")); + } + JSONObject input() throws Exception { return json.getJSONObject("input"); } + @Override public String toString() { return json.optString("name") + " " + json.optString("version"); } + } +} diff --git a/src/OrtEngine.java b/src/OrtEngine.java new file mode 100644 index 0000000..7e113c7 --- /dev/null +++ b/src/OrtEngine.java @@ -0,0 +1,145 @@ +package com.it_screen.edgevision; + +import ai.onnxruntime.*; +import java.io.File; +import java.nio.FloatBuffer; +import java.nio.file.Files; +import java.util.EnumSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.Set; +import org.json.JSONArray; + +final class OrtEngine implements InferenceEngine { + private final OrtEnvironment environment = OrtEnvironment.getEnvironment(); + private final ModelRegistry registry; + private final File cache; + private final Set open = new LinkedHashSet<>(); + + OrtEngine(ModelRegistry registry, File cache) { + this.registry = registry; + this.cache = cache; + } + + @Override public Set providers() { + Set names = new LinkedHashSet<>(); + for (OrtProvider provider : OrtEnvironment.getAvailableProviders()) names.add(provider.name()); + return names; + } + + @Override public Model load(ModelRegistry.Entry entry, String provider, int threads) throws Exception { + boolean supported = false; + JSONArray allowed = entry.json.getJSONArray("providers"); + for (int i = 0; i < allowed.length(); i++) supported |= provider.equals(allowed.getString(i)); + if (!supported || !providers().contains(provider)) throw new IllegalArgumentException("Unavailable provider: " + provider); + byte[] bytes = registry.verified(entry); + try (OrtSession.SessionOptions options = new OrtSession.SessionOptions()) { + options.setIntraOpNumThreads(provider.equals("XNNPACK") ? 1 : threads); + options.setInterOpNumThreads(1); + if ("XNNPACK".equals(provider)) { + options.addConfigEntry("session.intra_op.allow_spinning", "0"); + options.addXnnpack(Map.of("intra_op_num_threads", Integer.toString(threads))); + } else if ("NNAPI".equals(provider)) { + options.addNnapi(EnumSet.of(ai.onnxruntime.providers.NNAPIFlags.CPU_DISABLED)); + } + options.enableProfiling(new File(cache, "ort-profile-" + System.nanoTime()).getAbsolutePath()); + OrtSession session = environment.createSession(bytes, options); + try { + String inputName = entry.input().getString("name"); + if (session.getInputNames().size() != 1 || !session.getInputNames().contains(inputName)) + throw new IllegalArgumentException("Unexpected model input: " + session.getInputNames()); + TensorInfo input = (TensorInfo) session.getInputInfo().get(inputName).getInfo(); + long[] shape = input.getShape(); + long[] expectedShape = {1, 3, entry.input().getInt("height"), entry.input().getInt("width")}; + if (input.type != OnnxJavaType.FLOAT || shape.length != expectedShape.length) + throw new IllegalArgumentException("Expected float32 NCHW input"); + for (int axis = 0; axis < shape.length; axis++) { + if (shape[axis] > 0 && shape[axis] != expectedShape[axis]) + throw new IllegalArgumentException("Manifest input shape does not match model"); + } + JSONArray expected = entry.json.getJSONArray("outputs"); + for (int i = 0; i < expected.length(); i++) { + if (!session.getOutputNames().contains(expected.getString(i))) + throw new IllegalArgumentException("Missing model output " + expected.getString(i)); + } + Model model = new Session(session, provider); + open.add(model); + return model; + } catch (Exception failure) { + session.close(); + throw failure; + } + } + } + + @Override public void close() { + for (Model model : new LinkedHashSet<>(open)) { + try { model.close(); } catch (Exception error) { android.util.Log.w("EdgeVision", "Session close", error); } + } + } + + private final class Session implements Model { + private final OrtSession session; + private long runs; + private double inferenceMs; + private boolean profilePending = true; + private String assignment; + + Session(OrtSession session, String provider) { + this.session = session; + assignment = provider + " (awaiting first run)"; + } + + @Override public Map run(String input, float[] data, long[] shape, Set outputs) throws Exception { + Map values = new LinkedHashMap<>(); + long start = System.nanoTime(); + try (OnnxTensor tensor = OnnxTensor.createTensor(environment, FloatBuffer.wrap(data), shape); + OrtSession.Result result = session.run(Map.of(input, tensor), outputs)) { + for (Map.Entry item : result) { + FloatBuffer buffer = ((OnnxTensor) item.getValue()).getFloatBuffer(); + float[] value = new float[buffer.remaining()]; + buffer.get(value); + values.put(item.getKey(), value); + } + } + inferenceMs = (System.nanoTime() - start) / 1e6; + runs++; + finishProfile(); + return values; + } + + private void finishProfile() { + if (!profilePending) return; + profilePending = false; + File profile = null; + try { + profile = new File(session.endProfiling()); + JSONArray events = new JSONArray(new String(Files.readAllBytes(profile.toPath()), java.nio.charset.StandardCharsets.UTF_8)); + Map nodes = new LinkedHashMap<>(); + for (int i = 0; i < events.length(); i++) { + org.json.JSONObject args = events.getJSONObject(i).optJSONObject("args"); + if (args == null) continue; + String provider = args.optString("provider"); + if (!provider.isEmpty()) nodes.merge(provider.replace("ExecutionProvider", ""), 1, Integer::sum); + } + assignment = nodes.isEmpty() ? "N/A (no profiled nodes)" : nodes.toString(); + android.util.Log.i("EdgeVision", "ORT node assignment " + assignment); + } catch (Exception error) { + assignment = "N/A (profiling unavailable)"; + android.util.Log.w("EdgeVision", "Profiling", error); + } finally { + if (profile != null) profile.delete(); + } + } + + @Override public String providerAssignment() { return assignment; } + @Override public long runs() { return runs; } + @Override public double lastInferenceMs() { return inferenceMs; } + @Override public void close() throws Exception { + finishProfile(); + session.close(); + open.remove(this); + } + } +} diff --git a/src/SFace.java b/src/SFace.java new file mode 100644 index 0000000..1f5993b --- /dev/null +++ b/src/SFace.java @@ -0,0 +1,70 @@ +package com.it_screen.edgevision; + +import android.graphics.Bitmap; +import android.graphics.Matrix; + +final class SFace extends ImageModel { + private static final float[] REFERENCE = { + 38.2946f, 51.6963f, 73.5318f, 51.5014f, 56.0252f, 71.7366f, + 41.5493f, 92.3655f, 70.7299f, 92.2041f + }; + + SFace(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception { + super(session, entry); + } + + VisitMemory.Sample sample(Bitmap frame, Face face, java.util.function.IntPredicate needsAngle) throws Exception { + float[] points = face.landmarks; + if (points == null || face.confidence < 0.72f || + Math.min(face.box.width() * frame.getWidth(), face.box.height() * frame.getHeight()) < 64) return null; + for (int i = 0; i < points.length; i++) { + if (!Float.isFinite(points[i]) || points[i] < 0 || + points[i] >= (i % 2 == 0 ? frame.getWidth() : frame.getHeight())) return null; + } + float dx = points[2] - points[0], dy = points[3] - points[1]; + float eyeDistanceSquared = dx * dx + dy * dy; + if (eyeDistanceSquared < 20 * 20) return null; + float nosePosition = ((points[4] - points[0]) * dx + (points[5] - points[1]) * dy) / eyeDistanceSquared; + if (nosePosition < -0.05f || nosePosition > 1.05f) return null; + int angle = nosePosition < 0.34f ? 0 : nosePosition > 0.66f ? 2 : 1; + if (!needsAngle.test(angle)) return null; + Matrix alignment = align(points); + float[] aligned = points.clone(); + alignment.mapPoints(aligned); + double error = 0; + for (int i = 0; i < aligned.length; i++) error += Math.pow(aligned[i] - REFERENCE[i], 2); + if (error > 500) return null; + java.util.Map output = runAligned(frame, alignment); + if (output == null) return null; + float[] vector = output.get("fc1"); + double norm = 0; + for (float value : vector) norm += value * value; + if (vector.length != 128 || !Double.isFinite(norm) || norm <= 0) return null; + norm = Math.sqrt(norm); + for (int i = 0; i < vector.length; i++) vector[i] /= norm; + return new VisitMemory.Sample(vector, angle); + } + + private Matrix align(float[] points) { + float x = 0, y = 0, u = 0, v = 0; + for (int i = 0; i < points.length; i += 2) { + x += points[i] / 5; + y += points[i+1] / 5; + u += REFERENCE[i] / 5; + v += REFERENCE[i+1] / 5; + } + float a = 0, b = 0, scale = 0; + for (int i = 0; i < points.length; i += 2) { + float px = points[i] - x, py = points[i+1] - y; + float qx = REFERENCE[i] - u, qy = REFERENCE[i+1] - v; + a += px * qx + py * qy; + b += px * qy - py * qx; + scale += px * px + py * py; + } + a /= scale; + b /= scale; + Matrix transform = new Matrix(); + transform.setValues(new float[]{a, -b, u - a*x + b*y, b, a, v - b*x - a*y, 0, 0, 1}); + return transform; + } +} diff --git a/src/VideoSource.java b/src/VideoSource.java new file mode 100644 index 0000000..e530320 --- /dev/null +++ b/src/VideoSource.java @@ -0,0 +1,12 @@ +package com.it_screen.edgevision; + +import android.graphics.Bitmap; + +interface VideoSource extends AutoCloseable { + interface Listener { + void frame(Bitmap frame, String resolution, double cameraFps, long sourceDrops); + void error(String description); + } + void start(Listener listener); + @Override void close(); +} diff --git a/src/VisionModels.java b/src/VisionModels.java new file mode 100644 index 0000000..8dbf6a0 --- /dev/null +++ b/src/VisionModels.java @@ -0,0 +1,176 @@ +package com.it_screen.edgevision; + +import android.graphics.Bitmap; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.RectF; +import java.util.*; +import org.json.JSONArray; + +interface FaceDetector { + List detect(Bitmap frame, float threshold) throws Exception; +} + +interface AgeEstimator { + Integer age(Demographics result); +} + +interface GenderEstimator { + String gender(Demographics result, float threshold); +} + +final class Face { + final RectF box; + final float confidence; + final float[] landmarks; + Face(RectF box, float confidence, float[] landmarks) { + this.box = box; + this.confidence = confidence; + this.landmarks = landmarks; + } + + float overlap(Face other) { + RectF intersection = new RectF(box); + if (!intersection.intersect(other.box)) return 0; + float area = intersection.width() * intersection.height(); + return area / (box.width() * box.height() + other.box.width() * other.box.height() - area); + } +} + +final class Demographics { + final Integer age; + final String gender; + final float confidence; + Demographics(Integer age, String gender, float confidence) { + this.age = age; + this.gender = gender; + this.confidence = confidence; + } +} + +abstract class ImageModel { + final InferenceEngine.Model session; + final int width, height; + private final String input; + private final Set outputs = new LinkedHashSet<>(); + private final Bitmap buffer; + private final Canvas canvas; + private final Paint filter = new Paint(Paint.FILTER_BITMAP_FLAG); + private final int[] pixels; + private final float[] tensor; + + ImageModel(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception { + this.session = session; + input = entry.input().getString("name"); + width = entry.input().getInt("width"); + height = entry.input().getInt("height"); + if (width <= 0 || height <= 0 || width > 1024 || height > 1024) + throw new IllegalArgumentException("Invalid adapter dimensions"); + JSONArray names = entry.json.getJSONArray("outputs"); + for (int i = 0; i < names.length(); i++) outputs.add(names.getString(i)); + buffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); + canvas = new Canvas(buffer); + pixels = new int[width * height]; + tensor = new float[3 * pixels.length]; + } + + Map run(Bitmap frame, Rect crop, RectF destination) throws Exception { + buffer.eraseColor(android.graphics.Color.BLACK); + canvas.drawBitmap(frame, crop, destination, filter); + return infer(false, null); + } + + Map runAligned(Bitmap frame, android.graphics.Matrix transform) throws Exception { + buffer.eraseColor(android.graphics.Color.BLACK); + canvas.drawBitmap(frame, transform, filter); + buffer.getPixels(pixels, 0, width, 0, 0, width, height); + // Measure local detail around the eyes and nose, away from the crop edges. + double sum = 0, squares = 0; + int count = 0; + for (int y = 42; y < 87; y += 2) { + for (int x = 30; x < 83; x += 2) { + int i = y * width + x; + int response = 4 * green(i) - green(i-1) - green(i+1) - green(i-width) - green(i+width); + sum += response; + squares += response * response; + count++; + } + } + if (squares / count - Math.pow(sum / count, 2) < 18) return null; + return infer(true, null); + } + + Map runNormalized(Bitmap frame, android.graphics.Matrix transform, float[] means) throws Exception { + buffer.eraseColor(android.graphics.Color.BLACK); + canvas.drawBitmap(frame, transform, filter); + buffer.getPixels(pixels, 0, width, 0, 0, width, height); + return infer(true, means); + } + + private int green(int index) { return (pixels[index] >> 8) & 255; } + + private Map infer(boolean rgb, float[] means) throws Exception { + if (!rgb) buffer.getPixels(pixels, 0, width, 0, 0, width, height); + for (int i = 0; i < pixels.length; i++) { + int pixel = pixels[i]; + int first = rgb ? (pixel >> 16) & 255 : pixel & 255; + int third = rgb ? pixel & 255 : (pixel >> 16) & 255; + int second = (pixel >> 8) & 255; + tensor[i] = means == null ? first : (first - means[0]) / 256f; + tensor[i + pixels.length] = means == null ? second : (second - means[1]) / 256f; + tensor[i + 2 * pixels.length] = means == null ? third : (third - means[2]) / 256f; + } + return session.run(input, tensor, new long[]{1, 3, height, width}, outputs); + } +} + +final class YuNet extends ImageModel implements FaceDetector { + YuNet(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception { super(session, entry); } + + @Override public List detect(Bitmap frame, float threshold) throws Exception { + float scale = Math.min((float) width / frame.getWidth(), (float) height / frame.getHeight()); + float drawnWidth = frame.getWidth() * scale; + float drawnHeight = frame.getHeight() * scale; + Map result = run(frame, null, new RectF(0, 0, drawnWidth, drawnHeight)); + List candidates = new ArrayList<>(); + for (int stride : new int[]{8,16,32}) { + float[] cls = result.get("cls_" + stride); + float[] obj = result.get("obj_" + stride); + float[] bbox = result.get("bbox_" + stride); + float[] points = result.get("kps_" + stride); + int cols = width / stride; + for (int i = 0; i < cls.length; i++) { + float score = (float) Math.sqrt(clamp(cls[i], 1) * clamp(obj[i], 1)); + if (score < threshold) continue; + int p = 4 * i; + float cx = (i % cols + bbox[p]) * stride; + float cy = (i / cols + bbox[p + 1]) * stride; + float halfW = (float) Math.exp(bbox[p + 2]) * stride / 2; + float halfH = (float) Math.exp(bbox[p + 3]) * stride / 2; + RectF rect = new RectF(clamp(cx - halfW, drawnWidth) / drawnWidth, + clamp(cy - halfH, drawnHeight) / drawnHeight, + clamp(cx + halfW, drawnWidth) / drawnWidth, clamp(cy + halfH, drawnHeight) / drawnHeight); + if (rect.width() <= 0 || rect.height() <= 0) continue; + float[] landmarks = null; + if (points != null) { + landmarks = new float[10]; + for (int j = 0; j < 5; j++) { + landmarks[2*j] = (i % cols + points[10*i + 2*j]) * stride / scale; + landmarks[2*j+1] = (i / cols + points[10*i + 2*j+1]) * stride / scale; + } + } + candidates.add(new Face(rect, score, landmarks)); + } + } + candidates.sort(Comparator.comparingDouble((Face face) -> face.confidence).reversed()); + List accepted = new ArrayList<>(); + for (Face face : candidates) { + if (accepted.stream().noneMatch(other -> face.overlap(other) > 0.3)) accepted.add(face); + if (accepted.size() == 32) break; + } + return accepted; + } + + private static float clamp(float value, float max) { return Math.max(0, Math.min(max, value)); } +} diff --git a/src/VisitMemory.java b/src/VisitMemory.java new file mode 100644 index 0000000..6c6d000 --- /dev/null +++ b/src/VisitMemory.java @@ -0,0 +1,116 @@ +package com.it_screen.edgevision; + +import java.util.Comparator; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +final class VisitMemory { + private static final float MATCH = 0.55f; + private static final float MARGIN = 0.08f; + private static final long DECISION_MS = 2500; + private final Map visits = new HashMap<>(); + + static final class Sample { + final float[] vector; + final int angle; + Sample(float[] vector, int angle) { this.vector = vector; this.angle = angle; } + } + + static final class Decision { + final boolean repeat; + final String reason; + Decision(boolean repeat, String reason) { this.repeat = repeat; this.reason = reason; } + } + + static final class Candidate { + int visit; + int previousMatch; + int misses; + long started = -1; + long lastProbe = -1000; + } + + private static final class Visit { + final Map templates = new HashMap<>(); + long seen; + + float similarity(float[] probe) { + float maximum = -1; + for (float[] vector : templates.values()) { + float dot = 0; + for (int i = 0; i < probe.length; i++) dot += probe[i] * vector[i]; + maximum = Math.max(maximum, dot); + } + return maximum; + } + } + + void expire(long now, long window) { + visits.values().removeIf(visit -> now - visit.seen >= window); + } + + boolean needsAngle(Candidate candidate, int angle) { + Visit visit = visits.get(candidate.visit); + return visit == null || !visit.templates.containsKey(angle); + } + + void refresh(Candidate candidate, Sample sample, long now) { + Visit visit = visits.get(candidate.visit); + if (visit == null) return; + visit.seen = now; + if (sample != null && (visit.templates.isEmpty() || visit.similarity(sample.vector) >= MATCH)) { + visit.templates.putIfAbsent(sample.angle, sample.vector); + } + } + + Decision decide(int trackId, Candidate candidate, Sample sample, Set active, long now) { + if (candidate.started < 0) candidate.started = now; + if (sample != null) { + int best = 0; + float bestScore = -1, runnerUp = -1; + for (Map.Entry entry : visits.entrySet()) { + float score = entry.getValue().similarity(sample.vector); + if (score > bestScore) { + runnerUp = bestScore; + bestScore = score; + best = entry.getKey(); + } else runnerUp = Math.max(runnerUp, score); + } + if (bestScore >= MATCH && bestScore - runnerUp >= MARGIN && !active.contains(best)) { + if (candidate.previousMatch == best) { + candidate.visit = best; + visits.get(best).seen = now; + return new Decision(true, "совпадение подтверждено"); + } + candidate.previousMatch = best; + candidate.misses = 0; + } else { + candidate.previousMatch = 0; + candidate.misses = bestScore < MATCH - MARGIN ? candidate.misses + 1 : 0; + if (best == 0 || candidate.misses >= 2) + return newVisit(trackId, candidate, sample, now, "совпадений в окне нет"); + if (bestScore >= MATCH && active.contains(best)) + return newVisit(trackId, candidate, sample, now, "совпавший визит уже в кадре"); + } + } + if (now - candidate.started >= DECISION_MS) + return newVisit(trackId, candidate, sample, now, "совпадение не подтверждено"); + return null; + } + + private Decision newVisit(int trackId, Candidate candidate, Sample sample, long now, String reason) { + if (visits.size() >= 256) { + visits.entrySet().stream().min(Comparator.comparingLong(entry -> entry.getValue().seen)) + .ifPresent(entry -> visits.remove(entry.getKey())); + } + Visit visit = new Visit(); + visit.seen = now; + if (sample != null) visit.templates.put(sample.angle, sample.vector); + visits.put(trackId, visit); + candidate.visit = trackId; + return new Decision(false, reason); + } + + void clear() { visits.clear(); } +} diff --git a/tools/check-production-assets.py b/tools/check-production-assets.py new file mode 100644 index 0000000..bafd1ce --- /dev/null +++ b/tools/check-production-assets.py @@ -0,0 +1,46 @@ +"""Fail closed for unreviewed model manifests, model assets and runtime binaries.""" +import hashlib +import json +from pathlib import Path +import sys + +root = Path(__file__).resolve().parents[1] +assets = root / "assets" +models = assets / "models" +lock = json.loads((root / "license-lock.json").read_text()) +required_rights = ("commercialUse", "modificationAllowed", "redistributionAllowed", "productionAllowed") +allowed_licenses = {"MIT", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "BSD-3-Clause"} + + +def check(condition, message): + if not condition: + sys.exit("Production license gate: " + message) + + +def digest(path): + return hashlib.sha256(path.read_bytes()).hexdigest() + + +inventory = {p.name for p in models.glob("*.json")} +check(inventory == set(lock["models"]), "manifest inventory differs from reviewed lock") +expected_assets = set(inventory) +for name, approved_hash in lock["models"].items(): + model = json.loads((models / name).read_text()) + filename = Path(model["file"]).name + artifact = models / filename + expected_assets.add(filename) + check(model["file"] == f"models/{filename}" and artifact.suffix == ".onnx", f"{name} invalid artifact path") + check(model["license"] in allowed_licenses and model["licenseVerification"] == "verified" and + all(model.get(right) is True for right in required_rights), f"{name} does not grant all required rights") + notice = assets / model["licenseNotice"] + check(model["licenseEvidence"].startswith("https://") and notice.parent == assets / "notices" and + notice.is_file(), f"{name} license evidence and local notice are required") + check(artifact.is_file() and artifact.stat().st_size == model["size"] and + model["sha256"] == approved_hash == digest(artifact), f"{name} model bytes differ from reviewed lock") +check({p.name for p in models.iterdir()} == expected_assets, "unexpected content in models/") +packaged = {p.relative_to(assets).as_posix(): p for p in assets.rglob("*") if p.is_file()} +check(set(packaged) == set(lock["assetInventory"]), "APK asset inventory differs from reviewed lock") +for name, path in packaged.items(): + check(digest(path) == lock["assetInventory"][name], f"{name} differs from reviewed asset lock") +check(digest(root / "build/ort.aar") == lock["runtimeAarSha256"], "unreviewed runtime AAR") +print("Production license gate passed") diff --git a/tools/nnapi-devices.c b/tools/nnapi-devices.c new file mode 100644 index 0000000..1f33d14 --- /dev/null +++ b/tools/nnapi-devices.c @@ -0,0 +1,22 @@ +#include +#include + +int main(void) { + uint32_t count = 0; + int result = ANeuralNetworks_getDeviceCount(&count); + printf("NNAPI getDeviceCount status=%d count=%u\n", result, count); + if (result != ANEURALNETWORKS_NO_ERROR) return 1; + for (uint32_t i = 0; i < count; i++) { + ANeuralNetworksDevice *device = NULL; + int32_t type = 0; + int64_t level = 0; + const char *name = NULL, *version = NULL; + if (ANeuralNetworks_getDevice(i, &device) != ANEURALNETWORKS_NO_ERROR) return 2; + ANeuralNetworksDevice_getName(device, &name); + ANeuralNetworksDevice_getVersion(device, &version); + ANeuralNetworksDevice_getType(device, &type); + ANeuralNetworksDevice_getFeatureLevel(device, &level); + printf("%u: name=%s version=%s type=%d feature=%lld\n", i, name, version, type, (long long) level); + } + return 0; +}