Code Monkey home page Code Monkey logo

covid-19-detection's Introduction

A Weakly-supervised Framework for COVID-19 Classification and Lesion Localization from Chest CT

By Xinggang Wang, Xianbo Deng, Qing Fu, Qiang Zhou, Jiapei Feng, Hui Ma, Wenyu Liu, Chuansheng Zheng.


This project aims at providing a deep learning algorithm to detect COVID-19 from chest CT using weak label. And the souce code of training and testing is provided. If you have interests about more details, please check our paper (IEEE Transactions on Medical Imaging).


Before running the code, please prepare a computer with NVIDIA GPU, then install Anaconda, PyTorch and NVIDIA CUDA driver. Once the environment and dependent libraries are installed, please check the README.md files in 2dunet and deCoVnet directories.

  • In the directory of "2dunet", the code mainly aims to segment the lung region to obtain all lung masks.

  • In the directory of "deCoVnet", the code does the classification task of whether a CT volume being infected.

  • In the directory of "lesion_loc", the code mainly implements the lesion localization.

  • The file "20200212-auc95p9.txt" contains the output probabilities of our pretrained deCovNet on our testing set.

The pretrained models are currently available at Google Drive, unet and deCoVnet.

If you have any other questions, please contact Xinggang Wang.

LICENSE

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You should have received a copy of the license along with this work. If not, see http://creativecommons.org/licenses/by-nc-sa/4.0/.

covid-19-detection's People

Contributors

sydney0zq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

covid-19-detection's Issues

Image has wrong mode in dataste_ops.py using deCoVnet

Hi, while train.py from deCoVnet I'm getting an error from dataset_ops.py at line 108
# Color Transforms def colorop(img, bright, contrast): _img = TF.adjust_brightness(img, bright) _img = TF.adjust_contrast(_img, contrast) return _img
the error is saying

ValueError: image has wrong mode

Image is a PIL image and bright is a float
image

preprocess-obtain-lungmasks

想问一下代码中
preprocess-obtain-lungmasks我用了自己的数据未能得到mask的结果,尝试了多个数据都是一样,想请问一下您我还有什么未注意到的地方吗
图片

Missing Train.py

Hi,
Thanks for sharing the code. But the train.py for deCoVnet is missing.

Datasets

Where can I find the images? NpyData directories contain only empty files

关于decovnet输入图片尺寸

我使用cropresize文件将图片resize为224*336尺寸,但是在decovnet训练时发生错误:RuntimeError: Given input size: (64x1x56x84). Calculated output size: (64x0x56x84). Output size is too small,问题出现在baseline_i3d.py的248行,请问这可能是什么原因导致的

First steps

Hello first, thank you for making your code available, can you help me?

I have a CT dataset and I don't know where I should put the images inside your project to run the code, can you explain what steps I should follow?

Thanks!

关于dicom to img

请问hu_window的大小选择有没有参照相关的理论依据?

谢谢

./lesion_loc/cam-mask.py 报错

245 行报错 model = import_module(f"model.{CLS_MODEL_UID}")
ModuleNotFoundError: No module named 'model' 。lesion_loc目录下缺少model文件夹

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.