Paper Reading - 3、FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flows

FastFlow 是一个基于二维归一化流的概率分布估计器。它可以用做任何的深度特征提取器的插件模块,比如ResNet 和 vision transformer, 用于无监督异常检测和定位。在训练阶段,FastFlow 学习将输入视觉特征转换位易于处理的分布;在推理阶段,它评估失败异常的可能性。

模型结构

在这里插入图片描述
1、特征提取模块
backbone 充当特征提取器,不需要训练,不需要更新参数 requires_grad==false。
2、norms 模块
对于 resnet,norms 是可训练的 LayerNorm。
3、flows模块
可逆神经网络。(参考FrEIA)

复现

环境:

# 先前环境: sudo pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html

Resource:
论文解读:https://blog.csdn.net/qq_45700830/article/details/122690958
https://blog.csdn.net/weixin_46782905/article/details/119958725
https://blog.csdn.net/qq_35030874/article/details/122426454

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值