Giter VIP home page Giter VIP logo

vox2vox_pytorch's Introduction

vox2vox

Pytorch implementation of vox2vox, a 3D volume-to-volume generative adversarial network proposed by M. Cirillo, D. Abramian and A. Eklund

Prerequisites

  • Windows/ Linux/ Mac
  • torch>=0.4.0
  • torchvision
  • matplotlib
  • numpy, scipy
  • PIL
  • scikit-image
  • pyvista (for visulization)
  • h5py

Data preprocessing

All volumes should be saved as h5 files since the dataloader uses h5py to load and create training batches.

Datasets should be split into two folders train and test, in which they should be placed under the same folder in /data. Each of the train and test folder should have image and segmentation volumes with the same file name. Suggested extension for image volume is .im and .seg for segmentation volume.

Getting started

Clone this repo by: git clone https://github.com/chinokenochkan/vox2vox

Run training job: cd vox2vox && python train.py --dataset <your dataset name>

Parameters

Here are some of the possible parameters you can modify during training:

  • --n_epochs: number of epochs to train for
  • --glr: generator learning rate for Adam optimizer
  • --dlr: discriminator learning rate for Adam optimizer
  • --dataset_name: name of the dataset you are using, should be consistent with the name of the dataset folder in /data
  • --batch_size: training batch size, default is 1
  • --image_height/ --image_width/ --image_depth: image dimensions h/w/d
  • d_threshold: accuracy threshold in which the discriminator will be trained as long as its accuracy is below it

Acknowledgement

Thanks @eriklindernoren for the great starter repo

Oringal paper: M. Cirillo, D. Abramian and A. Eklund

vox2vox_pytorch's People

Contributors

enochkan avatar jesusqubio avatar

Watchers

 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.