Git Product home page Git Product logo

semisupervised_itterativecnn's Introduction

SemiSupervised/itterativeCNN

This work was done during the internship I did for my master thesis at Livia laboratory (ETS, Montreal). You can find my report in the root directory ("intership_ets.pdf")

The goal of this project was to use unlabelled data in order to introduce new knowledge in the CNN and then improve the segmentation

Install caffe :

https://github.com/BVLC/caffe/

Add the files in modif_caffe in the base of your caffe directory (it's the code for the weighted loss) and build them using the "make" command.

Train Your network with the labelled data

Once you have your solver and network defined, you have to adapt the paths and the parameters in config_train.py for your application. Also if you want to do a specific preprocessing, you can do it in preprocessing_im() and preprocessing_label() (in the file utils_dataRV) and start the training with :

python train.py

Test your network

You have to adapt the paths and the parameters in config_test.py for your application and start the testing with :

python test.py -f ../test.txt -r ../ -d ../predictions_test/ 

With test.txt the file containing the list of test files in nifti format. and "predictions_test" the repertory where you want to save the results

Use the unlabelled data to improve it

Before starting you should finetune th graphcut parameters for you dataset. This step is important in order to improve the results givven by the CNN with the 3D graphcut.

you have to change the paths and parameters in config.py

To start the itterative algorithm, you have to do :

python train_loop.py 8000 0.4 0.1

if you want to do 8000 cnn itterations and use a foreground loss of 0.4 and background loss of 0.1

Contact

[email protected]

semisupervised_itterativecnn's People

Contributors

styloint avatar

Watchers

 avatar  avatar

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.