Skip to content
/ HBPASM Public

A pytorch implementation of Fine-Grained Classification via Hierarchical Bilinear Pooling with Aggregated Slack Mask (HBPASM).

Notifications You must be signed in to change notification settings

Ylexx/HBPASM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HBPASM

A pytorch implementation of Fine-Grained Classification via Hierarchical Bilinear Pooling with Aggregated Slack Mask (HBPASM).

Requirements

  • python 2.7
  • pytorch 0.4.1

Train

Step 1.

Step 2.

  • Set the path to the dataset and resnet parameters in the code.

Step 3. Train the fc_layer and proj-layer only.

  • python train_firststep.py

Step 4. Fine-tune all layers. It gets an accuracy of around 87% on CUB-200-2011 when using resnet-34.

  • python train_finetune.py

image Visualization of independent masks and the aggregated mask generated on three convolutional layers. The aggregated mask generates better RoIs with fewer background regions owing to the combination of the multiple mask maps.

About

A pytorch implementation of Fine-Grained Classification via Hierarchical Bilinear Pooling with Aggregated Slack Mask (HBPASM).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages