下面是Pytorch配套的视频教程:
Pytorch 快速实战教程:0_Pytorch实战前言_哔哩哔哩_bilibili
Pytorch 分割实战教程:介绍一个图像分割的网络搭建利器,Segmentation model PyTorch_哔哩哔哩_bilibili
运行libtorch 的demo 时,加载模型文件后一直提示如下错误
问题原因:
- libtorch 的debug/ release 版本用混了,debug 下只能用libtorch 的debug 版本,release 下只能用release 版本
- 也有人说是用的版本不对,但我如下配置都可以正常运行
1. 环境配置
-> pytorch + cuda : 1.12.1+cu113
-> libtorch: 1.12.1 1.13.1