Laiyf commited on
Commit
8da2ee1
Β·
verified Β·
1 Parent(s): eb25fd0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -10
README.md CHANGED
@@ -12,7 +12,7 @@ license: mit
12
  - **License:** mit
13
 
14
 
15
- ### Model Sources
16
 
17
  <!-- Provide the basic links for the model. -->
18
 
@@ -20,19 +20,35 @@ license: mit
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)
 
 
 
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)