Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tutorial notebook for ONNX inference #2062

Merged
merged 3 commits into from Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Expand Up @@ -170,4 +170,10 @@ COPY ./rastervision_pytorch_learner/ /opt/src/rastervision_pytorch_learner/
RUN pip install sagemaker_pytorch_training==2.8.1
ENV SAGEMAKER_TRAINING_MODULE=sagemaker_pytorch_container.training:main

# Install a onnxruntime-gpu version compatible with CUDA 12. Specifying
# --extra-index-url in requirements.txt seems to cause problems witht the
# RTD build.
RUN pip uninstall onnxruntime-gpu -y && \
pip install --upgrade onnxruntime-gpu==1.17 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

CMD ["bash"]
1 change: 1 addition & 0 deletions docs/conf.py
Expand Up @@ -140,6 +140,7 @@ def setup(app: 'Sphinx') -> None:
# more natural img/tensorboard.png path does not work.
'usage/tutorials/train': '_images/tensorboard.png',
'usage/tutorials/lightning_workflow': '_images/lightning-logo.png',
'usage/tutorials/onnx_inference': '_images/ONNX_Runtime_logo_dark.png',
}
nbsphinx_prolog = r"""
{% set docpath = env.doc2path(env.docname, base=False) %}
Expand Down
Binary file added docs/img/ONNX_Runtime_logo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/folium_vector_preds.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/usage/tutorials/index.rst
Expand Up @@ -24,3 +24,4 @@ The following tutorials highlight many of the things you can do with Raster Visi
prechipped_datasets
stac_plus_osm
temporal
onnx_inference