Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Code for eccv2020 paper: Fixing Localization Errors to Improve Image Classification

NotificationsYou must be signed in to change notification settings

GuoleiSun/HNC_loss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

This repository contains the original code and the links for data and pretrained models. If you have any questions aboutour paper, please feel free to contactMe (sunguolei.kaust AT gmail.com)

block images

HNC loss

To use our loss, please first generate CAMs following thisline.

Our loss can be found inHNC_mse andHNC_kd. The usage of loss can be found in thisline, where our loss takes two arguments: CAMs and ground-truth label.

Note: 1. you may need to tune lambda, which is the weight balancing both HNC loss and cross entropy loss. Higher weight means higher influence of HNC loss; 2. you may need to tune k, which is the number of negative CAMs to suppress. Smaller k means focusing on more confusing classes.

ImageNet classification

1). prepareImageNet dataset

2). for running commands, please refer to './imagenet/running-script.sh'

Citation

If you find this repository helpful, please consider citing:

@article{sun2020fixing,

title={Fixing Localization Errors to Improve Image Classification},

author={Sun, Guolei and Khan, Salman and Li, Wen and Cholakkal, Hisham and Khan, Fahad and Van Gool, Luc},

journal={ECCV},

year={2020}}

Acknowledgements

This repository is based onCBAM, thanks for their excellent work.

About

Code for eccv2020 paper: Fixing Localization Errors to Improve Image Classification

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp