![](https://img-blog.csdnimg.cn/20191109154041922.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
pytorch
文章平均质量分 97
yywxl
怎么会有这么菜的人呢?
展开
-
torch2caffe
在语义分割的网络中往往涉及到上采样这样一个过程,而原生的caffe不支持常用的双线性插值,我们希望将caffe的双线性插值的权重赋给torch,或者直接计算出双线性插值的权重赋值给torch和caffe对哦,我直接算出来赋值给权重不就可以了,为什么要折腾这么久caffe?看了以后,暂时的认知时插值和反卷积是不一样的,可能由于 1. 反卷积的向外padding;2. 内插这个操作到底是怎么实现...原创 2020-05-07 12:09:31 · 488 阅读 · 0 评论 -
my torch voyage
随便记录一下torch的使用原创 2020-04-10 09:00:22 · 131 阅读 · 0 评论 -
论文-matting
背景虚化,主要技术可能是语义分割或者matting,最终定位在matting上原创 2020-03-09 10:21:57 · 1428 阅读 · 0 评论 -
pytorch-loss
文章目录KL散度PIKDKL散度先简单介绍下KL散度,一直都只知道KL散度是衡量两个分布之间的距离度量,但是没有什么涉猎,前段时间为了在知识蒸馏过程中衡量学生和教师网络中间的特征层之间的分布,直接使用torch.nn.KLDivLoss,kl(feature_s, feature_t)是负值,即使两个相同的特征层之间KL散度也是-1.这令我非常困惑。当时采用了论文1的方法代替,暂且称之为pi...原创 2020-01-16 11:52:31 · 1430 阅读 · 0 评论 -
深度学习-norm
有关集中几种norm的分类,暂且看下面几张图,有空可以参考这个博客具体看看原创 2020-01-07 16:06:35 · 677 阅读 · 0 评论 -
论文-知识蒸馏
今天看一篇沈老师他们的工作,是知识蒸馏(knowledge distillation)相关github传送Structured Knowledge Distillation for Dense PredictionPrevious knowledge distillation strategies used for dense prediction tasks often direct...原创 2020-01-06 16:01:37 · 2314 阅读 · 1 评论 -
html-一些遇到的东西
文章目录最近在看cyclegan pytorch代码,其中有用visdom可视化模块,用到一些网页显示的东西,且记录之<tr> <td> </td> </tr><tr></tr> 表示行开始和行结束<td></td> 表示列开始和列结束...原创 2019-12-04 11:42:37 · 70 阅读 · 0 评论 -
pytorch-学习率调整-torch.optim.lr_scheduler
文章目录`torch.optim.lr_scheduler`torch.optim.lr_schedulerpytorch提供了以下学习率调整的方式,转自pytorch官网Prior to PyTorch 1.1.0, the learning rate scheduler was expected to be called before the optimizer’s update; 1...原创 2019-12-02 16:28:15 · 7901 阅读 · 4 评论 -
深度学习图像预处理
在ptorch训练模型的时候,一般度输入图像做:随机裁剪随机翻转Totensor最近使用pytorch写data.Dataset类,以前都是学习别人的程序,对这些操作写一个类,将所有数据变为numpy,可以处理各种想要处理的数据,但是现在预处理的数据全是图片的,所以想用PIL做一些简单的操作pytorchimport torch.utils.data as dataimport...原创 2019-11-22 13:52:58 · 1273 阅读 · 0 评论 -
pytorch一些用到的函数记录
文章目录torch.range troch.arangetorch.range troch.arangeimport torchx = torch.range(0, 4)y = torch.arange(0, 4)print(x, x.dtype)print(y, y.dtype)tensor([0., 1., 2., 3., 4.]) torch.float32tensor([...原创 2019-11-07 13:36:41 · 293 阅读 · 0 评论