开源软件名称(OpenSource Name):junsukchoe/ADL开源软件地址(OpenSource Url):https://github.com/junsukchoe/ADL开源编程语言(OpenSource Language):Python 99.9%开源软件介绍(OpenSource Introduction):Attention-based Dropout Layer for Weakly Supervised Object LocalizationAttention-based Dropout Layer for Weakly Supervised Object Localization Weakly Supervised Object Localization (WSOL) techniques learn the object location only using image-level labels, without location annotations. A common limitation for these techniques is that they cover only the most discriminative part of the object, not the entire object. To address this problem, we propose an Attention-based Dropout Layer (ADL), which utilizes the self-attention mechanism to process the feature maps of the model. The proposed method is composed of two key components: 1) hiding the most discriminative part from the model for capturing the integral extent of object, and 2) highlighting the informative region for improving the recognition power of the model. Based on extensive experiments, we demonstrate that the proposed method is effective to improve the accuracy of WSOL, achieving a new state-of-the-art localization accuracy in CUB-200-2011 dataset. We also show that the proposed method is much more efficient in terms of both parameter and computation overheads than existing techniques. ADL block diagram. The self-attention map is generated by channelwise average pooling of the input feature map. Based on the self-attention map, we produce a drop mask using thresholding and an importance map using a sigmoid activation, respectively. The drop mask and the importance map are selected stochastically at each iteration and applied to the input feature map. Please note that this figure illustrates the case when the importance map is selected. Getting StartedTensorpack implementation of Attention-Dropout Layer for Weakly Supservised Object Localization. Our implementation is based on these repositories: Imagenet Pre-trained models can be downloaded here: Requirements
Prepare datasetsImageNetTo prepare ImageNet data, download ImageNet "train" and "val" splits from
here and put the downloaded file on
Then, run the following command on
The structure of image files looks like
Corresponding annotation files can be found in here. CUBRun the following command to download original CUB dataset and extract the image
files on
The structure of image files looks like
Corresponding annotation files can be found in here. Training scriptFirst download pretrained models from here.
Currently, we provide ResNet50-SE
and VGG-16 networks.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论