Comments (2)
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":
- comment this line of code so the pre-training is discarded.
- model.load_weights('pre-train.h5')
- 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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from covid-caps.