![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PyTorch
张欣-男
人,最宝贵的是生命;它,给予我们只有一次。人的一生,应当这样度过:当他回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞耻;这样在他临死的时候,他就能够说:我已经把我的整个生命和全部精力,都献给了这个世界上最壮丽的事业——为了人类的解放而斗争
展开
-
使用python3和pytorch1.7.1运行dface
0 准备工作运行环境:Alienware GTX1070Ubuntu 18.04cuda 10.1创建虚拟环境:conda create -n py37_dface python=3.7conda activate py37_dfacepip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.ht原创 2021-01-26 09:45:10 · 209 阅读 · 0 评论 -
使用python3和pytorch1.7.1运行dface
0 准备工作运行环境:Alienware GTX1070Ubuntu 18.04cuda 10.1创建虚拟环境:conda create -n py37_dface python=3.7conda activate py37_dfacepip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.ht原创 2021-01-24 14:55:23 · 307 阅读 · 2 评论 -
《Python深度学习基于PyTorch》源代码
源代码github地址:https://github.com/ZhangXinNan/DL-with-Python-and-PyTorch原创 2020-08-19 09:52:32 · 1452 阅读 · 0 评论 -
pytorch_examples训练imagenet问题——RuntimeError: NCCL error。。。
参考代码:pytorch/examples/imagenet错误1:# (py36_pytorch)python main.py \> -a resnet18 \> --lr 0.1 \> --dist-url 'tcp://127.0.0.1:23456' \> --dist-backend 'nccl' \> ...原创 2018-12-24 15:26:28 · 8979 阅读 · 6 评论 -
pytorch保存和加载模型 saving_loading_models
torch.save 保存序列化对象到硬盘里。torch.load 使用pickle的开箱工具,取出反序列化的pickled object 到内存里。torch.nn.Module.load_state_dict 加载模型参数字典使用一个反序列化的state_dictstate_dicttorch.nn.Module模型的可学习参数包含在model的参数里,可用model.pa...翻译 2019-02-16 20:32:39 · 418 阅读 · 0 评论