文章分类 - PyTorch(Windows)
摘要:C:\Users\Administrator\.condarc channels: - defaultsshow_channel_urls: truedefault_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
阅读全文
posted @ 2024-10-31 21:16
菜鸡一枚
摘要:1、安装新版本的anaconda 2、换为国内源 # 配置国内源,方便安装Numpy,Matplotlib等 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda conf
阅读全文
摘要:首先确定自己的cuda和python版本号。 由于之前我是用pip安装过pytorch,所以选择pip的方法。而且用pip还可以先把安装源文件下载到电脑上进行按照。这非常方便。 下载好后,直接安装。出现一个小问题。要删掉一个文件夹,才能安装成功。 安装TensorBoardX
阅读全文
摘要:from __future__ import print_functionimport torch,torchvisionnet = torchvision.models.densenet121()print(net)
阅读全文

浙公网安备 33010602011771号