![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络实现
狂奔的菜鸡
知行合一,格物致知。
展开
-
解决:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is
执行代码时,发生了如下错误:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device(‘cpu’) to map your storages to the CPU.原创 2020-08-02 14:32:44 · 5582 阅读 · 4 评论 -
THE MUTUAL-CHANNEL LOSS (MC-LOSS,附代码分析)
目录在这一节中,我们提出了互信道损失(MC-Loss)功能,有效地导航模型,聚焦于不同的区分区域,而不需要任何细粒度的限定框/部件注释。在训练步骤中结合提出的MC-Loss的网络如图2所示。图2所示:使用MC-Loss的典型细粒度分类网络的框架。MC-Loss函数考虑输出特征通道作为输入,并使用超参数支持与交叉熵(CE)损失函数集合在一起。对于给定的输入图像,首先通过将图像输入基网络提取特征图;例如,VGG16或ResNet18。令所提取的feature map记为FFF∈RN×W×HR^{N×W原创 2020-07-07 18:18:06 · 2426 阅读 · 9 评论 -
DenseNet的Keras代码实现
下面代码显示了如何使用keras实现DenseNet网络DenseNet121 : dense_block == [6, 12, 24, 16]DenseNet169 : dense_block == [6, 12, 32, 32]DenseNet201 : dense_block == [6, 12, 48, 32]下面举了一个DenseNet201 的例子import osfrom...原创 2020-04-02 13:30:19 · 2437 阅读 · 0 评论 -
keras实现yoloV3网络结构
目录yoloV3网络1.DBL2. resblock_body3. Darknent-534. y1、y2和y3yoloV3网络下面为yoloV3网络图:为了方便理解,放了来自木盏的yoloV3的网络结构图DBL: 即代码中的Darknetconv2d_BN_Leaky,是yolo_v3的基本组件。就是卷积+BN+Leaky relu。resn:n代表数字,有res1,res2, ...原创 2020-04-24 19:30:57 · 681 阅读 · 0 评论