
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 · 957 阅读 · 0 评论 -
Win10环境下安装pytorch
注意:Pytorch0.4.0才开始支持Windows pip install pytorch torchvision 这个是安装命令,不用多说 下面看看遇到的问题: pip指令不对 pip版本过低 反正就是不行,但是我换Linux一次就搞定,不得不说对win兼容性真差劲。 方法2——Conda conda create -n pytorch4 python=3.5 activ...原创 2019-05-26 20:42:25 · 2453 阅读 · 0 评论 -
pytorch 打印网络参数
import utils VGG = 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 · 7386 阅读 · 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 · 9037 阅读 · 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 · 6337 阅读 · 3 评论 -
nn.ReflectionPad2d()
ReflectionPad2d()类似于一种 镜像填充 说说公式,及属性具体官方文档很详细不过不够通俗= = 官方文档上 是这个 表示第一眼有点不理解= = 但是输出是 H(out)= H(in)+ paddingTop + paddingBottom W(out)= W(in)+ paddingLeft + paddingR...转载 2019-06-01 16:02:00 · 1168 阅读 · 0 评论