Auto build and publish onnxruntime docker image
367
This tool enables new users to quickly get started working with model conversions and inference in the ONNX model format.
By following the steps below, you will launch a pre-configured Jupyter Notebook environment and explore starter scripts for model conversion from various machine learning frameworks to the ONNX format, using ONNX Runtime for inference.
Ensure that you have Docker installed, or are using Docker for Linux containers if on Windows.
Obtain the ONNX ecosystem docker image. There are two ways to do this:
Pull the pre-built Docker image from DockerHub
docker pull onnx/onnx-ecosystemClone this repository. Navigate to the onnx-docker/onnx-ecosystem folder and build the image locally with the following command.
docker build . -t onnx/onnx-ecosystemRun the Docker container to launch a Jupyter notebook server. The -p argument forwards your local port 8888 to the exposed port 8888 for the Jupyter notebook environment in the container.
docker run -p 8888:8888 onnx/onnx-ecosystemRun docker ps in a separate terminal session to get the container name and verify your container is successfully running.
Navigate to the url that the Jupyter Notebook is running on and use the provided token in the console.
http://127.0.0.1:8888/?token=RANDOMSTRINGHEREEither upload a file using the Jupyter Notebook "Upload" button on the top right, or docker cp the required model files to the container.
docker cp PATH_TO_FILE CONTAINER_ID:/scripts/NAME_OF_FILEYou can also copy a whole folder using docker.
docker cp PATH_TO_FOLDER/. CONTAINER_ID:/NAME_OF_FOLDERNavigate to the converter_scripts folder in the container and edit the appropriate notebook to convert your model to ONNX, or test the accuracy of the conversion using ONNX Runtime.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This container was based on an original ONNX Converter docker container from 2018. The updated ecosystem docker container is the result of the efforts of the ONNXMLTools team.
Content type
Image
Digest
Size
3.2 GB
Last updated
over 7 years ago
docker pull randysheriff/onnxruntime