![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Image Models
for image
essenge
顺势而为
展开
-
【Attention】GCNet (Non-local + SENet)
Non-Local Block: 简化版的Non-Local Blocl: 进一步减少简化版non-local block的计算量: query-independent GC block表示为: 参考: https://blog.csdn.net/breeze_blows/article/details/104878928原创 2021-02-04 20:46:09 · 276 阅读 · 1 评论 -
【Attention】Non-local Neural Networks
https://arxiv.org/abs/1711.07971 分析文章的意义不仅仅是熟悉文章,而是了解其泛化思想。 首先对输入的 feature map X 进行线性映射(说白了就是 1×1×1 卷积,来压缩通道数),然后得到 θ,φ,g 特征; 通过reshape操作,强行合并上述的三个特征除通道数外的维度,然后对θ和φ进行矩阵点乘操作,得到类似协方差矩阵的东西(这个过程很重要,计算出特征中的自相关性,即得到每帧中每个像素对其他所有帧所有像素的关系); 然后对自相关特征进行 Softma原创 2021-02-04 18:32:32 · 119 阅读 · 0 评论 -
【Attention】CBAM中的SAM
class Spartial_Attention(nn.Module): def __init__(self, kernel_size): super(Spartial_Attention, self).__init__() assert kernel_size % 2 == 1, "kernel_size = {}".format(kernel_size) padding = (kernel_size - 1) // 2 se.原创 2021-01-31 09:07:57 · 245 阅读 · 0 评论 -
【Attention】SE-Net
参考: https://www.cnblogs.com/bonelee/p/9030092.html原创 2021-01-31 08:24:05 · 170 阅读 · 0 评论 -
MobileNet
原创 2021-01-31 08:06:29 · 64 阅读 · 0 评论 -
RNN,BRNN,LSTM,GRU,DRNN
细想BP算法,CNN 我们会发现, 他们的输出都是只考虑前一个输入的影响而不考虑其它时刻输入的影响, 比如简单的猫,狗,手写数字等单个物体的识别具有较好的效果. 但是, 对于一些与时间先后有关的, 比如视频的下一时刻的预测,文档前后文内容的预测等, 这些算法的表现就不尽如人意了.因此, RNN就应运而生了。 像图中这样,从左到右完成前向传播 def rnn_cell_forward(xt, a_prev, parameters): Wax = parameters["Wax"] Waa原创 2020-11-25 20:20:37 · 485 阅读 · 0 评论 -
ResNet
import torch.nn as nn import torch class BasicBlock(nn.Module): expansion = 1 def __init__(self, in_channel, out_channel, stride=1, downsample=None): super(BasicBlock, self).__init__() self.conv1 = nn.Conv2d(in_channels=in_channel原创 2021-01-27 10:03:22 · 90 阅读 · 0 评论 -
GoogLeNet
import torch.nn as nn import torch import torch.nn.functional as F class GoogLeNet(nn.Module): def __init__(self, num_classes=1000, aux_logits=True, init_weights=False): super(GoogLeNet, self).__init__() self.aux_logits = aux_logits .原创 2021-01-26 20:51:30 · 75 阅读 · 0 评论 -
VGG网络:网络改造的首选基础网络
import torch.nn as nn import torch class VGG(nn.Module): def __init__(self, features, num_classes=1000, init_weights=False): super(VGG, self).__init__() self.features = features self.classifier = nn.Sequential( nn.D原创 2021-01-26 15:54:17 · 903 阅读 · 0 评论 -
AlexNet
import torch.nn as nn import torch class AlexNet(nn.Module): def __init__(self, num_classes=1000, init_weights=False): super(AlexNet, self).__init__() self.features = nn.Sequential( nn.Conv2d(3, 48, kernel_size=11, stride=4原创 2021-01-26 15:54:07 · 48 阅读 · 0 评论