Giter Site home page Giter Site logo

progleason-gan's Introduction

INFORMATION

This is the code implementation for: "ProGleason-GAN: Conditional Progressive Growing: GAN for prostatic cancer Gleason Grade patch synthesis"

TRAINING INSTRUCTIONS

To initiate the training, the following parameters must be set in the config.py file.

Arguments Description
--START_TRAIN_AT_IMG_SIZE Start resolution
--CHECKPOINT_GEN Path for generator checkpoint
--CHECKPOINT_CRITIC Path for discriminator checkpoint
--RESULTS_DIR Output directory for the recontructed slides
--PATH_CSV_SICAP Path with SICAPv2 partition annotations
--PATH_IMAGES_SICAP Path containing SICAPv2 patches
--DEVICE DEVICE INFO (cpu or cuda)
--SAVE_MODEL Flag to allow the training to save the model in the RESULTS_DIR
--LOAD_MODEL Flag to allow the training to load previous checkpoints
--LEARNING_RATE_GENERATOR Learning rate for the generator model
--LEARNING_RATE_DISCRIMINATOR Learning rate for the discriminator model
--BATCH_SIZES List of batch sizes for each resolution
--CHANNELS_IMG The number of channels in the input images
--Z_DIM Size of the input noise vector
--IN_CHANNELS The number of channels in the generator's input noise vector
--LAMBDA_GP The weight factor for the gradient penalty term used in the Wasserstein GAN (WGAN) loss
--PROGRESSIVE_EPOCHS List of training epochs for each resolution
--N_CLASSES Number of classes in the dataset
--NUM_WORKERS The number of parallel workers for data loading during training

After that, you only need to call

$ python train.py

progleason-gan's People

Contributors

cvblab avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

sehwanyoo

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.