Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ license: mit
|
|
| 12 |
- **License:** mit
|
| 13 |
|
| 14 |
|
| 15 |
-
###
|
| 16 |
|
| 17 |
<!-- Provide the basic links for the model. -->
|
| 18 |
|
|
@@ -20,19 +20,35 @@ license: mit
|
|
| 20 |
|
| 21 |
### Assets List
|
| 22 |
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
```sh
|
| 35 |
-
python
|
| 36 |
```
|
| 37 |
|
| 38 |
-
For
|
|
|
|
|
|
|
|
|
| 12 |
- **License:** mit
|
| 13 |
|
| 14 |
|
| 15 |
+
### Source Code
|
| 16 |
|
| 17 |
<!-- Provide the basic links for the model. -->
|
| 18 |
|
|
|
|
| 20 |
|
| 21 |
### Assets List
|
| 22 |
|
| 23 |
+
- **prerequisites_for_inference.zip**:
|
| 24 |
+
```
|
| 25 |
+
prerequisites
|
| 26 |
+
βββ clf_data : Directory contains data for imbalanced classification experiments
|
| 27 |
+
βββ clip_model.pth : CLIP model checkpoints.
|
| 28 |
+
βββ mimic_vae_lite_0_new.pt : Subsets of VAE encoding latents of MIMIC IV ECG dataset.
|
| 29 |
+
βββ ptbxl_text_embed.csv : Pre-generated text embeddings of PTB-XL dataset
|
| 30 |
+
βββ ptbxl_vae.pt : VAE encoding latents of PTB-XL dataset.
|
| 31 |
+
βββ unet_all.pth : A pretrained full capacity DiffuSETS model.
|
| 32 |
+
βββ vae_model.pth : VAE model checkpoints suit for the unet model and latent datasets above.
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
- **mimic_vae_lite_0_new.pt**: VAE encoding latents of MIMIC IV ECG dataset. Only needed while training.
|
| 36 |
+
|
| 37 |
+
## Usage
|
| 38 |
|
| 39 |
|
| 40 |
+
**Quick Start:** Download and unzip the prerequisites_for_inference.zip, place the `./prerequisites` folder under repo's root, then start ECG generation through
|
| 41 |
|
| 42 |
+
```sh
|
| 43 |
+
python DiffuSETS_inference.py path/to/your/config.json
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
or
|
| 47 |
|
| 48 |
```sh
|
| 49 |
+
python -m test_scripts.diversity
|
| 50 |
```
|
| 51 |
|
| 52 |
+
**For users want to train from scratch:** Besides above prerequisites_for_inference.zip, the mimic_vae_0_new.pt (training data encoded by vae) should also be downloaded and put into the `./prerequisites` folder.
|
| 53 |
+
|
| 54 |
+
For more details about training and inference, please refer to our [github repo page](https://github.com/Raiiyf/text2ecg)
|