GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AmirooR/Pairwise-Similarity-knowledge-Transfer-WSOL: Source code for Pairwise Similarity Knowledge Transfer for Weakly Supervised Object Localization paper

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
rcnn_attention
rcnn_attention
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

Pairwise Similarity Knowledge Transfer for Weakly Supervised Object Localization

This repository is the official implementation of ECCV 2020 paper: Pairwise Similarity Knowledge Transfer for Weakly Supervised Object Localization paper. It also includes the original implementation of the ICCV 2019 paper: Learning to Find Common Objects Across Few Image Collections.

Requirements

This project is tested using python2.7 and tensorflow-1.4. Other dependencies are:

  1. tensorflow models. Note that this is the exact commit we used. However, newer commits may also work as well.
  2. tensorpack. Note that this is a clone of a specific commit of the original tensorpack. Our code only works with this commit.
  3. OpenGM You need to compile the python extension along with external TRWS and add the compiled shared library to your python environment.

Setup

  1. Clone this repository.
git clone [email protected]:AmirooR/Pairwise-Similarity-knowledge-Transfer-WSOL.git
  1. Add current folder(Pairwise-Similarity-knowledge-Transfer-WSOL), tensorflow_model's research research/slim, and tensorpack directories to your python path.

  2. Copy the proto files in rcnn_attention/protos/ directory in tensorflow model's research/object_detection/protos and follow their instructions to setup object detection api and compile the proto files with protobuf compiler.

  3. You should have extracted inception resnet features and dataset split .pkl files in correct paths to run imagenet experiments. As an example look at this line in this config file. Contact us if you want the features and the dataset split files or need instructions on that.

Training and evaluation

  1. Train agnostic pairwise model on source split using this config.
cd rcnn_attention/wrn
bash train.sh mil/imagenet/inception_resnet/agnostic_model/agnostic_box_multi_fea/k2n0

This will create the agnostic pairwise model. Next step will use this model for warmup initialization (look at the train_dir in the script).

  1. Warmup initialization: change directory to rcnn_attention/wrn folder and run the aggregate.sh script. This will save multifea_K8_init.pkl dataset using Greedy Tree method by finding common object across groups of 8 images. Check the config files pointed in the script and set the correct paths in them.
cd rcnn_attention/wrn
bash aggregate.sh
  1. Run multifold training, warmup with Greedy Inference, and ICM inference loop using imagenet_multifold_train_and_evaluate_loop_icm.sh script in wrn folder.
bash imagenet_multifold_train_and_evaluate_loop_icm.sh

This will save the resulting datasets and write the infos/evaluation in the respective log folders for each fold and iteration.

Cite

If you use this code, please cite our papers:

@inproceedings{rahimi20pairwise,
 author = {Rahimi, Amir and Shaban, Amirreza and Ajanthan, Thalaiyasingam and Hartley, Richard and Boots, Byron},
 booktitle = {Proceedings of the European Conference on Computer Vision ({ECCV})},
 title = {Pairwise Similarity Knowledge Transfer for Weakly Supervised Object Localization},
 year = {2020}
}
@inproceedings{shaban19learning,
 author = {Shaban, Amirreza and Rahimi, Amir and Bansal, Shray and Gould, Stephen and Boots, Byron and Hartley, Richard},
  booktitle = {Proceedings of the International Conference on Computer Vision ({ICCV})},
  title = {Learning to Find Common Objects Across Few Image Collections},
  year = {2019}
}

About

Source code for Pairwise Similarity Knowledge Transfer for Weakly Supervised Object Localization paper

Resources

Readme
Activity

Stars

6 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.