Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit d74d4bc

Browse files
authored
Update CXR model (#336)
* Update model configuration Signed-off-by: Walter Hugo Lopez Pinaya <ianonimato@hotmail.com> * Add image Signed-off-by: Walter Hugo Lopez Pinaya <ianonimato@hotmail.com> * Update CXR model Signed-off-by: Walter Hugo Lopez Pinaya <ianonimato@hotmail.com> * Fix image Signed-off-by: Walter Hugo Lopez Pinaya <ianonimato@hotmail.com> --------- Signed-off-by: Walter Hugo Lopez Pinaya <ianonimato@hotmail.com>
1 parent ac3b900 commit d74d4bc

6 files changed

Lines changed: 17 additions & 6 deletions

File tree

model-zoo/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generative Models - Model Zoo
2+
3+
In this directory, we include the prototypes of the model zoo for the MONAI Generative Models project.
4+
Different from the official one, we do not include all features from the [official one](https://github.com/Project-MONAI/model-zoo).
5+
For this reason, it is not possible to download the models directly with the `python -m monai.bundle run ...` command.
6+
In order to use our models, please, manually download them with their link specified in the `large_files.yml` files,
7+
and place them inside the folder path specified in the same .yml file.

model-zoo/models/cxr_image_synthesis_latent_diffusion_model/configs/inference.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
false,
4141
false
4242
],
43-
"with_encoder_nonlocal_attn": true,
44-
"with_decoder_nonlocal_attn": true
43+
"with_encoder_nonlocal_attn": false,
44+
"with_decoder_nonlocal_attn": false
4545
},
4646
"load_autoencoder_path": "$@model_dir + '/autoencoder.pth'",
4747
"load_autoencoder": "$@autoencoder_def.load_state_dict(torch.load(@load_autoencoder_path))",

model-zoo/models/cxr_image_synthesis_latent_diffusion_model/configs/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
33
"version": "1.0.0",
44
"changelog": {
5-
"0.1": "Initial release"
5+
"0.2": "Flipped images fixed"
66
},
77
"monai_version": "1.1.0",
88
"pytorch_version": "1.13.0",

model-zoo/models/cxr_image_synthesis_latent_diffusion_model/docs/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ This model is trained from scratch using the Latent Diffusion Model architecture
1212
2D Chest X-ray conditioned on Radiological reports. The model is divided into two parts: an autoencoder with a
1313
KL-regularisation model that compresses data into a latent space and a diffusion model that learns to generate
1414
conditioned synthetic latent representations. This model is conditioned on Findings and Impressions from radiological
15-
reports.
15+
reports. The original repository can be found [here](https://github.com/Warvito/generative_chestxray)
16+
17+
![](./figure_1.png) <br>
18+
<p align="center">
19+
Figure 1 - Synthetic images from the model. </p>
1620

1721
## **Data**
1822
The model was trained on brain data from 90,000 participants from the MIMIC dataset [2] [3]. We downsampled the
467 KB
Loading
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
large_files:
22
- path: "models/autoencoder.pth"
3-
url: "https://drive.google.com/uc?export=download&id=11Em6qkEsqbFrtJau2mlZAvQZqQmiIEVe"
3+
url: "https://drive.google.com/uc?export=download&id=1paDN1m-Q_Oy8d_BanPkRTi3RlNB_Sv_h"
44
hash_val: ""
55
hash_type: ""
66
- path: "models/diffusion_model.pth"
7-
url: "https://drive.google.com/uc?export=download&id=1PUqHb_0dKB7GAXA3P8l_3pIyorLudgrB"
7+
url: "https://drive.google.com/uc?export=download&id=1CjcmiPu5_QWr-f7wDJsXrCCcVeczneGT"
88
hash_val: ""
99
hash_type: ""

0 commit comments

Comments
 (0)