training_references.rst 1.5 KB

1234567891011121314151617181920212223242526272829
  1. Training references
  2. ===================
  3. On top of the many models, datasets, and image transforms, Torchvision also
  4. provides training reference scripts. These are the scripts that we use to train
  5. the :ref:`models <models>` which are then available with pre-trained weights.
  6. These scripts are not part of the core package and are instead available `on
  7. GitHub <https://github.com/pytorch/vision/tree/main/references>`_. We currently
  8. provide references for
  9. `classification <https://github.com/pytorch/vision/tree/main/references/classification>`_,
  10. `detection <https://github.com/pytorch/vision/tree/main/references/detection>`_,
  11. `segmentation <https://github.com/pytorch/vision/tree/main/references/segmentation>`_,
  12. `similarity learning <https://github.com/pytorch/vision/tree/main/references/similarity>`_,
  13. and `video classification <https://github.com/pytorch/vision/tree/main/references/video_classification>`_.
  14. While these scripts are largely stable, they do not offer backward compatibility
  15. guarantees.
  16. In general, these scripts rely on the latest (not yet released) pytorch version
  17. or the latest torchvision version. This means that to use them, **you might need
  18. to install the latest pytorch and torchvision versions**, with e.g.::
  19. conda install pytorch torchvision -c pytorch-nightly
  20. If you need to rely on an older stable version of pytorch or torchvision, e.g.
  21. torchvision 0.10, then it's safer to use the scripts from that corresponding
  22. release on GitHub, namely
  23. https://github.com/pytorch/vision/tree/v0.10.0/references.