Giter Site home page Giter Site logo

aaaawt / sd-aanet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cv516buaa/sd-aanet

0.0 0.0 0.0 2.09 MB

The code is for the paper "A Self-Distillation Embedded Supervised Affinity Attention Model for Few-Shot Segmentation"

Shell 0.68% Python 99.32%

sd-aanet's Introduction

SD-AANet

The code is for the paper "A Self-Distillation Embedded Supervised Affinity Attention Model for Few-Shot Segmentation" [arxiv]

Overview

  • config/ includes config files
  • lists/ includes train/validation list files
  • model/ includes related model and module
  • util/ includes data processing, seed initialization

Usage

Requirements

python==3.7, torch==1.8, scipy, opencv-python, tensorboardX

Dataset

Please prepare related datasets:

Specify the paths of datasets in config files, including data root and list files paths

Pre-trained models

We provide 8 pre-trained models: 4 ResNet-50 based models for Pascal-5i and 4 ResNet-101 based models for COCO-20i

  • Download the pre-trained models [Pre-trained models]
  • Specify the split setting, shot setting and path of weights in config files

Test and Train

  • Use the following command for testing

    sh test.sh {data} {split_backbone}
    

E.g. Test SD-AANet with ResNet50 on the split 0 of PASCAL-5i:

sh test.sh pascal split0_resnet50
  • Use the following command for training

    sh train.sh {data} {split_backbone}
    

E.g. Train SD-AANet with ResNet50 on the split 0 of PASCAL-5i:

sh train.sh pascal split0_resnet50

Citation

If you have any question, please discuss with me by sending email to [email protected]

Please consider citing the paper if you find it useful:

@ARTICLE{10057432,
  author={Zhao, Qi and Liu, Binghao and Lyu, Shuchang and Chen, Huojin},
  journal={IEEE Transactions on Cognitive and Developmental Systems}, 
  title={A Self-Distillation Embedded Supervised Affinity Attention Model for Few-Shot Segmentation}, 
  year={2023},
  pages={1-1},
  doi={10.1109/TCDS.2023.3251371}}

References

The code is based on PFENet and kd-pytorch. Thanks for their great works!

sd-aanet's People

Contributors

cv516buaa 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.