-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7156be3
commit 746d529
Showing
5 changed files
with
291 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
# MRIGan | ||
|
||
|
||
## Dataset | ||
|
||
Dataset is placed in the `data` folder. `T1` and `T2` dataset placed under respective folders. All path are defined under utils module in `paths.py` file. | ||
|
||
## Model | ||
|
||
Model related code is placed under `model` folder. `mri_gan.py` contains the intialization, training and ploting code. `generator.py` and `discriminator.py` contains the generator and discriminator model respectively. `conv_block.py` contains the convolution block used in both generator and discriminator. | ||
|
||
## Architecture | ||
Downsample block used skip connection from input to output. Upsample block used skip connection from input to output and from output to input. The skip connection is used to preserve the spatial information. The architecture is shown below. | ||
|
||
Generator Architecture is U-Net like architecture. And discriminator is PatchGAN architecture. | ||
|
||
## Training | ||
|
||
Training is done using `mri_gan.py` file. The training is done in two steps. First step is to train the generator and discriminator separately. Second step is to train the generator and discriminator together. The training is done for 260 epochs. The training is done using Adam optimizer with learning rate 0.0002 and beta1 0.5. The training is done on A6000 GPU. | ||
|
||
### Results | ||
GIF of the results is shown below. | ||
![GIF](https://storage.googleapis.com/deeplearning-archive/MRIGan/cyclegan.gif) | ||
|
||
Final epoch results are shown below. | ||
|
||
![Final Epoch](./output/final_epoch.png) | ||
|
||
Model archive is below. | ||
[Model Archive](https://storage.googleapis.com/deeplearning-archive/MRIGan/models.zip) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.