Coder Social home page Coder Social logo

mr7495 / covid-ct-code Goto Github PK

View Code? Open in Web Editor NEW
61.0 3.0 29.0 17.16 MB

Fully automated code for Covid-19 detection from CT scans from paper: https://doi.org/10.1016/j.bspc.2021.102588

Home Page: https://doi.org/10.1016/j.bspc.2021.102588

Jupyter Notebook 93.15% Python 6.85%
deep-learning deep-neural-networks convolutional-neural-networks computer-vision covid-19 covid19-data ct-scans radiology automated-machine-learning covid-ct

covid-ct-code's People

Contributors

mr7495 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

Watchers

 avatar  avatar  avatar

covid-ct-code's Issues

Automated_covid_detector_validation: img_name is not defined

This notebook doesn't run because of this error. I can't figure out what you meant by img_name here as it has indeces.

NameError Traceback (most recent call last)
in ()
15 full_add=os.path.join(r,file)
16 if 'SR_2' in full_add: #Select only SR_2 folder
---> 17 index1=img_name.index('patient')
18 index2=img_name.index('_SR')
19 if 'covid' in full_add:

NameError: name 'img_name' is not defined

How do you select the layers? If backbone model is InceptionV3 which layers to select?

Greetings. Thank you for your exellent work.
I am curious, in your code in COVID_Train&Validation.ipynb, you selected 3 layers from the ResNet50V2 framework ["conv4_block1_preact_relu", "conv5_block1_preact_relu", "post_relu"], what are the reasons of selecting these layers? And if I want to replace the backbone model to InceptionV3, what will be the layers selected in that model?
If you coudl kindly help me out I would be most grateful.

Can you provide your dataset like folder style?

Dear Mohamad,
First, I thank you for your great job.
I am also interested in the topic Covid-19 CT scan now. I am having very promising models to predict Covid-19 CT scans. So I am trying to expand my experiments via external validity. Can you give me your ENTIRE dataset like folder style, e.g. Covid-19 folder containing only images classified from Covid-19 patients, and Non-Covid-19 folder consiting of scans from healthy subjects?
Best regards.
Linh

numpy.AxisError: axis 2 is out of bounds for array of dimension 3

Additionally, I am receiving the following error:

This is for the COVID and Validation code, when it gets the predicted class index.

The error is for the following line:
pred_ind=np.argmax(net.predict(np.expand_dims(np.expand_dims(img,axis=0),axis=3))[0])

Do you know what might be the problem? Thanks!

Function call stack: keras_scratch_graph

I really like your code and I am trying to run it with the given dataset. I am trying to use my NVIDIA gpu, but whenever I do, it runs into memory problems and raises the following error:

2020-11-22 21:40:39.870589: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.09GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.

Function call stack: keras_scratch_graph at the end.

However, when I reduce the batchsize, the error stops, but I would want to run this code with a larger batchsize. Do you know what may be the problem?

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.