Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Inference section.
Model Name
Description
Description of model - What task does it address (i.e. object detection, image classification)? What is the main advantage or feature of this model's architecture?
All ONNX models must pass the ONNX model checker before contribution. The snippet of code below can be used to perform the check. If any errors are encountered, it implies the check has failed.
Contribute a Gradio Demo to ONNX Organization on Hugging Face
Model
Please submit new models with Git LFS by committing directly to the repository, and using relative links (i.e. model/vgg19-7.onnx) in the table above. In this file name example, vgg19 is the name of the model and 7 is the opset number.
Source
Source Framework ==> ONNX model
i.e. Caffe2 DenseNet-121 ==> ONNX DenseNet
Inference
Step by step instructions on how to use the pretrained model and link to an example notebook/code. This section should ideally contain:
Input
Input to network (Example: 224x224 pixels in RGB)
Preprocessing
Preprocessing required
Output
Output of network
Postprocessing
Post processing and meaning of output
Model Creation
Dataset (Train and validation)
This section should discuss datasets and any preparation steps if required.
Training
Training details (preprocessing, hyperparameters, resources and environment) along with link to a training notebook (optional).
Also clarify in case the model is not trained from scratch and include the source/process used to obtain the ONNX model.
Validation accuracy
Validation script/notebook used to obtain accuracy reported above along with details of how to use it and reproduce accuracy. Details of experiments leading to accuracy from the reference paper.
Test Data Creation
Creating test data for uploaded models can help CI to verify the uploaded models by ONNXRuntime utilties. Please upload the ONNX model with created test data (
test_data_set_0
) in the .tar.gz.Requirement
Usage
Example
The input/output .pb files will be produced under
temp/examples/test1/test_data_set_0
.More details
https://github.com/microsoft/onnxruntime/blob/master/tools/python/PythonTools.md
Update ONNX_HUB_MANIFEST.json for ONNX Hub
If this PR does update/add .onnx or .tar.gz files, please use
python workflow_scripts/generate_onnx_hub_manifest.py --target diff
to update ONNX_HUB_MANIFEST.json with according model information (especially SHA) for ONNX Hub.References
Link to paper or references.
Contributors
Contributors' names
License
Add license information - on default, Apache 2.0