
pytorch
furuit
机会是留给有实力,物竞天择,优胜劣汰,弱肉强食,适者生存。
展开
-
conda 使用小记
最近比较扎心,需要同时安装pytorch和TensorFlow。我们买的GPU最现在比较顶配的,结果安装的cuda版本比较高。然后通过conda install tensorflow-gpu=1.9 方式懒人安装法。后面再用conda 安装pytorch自动升级了我的TensorFlow。可是我不想升级TensorFlow啊,真心无语。我们安装的pytorch版本较早,然后他对应的cu...原创 2019-11-05 16:11:23 · 935 阅读 · 0 评论 -
Win10环境下安装pytorch
注意:Pytorch0.4.0才开始支持Windowspip install pytorch torchvision这个是安装命令,不用多说下面看看遇到的问题:pip指令不对pip版本过低反正就是不行,但是我换Linux一次就搞定,不得不说对win兼容性真差劲。方法2——Condaconda create -n pytorch4 python=3.5 activ...原创 2019-05-26 20:42:25 · 2440 阅读 · 0 评论 -
pytorch 打印网络参数
import utilsVGG = networks.VGG19('vgg19.pth', feature_mode=True)VGG.to(device)VGG.eval()print('---------- Networks initialized -------------')utils.print_network(VGG)print('--------------------...转载 2019-06-05 14:55:40 · 7367 阅读 · 0 评论 -
volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead. molded_images = Variable(molded_images, volatile=True)修改为# Wrap in variable with torch.no_...原创 2019-05-29 10:19:00 · 9024 阅读 · 1 评论 -
ImportError: No module named apex
调用了一个pytorch的项目,结果里面要用英伟达的apex,https://github.com/NVIDIA/apex看的有点不明白,好在有个网友建议也可以直接下载文件夹 importhttps://github.com/nvidia/apex#__NO_LINK_PROXY__或者直接git clone https://www.github.com/nvidia/ap...原创 2019-05-29 16:03:43 · 6330 阅读 · 3 评论 -
nn.ReflectionPad2d()
ReflectionPad2d()类似于一种 镜像填充说说公式,及属性具体官方文档很详细不过不够通俗= =官方文档上 是这个表示第一眼有点不理解= =但是输出是H(out)= H(in)+ paddingTop + paddingBottomW(out)= W(in)+ paddingLeft + paddingR...转载 2019-06-01 16:02:00 · 1160 阅读 · 0 评论