![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
watersink
你怎么对这个世界,世界就会还你一个怎么样的它
展开
-
上采样方法大PK(Upsample,Interpolate,resize,Transposed convolution,deconv,Unpool,Pixelshuffle)
目录Upsample:Interpolate,resize:Transposed convolution,deconv:Unpool:Pixelshuffle:Upsample:Pytorch example:import torchimport torch.nn as nnimport torch.nn.functional as Finput = torch.arange(1, 5).view(1, 1, 2, 2).float()print(input)#原创 2020-07-24 11:41:51 · 10357 阅读 · 8 评论 -
pytorch技巧
pytorch模型网络结构可视化:安装:apt-get install graphvizpip3 install graphvizpip3 install pydot-ng测试:import torchfrom torchvision import modelsfrom torchviz import make_dotmodel = models.alexnet(...原创 2019-08-05 18:24:00 · 869 阅读 · 0 评论