# 转换教程

我们准备了几个Jupyter
notebook教程，展示如何将各种源格式（PyTorch的.pt和ONNX的.onnx）的模型转换为与你计划运行的RVC平台兼容的格式。所有这些教程都存储在[ai-tutorials仓库](https://github.com/luxonis/ai-tutorials/tree/main/conversion)中。

### Conversion of PyTorch Model

[本教程](https://github.com/luxonis/ai-tutorials/blob/main/conversion/pytorch_conversion.ipynb)展示了如何使用HubAI
SDK将预训练的ResNet18模型从PyTorch转换为RVC2/RVC4格式，以及在设备上运行转换后模型的方法。

### Conversion of ONNX Model

[本教程](https://github.com/luxonis/ai-tutorials/blob/main/conversion/onnx_conversion.ipynb)展示了如何使用HubAI
SDK将预训练的FFNet-40S模型从ONNX转换为RVC2/RVC4格式，以及在设备上运行转换后模型的方法。
