Coder Social home page Coder Social logo

fus-cnns_covid-19's Introduction

Fus-CNNs_COVID-19 (Pytorch)

Introduction:

This is the code to repoduce the study of Chest X-ray image phase features for improved diagnosis of COVID-19 using convolutional neural network from IJCAR 2021. Please cite our study if you are using this dataset and referring to our method.

The highest mean accuracy on sub-dataset one of COVID-Ti is 95.57% (+/- 0.3)

Usage:

  • Dataset:

Dataset: Kaggle. (Please use same fold name CXR_ijcar_mix and Enh_ijcar_mix)

5 fold validation was used to evaludate our method and mean accuracy was reported. The ratio of train:val:test is 60%:20%:20%. The texts files in k5_train_val_test fold are train, validation, and test files are each fold. There are five columns in each text file. First column is subject name, second is root for saving dataset (Please change coresspondingly), third is image name, forth is class (0: normal; 1: pneumonia; 2:COVID-19), and fifth is source dataset. Please refer to Kaggle for detailed informaction of source datasets.

  • Train

    • Train a mono model:

      python --main.py --action=train or python --main.py --action=train --dataset=Enh_ijcar_mix

      (The default dataset is CXR_ijcar_mix. If you would like to use enhanced images, please add --dataset=Enh_ijcar_mix The default network is Res50. You can change to any other investigated networks in our study by adding --network=name of network, such as --network=Alexnet)

    • Train a middle-fusion model:

      python --main.py --action=middlefusion

    • Train a latefusion model:

      python --main.py --action=latefusion

  • Test

    • Test a mono model:

      python --main.py --action=test or python --main.py --action=test --dataset=Enh_ijcar_mix

    • Test middle fusion model or late fusion model:

      python --main.py --action=test_middlefusion or python --main.py --action=test_latefusion

fus-cnns_covid-19's People

Contributors

endiqq avatar

Watchers

 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.