NITEC ResNet-18 INT8 — Camera Contact
This model classifies an RGB face crop as camera contact or no camera contact. It is the NITEC ResNet-18 checkpoint converted to an A8W8, statically quantized ExecuTorch program using the XNNPACK backend.
Artifact
| Item | Value |
|---|---|
| File | cam_contact_nitec_rs18-a8w8-xnnpack.pte |
| SHA-256 | 8e36c9127ce32827f44c5a25deaff6a642472672ab68b8a311fe0cda7f43fa4d |
| Size | 11,260,424 bytes |
| Runtime | ExecuTorch 1.1.0, XNNPACK backend |
| Input | FLOAT [1, 3, 224, 224], RGB NCHW |
| Output | FLOAT [1, 2] logits |
| Classes | 0: no contact; 1: contact |
See config.yaml for the complete inference recipe.
Example
By default, the example runs every face crop under samples/ and writes its
predicted classification under assets/. The bundled inputs cover both camera
contact and no camera contact.
| Input | Inferred visualization |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
python -m pip install --extra-index-url https://download.pytorch.org/whl/cpu \
executorch==1.1.0 torch==2.10.0 numpy pillow pyyaml
python example.py
python example.py samples/face-crop-0.png assets/custom-classification.png
The script parses config.yaml, making its shapes, resize and center-crop
behavior, normalization, class labels, and softmax postprocessing an executable
inference recipe. Image loading, preprocessing, ExecuTorch inference, output
postprocessing, visualization, and saving remain separate steps for reuse.
With ExecuTorch 1.1.0 on x86-64 CPU, this artifact classified crops 0 and 1 as
contact with probabilities 0.9793 and 0.9442, and crops 2 and 3 as
no contact with probabilities 1.0000 and 1.0000. These are the observed
artifact outputs and are not an accuracy or performance measurement.
Download
hf download Arm/nitec-resnet-18-int8-xnnpack-executorch \
cam_contact_nitec_rs18-a8w8-xnnpack.pte \
--local-dir .
Intended use and limitations
- Intended for camera-contact classification on already detected, tightly cropped faces.
- It is not a face detector and does not accept a full scene directly.
- Performance may vary with pose, occlusion, lighting, crop quality, and camera placement.
References
About this version
Original Model: NITEC ResNet-18 by Thorsten Hempel et al. - Repository
Optimization/conversion: Arm-Optimized version for execution on Arm-based platforms.
Converted/optimized by: Arm
License: The published artifacts in this repository are distributed under Apache-2.0.
This repository contains a converted or optimized version of the Original Model (the “Optimized Model”). The Original Model has been converted or optimized as described above for execution on Arm-based platforms.
No retraining or fine-tuning of the Original Model was performed as part of the conversion or optimization. The conversion or optimization was not intended to change the Original Model’s behavior or intended use.
Original Model and Documentation
For information about the Original Model, including its development, training data, intended uses, limitations and other relevant information, please refer to the Original Model repository. Information in that repository was provided by the original developer or other third parties and, unless expressly stated otherwise, has not been independently verified by Arm.
Licenses and Third-Party Terms
Use of the Original Model and the Optimized Model is subject to the applicable licenses, usage restrictions and other terms identified above and in the relevant repositories. Publication of the Optimized Model does not grant any rights beyond those provided under the applicable license terms.
You are responsible for reviewing those terms and ensuring that your use of the Original Model and the Optimized Model is permitted.
Purpose of this Release
The Optimized Model is provided as a reference implementation to demonstrate and evaluate execution and performance on Arm-based systems. It is not a production-ready or supported solution.
Arm’s publication of the Optimized Model does not constitute an endorsement or certification of the Original Model or a representation that the Optimized Model is suitable for production use or any particular purpose.
To the fullest extent permitted by applicable law (i) the Optimized Model is provided “as is.” Arm makes no representations or warranties that the Original Model, the Optimized Model or their outputs are accurate, safe, secure, non-infringing, legally compliant, suitable for production use or fit for any particular purpose; and (ii) Arm will not be liable for any loss or damage arising from or in connection with the Optimized Model, its use or its outputs.
You are responsible for independently evaluating the Optimized Model, its outputs and its suitability for your intended use, including compliance with applicable legal, regulatory, safety and security requirements.
Arm does not commit to provide ongoing support, maintenance or updates for the Optimized Model. Any use of or reliance on the Optimized Model or its outputs is at your own risk.
- Downloads last month
- 813







