Comments (2)
@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.
Oh awesome! Thanks for the detailed explanation.
from asyndgan.
Related Issues (15)
- 请教测试结果如何重建为3d 图像? HOT 1
- 测试的具体细节 HOT 2
- How to build this work amongs differents institutions? HOT 1
- Could you give me a training process? Thank you HOT 3
- The data processing HOT 7
- Questions about test HOT 3
- Can you provide pre-trained generator on BraTs 2018 dataset? HOT 2
- preprocess data HOT 1
- Segmentation process HOT 4
- 10 subsets HOT 2
- Testing the BraTS Dataset HOT 1
- Nuclei Segmentation Model HOT 4
- Some questions about practical applications HOT 6
- data HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyndgan.