Coder Social home page Coder Social logo

margin_calibration's Introduction

Pytorch implementation of COPLE-Net with the proposed margin calibration method.

Running dependencies: Python 3.7 (Anaconda) Pytorch 1.1 tqdm

Before running the code, please edit the values of root in datasets/covid19_lesion.py and datasets/robotic_instrument.py, which are the image/data directories.

To train the segmentation model, simply run the command with the arguments like follows:

python -W ignore train.py
--dataset robotic_instrument
--task parts
--margin_loss
--date 0907
--batch_size 6
--max_epoch 50
--adamw
--lr 1e-4
--exp robotic_instrument_parts_mg

To evaluate the model, just run:

python -W ignore eval.py
--dataset robotic_instrument
--task parts
--dump_imgs
--method mg
--snapshot <MODEL_CHECKPOINT_PATH>

If you feel this work useful to your research, please kindly cite the paper as follows:

@article{yu2022distribution,
        title={Distribution-Aware Margin Calibration for Semantic Segmentation in Images},
        author={Yu, Litao and Li, Zhibin and Xu, Min and Gao, Yongsheng and Luo, Jiebo and Zhang, Jian},
        journal={International Journal of Computer Vision},
        volume={130},
        number={1},
        pages={95--110},
        year={2022},
        publisher={Springer}
        }

margin_calibration's People

Contributors

yutao1008 avatar

Stargazers

Chengzhi Jiang avatar Zhibin Li avatar

Watchers

James Cloos avatar  avatar

Forkers

suyanzhou626

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.