Update README.md
Browse files
README.md
CHANGED
|
@@ -77,8 +77,7 @@ model = tf.keras.models.load_model("model.h5", compile=False)
|
|
| 77 |
# Run inference
|
| 78 |
output = model.predict(input_data)```
|
| 79 |
|
| 80 |
-
|
| 81 |
-
```Here, input_data refers to a CT image, and the corresponding T1-weighted (T1w) image is produced as the output.
|
| 82 |
|
| 83 |
For detailed instructions on how to use each module of the pyMEAL software, please refer to the tutorial section of our GitHub repository (https://github.com/ai-vbrain/pyMEAL).
|
| 84 |
|
|
@@ -91,23 +90,20 @@ For help, contact:
|
|
| 91 |
- Dr. Maradesa (<amaradesa@hkcoche.org>)
|
| 92 |
|
| 93 |
|
|
|
|
| 94 |
|
|
|
|
| 95 |
|
|
|
|
|
|
|
| 96 |
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
- The code block opens with ` ```python `
|
| 103 |
-
- The code ends with **just** ` ``` ` on its **own new line**
|
| 104 |
-
- Then your explanation text resumes below in regular Markdown
|
| 105 |
-
|
| 106 |
-
---
|
| 107 |
|
| 108 |
-
|
| 109 |
-
- Center the image or resize it
|
| 110 |
-
- Add output visualizations or example predictions
|
| 111 |
-
- Add Hugging Face badges or usage tabs
|
| 112 |
|
| 113 |
-
|
|
|
|
| 77 |
# Run inference
|
| 78 |
output = model.predict(input_data)```
|
| 79 |
|
| 80 |
+
Here, input_data refers to a CT image, and the corresponding T1-weighted (T1w) image is produced as the output.
|
|
|
|
| 81 |
|
| 82 |
For detailed instructions on how to use each module of the pyMEAL software, please refer to the tutorial section of our GitHub repository (https://github.com/ai-vbrain/pyMEAL).
|
| 83 |
|
|
|
|
| 90 |
- Dr. Maradesa (<amaradesa@hkcoche.org>)
|
| 91 |
|
| 92 |
|
| 93 |
+
## How to Use
|
| 94 |
|
| 95 |
+
### Load a Model (Basic)
|
| 96 |
|
| 97 |
+
```python
|
| 98 |
+
import tensorflow as tf
|
| 99 |
|
| 100 |
+
# Load the model
|
| 101 |
+
model = tf.keras.models.load_model("model.h5", compile=False)
|
| 102 |
|
| 103 |
+
# Run inference
|
| 104 |
+
output = model.predict(input_data)
|
| 105 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
+
Here, `input_data` refers to a CT image, and the corresponding T1-weighted (T1w) image is produced as the output.
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
+
For detailed instructions on how to use each module of the **pyMEAL** software, please refer to the [tutorial section on our GitHub repository](https://github.com/ai-vbrain/pyMEAL).
|