Code Monkey home page Code Monkey logo

optic-nerve-cnn's People

Contributors

samuelmarks avatar seva100 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  avatar  avatar  avatar  avatar  avatar

optic-nerve-cnn's Issues

Crop dataset by optic disc?

Thanks for open-sourcing this.

Noticed you had this line in one of your notebooks:

512 px cropped by Optic Disc area and resized to 128 px images were used.

How about automating the crop of images by optic disc? - Was thinking to experiment with showing slightly more (like 15% extra), then to do another pass through all the images to make them equal pixel height and width.

Pre-processing

Can somebody please clearly state the preprocessing(cropping, resizing, CLAHE) steps taken ? I am not able to follow up. I understand the image augmentation techniques (random flips, rotations etc) deployed using generator.

one question

Unable to unzip after downloading. I hope there is a new link

This is only segmenting the cup

I was trying to replicate the results presented in the paper by following the procedure you have outlined. For some reason, no matter which weights I load from the 'models_weights' folder, and no matter how I crop the image, it only segments the cup and never segments the disc.

I tried running it on images from the RIM-ONE and DRIONS dataset images and it either didn't segment properly or segmented the cup.

Here are the preprocessing steps I followed for segmenting the disc:

  1. Change image scale to [0, 1]
  2. Resize image to 256x256
  3. Apply CLAHE using opencv function 'cv2.createCLAHE'

Then I passed the image into the model. Is there anything that I am missing or doing wrong?

How do I use the pre-trained model to run on my own Images.

I can run your U-Net, OD on DRIONS-DB (fold 0).ipynb with no problem using your pre-trained model. And for the dataset I didn't recreate it, I downloaded from the url you gave. So now I want to run this model on other images but i don't know how. Do I have to start at the beginning of recreating dataset just to run 1 of my image? Please help, I am new to coding

Failure in segmenting OD from DRIONS DB

I am using your

U-Net, OD on DRIONS-DB (fold 0)

notebook to simulate OD segmentation on DRIONS DB, It works perfectly fine when i use your pre-trained model from folder

05.03,02_40,U-Net light, on DRIONS-DB 256 px fold 0, SGD, high augm, CLAHE, log_dice loss

to segment images from your "DRIONS_DB.hdf5" But
When I load image from DRIONS db, and predict segmentation using the following code, then I see very bad segmentation.

img_path = 'E:/DRIONS/DRIONS-DB/images/image_001.jpg'
im = np.array(Image.open(img_path))
im = im[0:, 40:]
print(im.shape)
im = cv2.resize(im, (256,256))
print(im.shape)
plt.imshow(im), plt.show()
im = np.expand_dims(im, axis=0)
im = tf_to_th_encoding(im)
prediction = (model.predict(im)[0, 0]).astype(np.float64)
plt.imshow(prediction>0.5, cmap=plt.cm.Greys_r), plt.show()

So can you help me out in understanding why it is working when using an image from your DRIONS_DB.hdf5 file and why it is failing while processing a new image?

RuntimeError: `get_session` is not available when using TensorFlow 2.0.

There's a compatibility error on the U-Net, OD cup on

RIM-ONE v3, cropped by OD (fold 0).ipynb (nbviewer)

on the following code:

if K.backend() == 'tensorflow': sess = K.get_session()

it throws that error:

'get_sessionis not available ' RuntimeError:get_session is not available when using TensorFlow 2.0.

Any idea on how to fix it?

Hdf5

@seva100 Can u tell how to create .h5py file? From random.sets of fundus images probably(DRISHTI/DRIONS) for getting them to
h5py file thought the code u mentioned in scrips ? How can I be able to import the images & their CSV format file. I just want to create a new h5py file supposingly so can I be able to do that. I think that the one u provided in script is taking data from preexisting h5py file .

Problem in Hdf5 creation

@seva100 , sorry to disturb again, can you help me with the code to create an hdf5 file creation of a folder containing approximately 8k (6k training & 1k training & 1k for testing) , location in a directory let's say D:/New Folder/(8k images) , which are of different sizes(pixel values).I am getting confused.
Immediate help would be appreciated.
Thanks.

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.