Skip to content

Commit

Permalink
Merge branch '00023' of github.com:RichardObi/medigan into 00023
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardObi committed Nov 28, 2023
2 parents 3fc80c7 + 3d8236a commit fb8fd29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Documentation is available at [medigan.readthedocs.io](https://medigan.readthedo

### Generation example
#### DCGAN
Create mammography masses with labels (malignant or benign) using a cDCGAN model.
Create mammography masses with labels (malignant or benign) using a class-conditional DCGAN model.
```python
# import medigan and initialize Generators
from medigan import Generators
Expand All @@ -96,7 +96,9 @@ generators = Generators()
generators.generate(model_id=8, num_samples=8, install_dependencies=True)
```
![sample](docs/source/_static/samples/c-dcgan/model8_samples.png)
The generated top row samples are malignant and the bottom row samples benign masses (regions-of-interest of mammograms).

The synthetic images in the top row show malignant masses (breast cancer) while the images in the bottom row show benign masses.
Given such images with class information, image classification models can be (pre-)trained.


#### CYCLEGAN
Expand Down
17 changes: 9 additions & 8 deletions tests/test_model_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@
3,
),
("00022_WGAN_CARDIAC_AGING", {}, 3),
("00023_PIX2PIXHD_BREAST_DCEMRI",
{
"input_path": "input/",
"gpu_id": 0,
"image_size": 448,
},
3,
)
(
"00023_PIX2PIXHD_BREAST_DCEMRI",
{
"input_path": "input/",
"gpu_id": 0,
"image_size": 448,
},
3,
),
]


Expand Down

0 comments on commit fb8fd29

Please sign in to comment.