Code Monkey home page Code Monkey logo

ci-cam's Introduction

CI-CAM

This project is the code of "Improving Weakly-supervised Object Localization \ via Causal Intervention" that has been accepted as a full research paper for presentation at the ACM Multimedia 2021 conference. avatar

Code entry

run.sh

cub vgg16 train

python -u train2.py --gpu 3 --backbone vgg16 --danet 1 --backbone_rate 0.1 --function quadratic --decay_epoch 14 --decay_rate 0.5 --dataset cub --epoch 100 --batch_size 6 --non_local 1 --shared_classifier 1 --combination 1 --input_size 304 --seg_thr 0.0 --lr 0.0005 --decay 1 --attention 1 --pretrain 1 >> log/train_cub_vgg.txt 2>&1

cub vgg16 test

python -u tmp_test.py --gpu 3 --backbone vgg16 --function quadratic --dataset cub --batch_size 6 --non_local 1 --shared_classifier 1 --combination 1 --input_size 304 --seg_thr 0.0 --attention 1 --pretrain 1 --model_path trained_weights/net_train_vgg16_cub.pth >> log/test_cub_vgg.txt 2>&1 &

cub inceptionV3 train

python -u train2.py --gpu 3 --backbone inceptionV3 --crop_size 299 --attention_size 17 --backbone_rate 1.0 --function quadratic --decay_epoch 50 --decay_rate 0.5 --dataset cub --epoch 100 --batch_size 6 --non_local 1 --shared_classifier 1 --combination 1 --input_size 450 --seg_thr 0.0 --lr 0.0001 --decay 1 --attention 1 --pretrain 1 >> log/train_cub_inception_T_8_6.txt 2>&1 &

cub inceptionV3 test

python -u tmp_test.py --gpu 2 --backbone inceptionV3 --crop_size 299 --attention_size 17 --backbone_rate 0.5 --function quadratic --decay_epoch 100 --decay_rate 0.5 --dataset cub --epoch 200 --batch_size 6 --non_local 1 --shared_classifier 1 --combination 1 --input_size 450 --seg_thr 0.0 --lr 0.0001 --decay 1 --attention 1 --pretrain 1 --model_path trained_weights/net_train_inceptionV3_cub.pth >> log/test_cub_inception.txt 2>&1 &

ci-cam's People

Contributors

shaofeifei11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.