![](https://img-blog.csdnimg.cn/2b325295688948daa32c7fdac8d9f369.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
pytorch框架
pytorch基本理论及使用方法,同时记录跑模型遇到的问题及解决方法
Cy12024
这个作者很懒,什么都没留下…
展开
-
Pytorch-lightning简介
pytorch-lighting(简称pl),它其实就是一个轻量级的PyTorch库,用于高性能人工智能研究的轻量级PyTorch包装器。缩放你的模型,而不是样板。原创 2023-08-31 17:54:23 · 689 阅读 · 0 评论 -
conda 常用命令
阿里云 http://mirrors.aliyun.com/pypi/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/升级Anaconda需先升级conda。原创 2023-08-18 16:38:34 · 2669 阅读 · 0 评论 -
ForkingPickler(file, protocol).dump(obj)BrokenPipeError: [Errno 32] Broken pipe问题解决
跑VAE模型时遇到的问题。原创 2023-08-16 21:27:50 · 406 阅读 · 0 评论 -
问题:RuntimeError: Distributed package doesn‘t have NCCL built in
python在windows环境下dist.init_process_group(backend, rank, world_size)处报错‘RuntimeError: Distributed package doesn’t have NCCL built in’原创 2023-08-16 21:01:58 · 641 阅读 · 3 评论 -
pytorch报错torch.cuda.is_available()结果false处理方法
进入torch官网:https://pytorch.org/get-started/locally/ 选择合适的版本进行安装,可以直接复制下面的Command命令到conda虚拟环境,重新安装torch即可。要跑VAE模型,重新安装了torch,GPU就无法使用了,我重新安装了 cuda,torch.cuda.is_available()的结果依然是False。配置项目环境不要重新安装torch,因为在windows环境下,重新安装torch,会是CPU版本的。原创 2023-08-16 20:24:35 · 262 阅读 · 0 评论 -
pytorch_lightning报错 You requested gpu: [1],But your machine only has: [0]
gpu:[1]指代的gpu的标号,如果笔记本中只包含一个GPU,一般序号为[0].所以无法找到程序指定的GPU。找到定义模型使用GPU的地方,修改GPU使用的序号。将图中的gpus:[1]修改为gpus:[0]此问题可以有效解决,亲测有效!原创 2023-08-16 20:32:37 · 596 阅读 · 0 评论