Code Monkey home page Code Monkey logo

Comments (2)

ShahinSHH avatar ShahinSHH commented on May 23, 2024 1

First of all, forget about warnings for now. You'll usually see lots of them when using with Tensorflow.

About your issue:
This model is pre-trained on X-ray images so it can't produce reasonable results for CT scans.
However, if you want to continue with this implementation, you can train your model from scratch completely based on CT scans but you should do the followings in the "binary.after.py":

  1. comment this line of code so the pre-training is discarded.
  • model.load_weights('pre-train.h5')
  1. Make sure that the size and dimension of your input are compatible with the model, otherwise you can change the input size in this line of code:
  • input_image = Input(shape=(None, None, 3))
    Note that CT scan is a 3D data containing several 2D images (slices). This model can take only 2D images as an input so you have to feed it with 2D images (slices) only.

from covid-caps.

Harsh9524 avatar Harsh9524 commented on May 23, 2024

Thank you @ShahinSHH for your kind response.

I trained my dataset from scratch using the binary.py file and tried normalizing my CT Scan image dataset by using the data_augmentation() function in binary.py file and reduced the learning rate to 1e-4 while keeping the dataset untouched and it’s working now.

Best Regards,
Harsh

from covid-caps.

Related Issues (3)

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.