Giter VIP home page Giter VIP logo

Comments (2)

huiqu18 avatar huiqu18 commented on July 16, 2024

@nikku1234 For preprocessing, all images in the nuclei dataset were color normalized using Reinhard's method ([44] in the paper). In the training set, each image of 1000x1000 was split into 16 image patches of 286x286. The same process was done for labels. The image and label patches were the input to GAN (load size 286, crop size 256). Then the training set was split into four subsets according to four different organs.

In the data/nuclei_dataset.py, train_all.h5 is the whole training set, train_breast.h5, train_kidney.h5, train_liver.h5, train_prostate.h5 are the four subsets.

To train the GAN, run
python train.py --dataroot <path-to-nuclei-data> --name nuclei_asyndgan --model asyndgan --netG resnet_9blocks --direction AtoB --lambda_L1 100 --dataset_mode nuclei_split --pool_size 0 --gpu_ids 0 --batch_size 2 --num_threads 0

To generate the synthetic images using the trained model, run
python save_syn_nuclei.py --dataroot <path-to-nuclei-data> --name nuclei_asyndgan --model pix2pix --netG resnet_9blocks --direction AtoB --dataset_mode nuclei --epoch 400 --results_dir results/nuclei_asyndgan

Note that the generator of our AsynDGAN is the same as that of pix2pix, that's why we simply used pix2pix for testing.

from asyndgan.

nikku1234 avatar nikku1234 commented on July 16, 2024

Oh awesome! Thanks for the detailed explanation.

from asyndgan.

Related Issues (15)

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.