- en: Training references id: totrans-0 prefs: - PREF_H1 type: TYPE_NORMAL zh: 训练参考 - en: 原文:[https://pytorch.org/vision/stable/training_references.html](https://pytorch.org/vision/stable/training_references.html) id: totrans-1 prefs: - PREF_BQ type: TYPE_NORMAL zh: 原文:[https://pytorch.org/vision/stable/training_references.html](https://pytorch.org/vision/stable/training_references.html) - en: On top of the many models, datasets, and image transforms, Torchvision also provides training reference scripts. These are the scripts that we use to train the [models](models.html#models) which are then available with pre-trained weights. id: totrans-2 prefs: [] type: TYPE_NORMAL zh: 除了许多模型、数据集和图像转换之外,Torchvision还提供训练参考脚本。这些脚本是我们用来训练[模型](models.html#models)的,然后这些模型就可以使用预训练的权重。 - en: These scripts are not part of the core package and are instead available [on GitHub](https://github.com/pytorch/vision/tree/main/references). We currently provide references for [classification](https://github.com/pytorch/vision/tree/main/references/classification), [detection](https://github.com/pytorch/vision/tree/main/references/detection), [segmentation](https://github.com/pytorch/vision/tree/main/references/segmentation), [similarity learning](https://github.com/pytorch/vision/tree/main/references/similarity), and [video classification](https://github.com/pytorch/vision/tree/main/references/video_classification). id: totrans-3 prefs: [] type: TYPE_NORMAL zh: 这些脚本不是核心包的一部分,而是在[GitHub](https://github.com/pytorch/vision/tree/main/references)上提供。我们目前为[分类](https://github.com/pytorch/vision/tree/main/references/classification)、[检测](https://github.com/pytorch/vision/tree/main/references/detection)、[分割](https://github.com/pytorch/vision/tree/main/references/segmentation)、[相似性学习](https://github.com/pytorch/vision/tree/main/references/similarity)和[视频分类](https://github.com/pytorch/vision/tree/main/references/video_classification)提供参考。 - en: While these scripts are largely stable, they do not offer backward compatibility guarantees. id: totrans-4 prefs: [] type: TYPE_NORMAL zh: 尽管这些脚本在很大程度上是稳定的,但它们不提供向后兼容性保证。 - en: 'In general, these scripts rely on the latest (not yet released) pytorch version or the latest torchvision version. This means that to use them, **you might need to install the latest pytorch and torchvision versions**, with e.g.:' id: totrans-5 prefs: [] type: TYPE_NORMAL zh: 一般来说,这些脚本依赖于最新(尚未发布)的pytorch版本或最新的torchvision版本。这意味着要使用它们,**您可能需要安装最新的pytorch和torchvision版本**,例如: - en: '[PRE0]' id: totrans-6 prefs: [] type: TYPE_PRE zh: '[PRE0]' - en: If you need to rely on an older stable version of pytorch or torchvision, e.g. torchvision 0.10, then it’s safer to use the scripts from that corresponding release on GitHub, namely [https://github.com/pytorch/vision/tree/v0.10.0/references](https://github.com/pytorch/vision/tree/v0.10.0/references). id: totrans-7 prefs: [] type: TYPE_NORMAL zh: 如果您需要依赖于较旧的稳定版本的pytorch或torchvision,例如torchvision 0.10,那么最好使用GitHub上对应发布的脚本,即[https://github.com/pytorch/vision/tree/v0.10.0/references](https://github.com/pytorch/vision/tree/v0.10.0/references)。