自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 TypeError: ‘numpy.int64‘ object is not iterable ,‘int‘ object is not iterable

TypeError: 'numpy.int64' object is not iterable ,'int' object is not iterable

2022-12-07 21:52:16 1025

原创 注意力机制的实现-senet

注意力机制可以作为一个小技巧在我们的网络中实现,具体的实现方式如下(以pytorch)为例1.se-netsenet是典型的通道注意力机制,具体原理如下import torchimport torch.nn as nnclass se_block(nn.Module): def __init__(self, channel=512, ratio=16): super(se_block, self).__init__() self.avg_pool

2022-05-06 11:17:42 938

原创 Pytorch官方教程:快速上手训练自己的数据集

代码所使用的网络结构图:1.数据集下载#datesets.py(名称)import torchimport torchvisionimport torchvision.transforms as transformstransform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])batch_s..

2022-05-04 21:28:59 1116

原创 pytorch-grad-cam的实现

参考链接jacobgil/pytorch-grad-cam: Many Class Activation Map methods implemented in Pytorch for CNNs and Vision Transformers. Examples for classification, object detection, segmentation, embedding networks and more. Including Grad-CAM, Grad-CAM++, Score-CAM, A

2022-04-30 15:49:37 462

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除