Instructions to use AI-vBRAIN/pyMEAL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use AI-vBRAIN/pyMEAL with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://AI-vBRAIN/pyMEAL") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -63,7 +63,6 @@ You can download any `.h5` file directly:
|
|
| 63 |
|
| 64 |
|
| 65 |
---
|
| 66 |
-
|
| 67 |
## How to Use
|
| 68 |
|
| 69 |
### Load a Model (Basic)
|
|
@@ -75,11 +74,12 @@ import tensorflow as tf
|
|
| 75 |
model = tf.keras.models.load_model("model.h5", compile=False)
|
| 76 |
|
| 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
|
| 83 |
|
| 84 |
|
| 85 |
### How to Get Support
|
|
@@ -88,22 +88,3 @@ For help, contact:
|
|
| 88 |
|
| 89 |
- Dr. Ilyas (<amoiIyas@hkcoche.org>)
|
| 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).
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
---
|
|
|
|
| 66 |
## How to Use
|
| 67 |
|
| 68 |
### Load a Model (Basic)
|
|
|
|
| 74 |
model = tf.keras.models.load_model("model.h5", compile=False)
|
| 75 |
|
| 76 |
# Run inference
|
| 77 |
+
output = model.predict(input_data)
|
| 78 |
+
```
|
| 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 on our GitHub repository](https://github.com/ai-vbrain/pyMEAL).
|
| 83 |
|
| 84 |
|
| 85 |
### How to Get Support
|
|
|
|
| 88 |
|
| 89 |
- Dr. Ilyas (<amoiIyas@hkcoche.org>)
|
| 90 |
- Dr. Maradesa (<amaradesa@hkcoche.org>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|