Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# Model Card for DiffuSETS
|
| 6 |
+
|
| 7 |
+
## Description
|
| 8 |
+
|
| 9 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 10 |
+
|
| 11 |
+
- **Developed by:** Yongfan Lai
|
| 12 |
+
- **License:** mit
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
### Model Sources
|
| 16 |
+
|
| 17 |
+
<!-- Provide the basic links for the model. -->
|
| 18 |
+
|
| 19 |
+
- **Repository:** [Github](https://github.com/Raiiyf/text2ecg)
|
| 20 |
+
|
| 21 |
+
### Assets List
|
| 22 |
+
|
| 23 |
+
- `mimic_iv_text_embed.csv`: Pre saved embedding table for mimic text report.
|
| 24 |
+
- `mimic_vae.pt` & `mimic_vae_lite.pt`: Dictionary consists of VAE encoding latents of mimic iv ecg dataset. `lite` version contains only 50 000 samples for convenience.
|
| 25 |
+
- `unet.pth`: A trained noise predictor model checkpoints. Use both VAE latent and patient characteristc info.
|
| 26 |
+
- `vae_model.pth`: A trained VAE model checkpoints suit for the unet model and latent datasets above.
|
| 27 |
+
- `sample_config.json`: An example of configuration.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## Quick Uses
|
| 31 |
+
|
| 32 |
+
Download the all the prerequisites into the `./prerequisites` folder, then start ECG generating through
|
| 33 |
+
|
| 34 |
+
```sh
|
| 35 |
+
python DiffuSETS_inference.py ./prerequisites/sample_config.json
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
For more details in training and inference, please refer to our [github repo page](https://github.com/Raiiyf/text2ecg)
|