
pytorch 实验
� rk
这个作者很懒,什么都没留下…
展开
-
解决【SDK is not defined for Run Configuration】
描述:没有新建项目文件,直接在储存目录里打开了这个文件,试图运行,但是报错感觉遇到这个问题的人比较少,其实只是一个很小的问题导致的。原创 2022-11-01 11:06:48 · 65608 阅读 · 0 评论 -
【无标题】
项目场景:Pytorch细粒度图像分类1.读取csv文档内容1.1读取csv文档内容1.2拆解每一行的内容2.转换成完整路径3.转换成标准标签4.这才开始使用torch自带的DataLoader5.图像预处理。原创 2022-10-28 10:12:40 · 116 阅读 · 0 评论 -
【适合小白,非常详细2022python环境配置---anaconda和pycharm的安装和使用】
描述:重装电脑之后,所有的环境都需要重新配置,在此记录,以帮助那些和我一样从0开始的小白。原创 2022-10-20 21:27:56 · 487 阅读 · 0 评论 -
解决【IndexError: invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()`】
tensor.item()tensor.item<T>()原创 2022-07-06 18:10:37 · 714 阅读 · 0 评论 -
解决【Expected all tensors to be on the same device, but found at least two devices,】
Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)例如:例如:原创 2022-06-15 15:52:49 · 46810 阅读 · 0 评论 -
解决【TypeError:can‘t convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy 】
type error原创 2022-06-15 15:48:35 · 6575 阅读 · 0 评论