:orphan:
.. _sphx_glr_examples_apps:
Application Examples
====================
This contains the example applications and component definitions for TorchX.
These components and apps can be launched by themselves or part of a pipeline.
See the Pipelines Examples for how to use the components in a pipeline.
.. raw:: html
.. _sphx_glr_examples_apps_datapreproc:
Data Preprocessing Example
##########################
This is a simple TorchX app that downloads some data via HTTP, normalizes the
images via torchvision and then reuploads it via fsspec.
This examples has two Python files: the app which actually does the
preprocessing and the component definition which can be used with TorchX to
launch the app.
.. raw:: html
.. only:: html
.. figure:: /examples_apps/datapreproc/images/thumb/sphx_glr_component_thumb.png
:alt: Data Preprocessing Example Components
:ref:`sphx_glr_examples_apps_datapreproc_component.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/datapreproc/component
.. raw:: html
.. only:: html
.. figure:: /examples_apps/datapreproc/images/thumb/sphx_glr_datapreproc_thumb.png
:alt: Data Preprocessing App Example
:ref:`sphx_glr_examples_apps_datapreproc_datapreproc.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/datapreproc/datapreproc
.. raw:: html
.. _sphx_glr_examples_apps_lightning_classy_vision:
Lightning + Classy Vision Trainer Example
#########################################
This example consists of model training and interpretability apps that uses
PyTorch Lightning and ClassyVision. The apps have shared logic so are split
across several files.
You can see the different component definitions for the apps in the components
file.
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_profiler_thumb.png
:alt: Simple Logging Profiler
:ref:`sphx_glr_examples_apps_lightning_classy_vision_profiler.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/profiler
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_model_thumb.png
:alt: Tiny ImageNet Model
:ref:`sphx_glr_examples_apps_lightning_classy_vision_model.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/model
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_interpret_thumb.png
:alt: Model Interpretability App Example
:ref:`sphx_glr_examples_apps_lightning_classy_vision_interpret.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/interpret
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_train_thumb.png
:alt: Trainer App Example
:ref:`sphx_glr_examples_apps_lightning_classy_vision_train.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/train
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_data_thumb.png
:alt: Trainer Datasets Example
:ref:`sphx_glr_examples_apps_lightning_classy_vision_data.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/data
.. raw:: html
.. only:: html
.. figure:: /examples_apps/lightning_classy_vision/images/thumb/sphx_glr_component_thumb.png
:alt: Trainer Examples Components
:ref:`sphx_glr_examples_apps_lightning_classy_vision_component.py`
.. raw:: html
.. toctree::
:hidden:
/examples_apps/lightning_classy_vision/component
.. raw:: html
.. only :: html
.. container:: sphx-glr-footer
:class: sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: examples_apps_python.zip /home/runner/work/torchx/torchx/docs/source/examples_apps/examples_apps_python.zip>`
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: examples_apps_jupyter.zip /home/runner/work/torchx/torchx/docs/source/examples_apps/examples_apps_jupyter.zip>`
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_