Views
No views yet
| Model | Download | Download (with sample test data) | ONNX version | Opset version |
|---|---|---|---|---|
| version-RFB-320 | 1.21 MB | 1.92 MB | 1.4 | 9 |
| version-RFB-640 | 1.51 MB | 4.59 MB | 1.4 | 9 |
| version-RFB-320-int8 | 0.44 MB | 1.2 MB | 1.14 | 12 |
1 x 3 x height x width with mean values 127, 127, 127 and scale factor 1.0 / 128. Input image have to be previously converted to RGB format and resized to 320 x 240 pixels for version-RFB-320 model (or 640 x 480 for version-RFB-640 model).image_path to the image you would like to score:1image = cv2.cvtColor(orig_image, cv2.COLOR_BGR2RGB)
2image = cv2.resize(image, (320, 240))
3image_mean = np.array([127, 127, 127])
4image = (image - image_mean) / 128
5image = np.transpose(image, [2, 0, 1])
6image = np.expand_dims(image, axis=0)
7image = image.astype(np.float32)(1 x 4420 x 2) and (1 x 4420 x 4) of scores and boxes.wget https://github.com/onnx/models/raw/main/vision/body_analysis/ultraface/models/version-RFB-320.onnx1import onnx
2from onnx import version_converter
3model = onnx.load('version-RFB-320.onnx')
4model = version_converter.convert_version(model, 12)
5onnx.save_model(model, 'version-RFB-320-12.onnx')1cd neural-compressor/examples/onnxrt/body_analysis/onnx_model_zoo/ultraface/quantization/ptq_static
2bash run_tuning.sh --input_model=path/to/model \ # model path as *.onnx
3--dataset_location=/path/to/data \
4--output_model=path/to/save