文章分类 -  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 阅读全文
posted @ 2021-01-31 21:54 菜鸡一枚 阅读(276) 评论(0) 推荐(0)
摘要:首先确定自己的cuda和python版本号。 由于之前我是用pip安装过pytorch,所以选择pip的方法。而且用pip还可以先把安装源文件下载到电脑上进行按照。这非常方便。 下载好后,直接安装。出现一个小问题。要删掉一个文件夹,才能安装成功。 安装TensorBoardX 阅读全文
posted @ 2019-06-21 11:03 菜鸡一枚 阅读(488) 评论(0) 推荐(0)
摘要:from __future__ import print_functionimport torch,torchvisionnet = torchvision.models.densenet121()print(net) 阅读全文
posted @ 2017-12-26 16:47 菜鸡一枚 阅读(2918) 评论(0) 推荐(0)