ZeroGPU
Browse files
demo.py
CHANGED
|
@@ -653,13 +653,12 @@ def create_demo():
|
|
| 653 |
|
| 654 |
gr.Markdown(
|
| 655 |
"""
|
| 656 |
-
### 🎯 Purpose
|
| 657 |
This demo showcases EchoFlow's ability to generate synthetic echocardiogram images and videos while preserving patient privacy. The pipeline consists of four main steps:
|
| 658 |
|
| 659 |
1. **Latent Image Generation**: Draw a mask to indicate the region where the Left Ventricle should appear. Select the desired cardiac view, and click "Generate Latent Image". This outputs a latent image, which can be decoded into a pixel space image by clicking "Decode to Pixel Space".
|
| 660 |
2. **Privacy Filter**: When clicking "Run Privacy Check", the generated image will be checked against a database of all training anatomies to ensure it is sufficiently different from real patient data.
|
| 661 |
3. **Latent Video Generation**: If the privacy check passes, the latent image can be animated into a video with the desired Ejection Fraction.
|
| 662 |
-
4. **Video Decoding**: The video can be decoded
|
| 663 |
|
| 664 |
### ⚙️ Parameters
|
| 665 |
- **Sampling Steps**: Higher values produce better quality but take longer
|
|
|
|
| 653 |
|
| 654 |
gr.Markdown(
|
| 655 |
"""
|
|
|
|
| 656 |
This demo showcases EchoFlow's ability to generate synthetic echocardiogram images and videos while preserving patient privacy. The pipeline consists of four main steps:
|
| 657 |
|
| 658 |
1. **Latent Image Generation**: Draw a mask to indicate the region where the Left Ventricle should appear. Select the desired cardiac view, and click "Generate Latent Image". This outputs a latent image, which can be decoded into a pixel space image by clicking "Decode to Pixel Space".
|
| 659 |
2. **Privacy Filter**: When clicking "Run Privacy Check", the generated image will be checked against a database of all training anatomies to ensure it is sufficiently different from real patient data.
|
| 660 |
3. **Latent Video Generation**: If the privacy check passes, the latent image can be animated into a video with the desired Ejection Fraction.
|
| 661 |
+
4. **Video Decoding**: The video can be decoded back to pixel space by clicking "Decode Video".
|
| 662 |
|
| 663 |
### ⚙️ Parameters
|
| 664 |
- **Sampling Steps**: Higher values produce better quality but take longer
|