Giter Site home page Giter Site logo

inlyze / deeplearning-segan-segmentation Goto Github PK

View Code? Open in Web Editor NEW
103.0 8.0 39.0 121 KB

This contains an implementation of the SeGAN model for semantic segmentation introduced in https://arxiv.org/pdf/1703.10239.pdf

License: MIT License

Python 100.00%

deeplearning-segan-segmentation's Introduction

DeepLearning SeGAN Segmentation

This contains an implementation of the SeGAN model for semantic segmentation introduced in https://arxiv.org/pdf/1706.01805.pdf

The model serves for semantic segmentation of image data and the authors have demonstrated its utility on cranial MRT images.

A summary of the model architecture from the paper is shown below SegAN

Dependencies

  • Python 3.6
  • Numpy
  • Keras 2.0
  • Tensorflow >= 1.x
  • TQDM (optional)

This work was inspired by Xue et al. as well as the excellent "Deep Learning for coders" tought by Jeremy Howard and Rachel Thomas in their MOOC

deeplearning-segan-segmentation's People

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

deeplearning-segan-segmentation's Issues

Some questions about gt and cropinp

You have offered a whole implementation of SEGAN, and they seems very interesting, but without the processed data, I couldn't run the whole program.
So I wanna ask about some questions.
My input are (none, 572, 572, 3), and the label is (none, 358, 358, n_labels=8), as the origin Unet, what should the gt be? Do I need change the input into gray(channel=1), then multiply the input and label to get images masked by ground-truth(I think it's the gt)? And should I do the same thing with the output of the netS(the input has 3 channel, but the output has 8, I can't simply use the multiply layer)?
Btw, I found the old version without the crop operation.. It's easier to understand, but maybe it has a lower grades?

model Compile error

in train
self.rl.append(self.model.layers[-1].train_on_batch(X, y)) # Train critic

File "envs\tensorflow\lib\site-packages\keras\engine\training.py", line 1209, in train_on_batch
class_weight=class_weight)

File "\envs\tensorflow\lib\site-packages\keras\engine\training.py", line 675, in _standardize_user_data
raise RuntimeError('You must compile a model before '

RuntimeError: You must compile a model before training/testing. Use model.compile(optimizer, loss).

Is loss used in this repo same as in original paper?

I mean, in original paper, they write about mae: "hierarchical features extracted from image x by the critic network", and it seems that they calculate L1 as difference for all critic network layers. In your implementation, you use mae just for target.

Executing the code and trying to replicate

Hi,

I'm trying to replicate the results by executing your code. But, the result of segmentor network after 500 epochs is generated image of whole brain, rather only the tumor region of brain.

Can you share the results of the experiment?

Thanks!

How to train the SegAN?

Thank you very much for sharing SegAN. Currently, I apply the SegAN to segment the rib. If I use the Unet with the resnet as the backbone, the dice can achieve 0.85. But for SegAN, I can only obtain dice of 0.7. Do you have any suggestion?

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.