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
|
@@ -61,22 +61,24 @@ You can download any `.h5` file directly:
|
|
| 61 |
- [Download direct7_11ag23f11.h5](https://huggingface.co/AI-vBRAIN/pyMEAL/resolve/main/direct7_11ag23f11.h5)
|
| 62 |
- [Download best_modelaf2ndab7_221ag12g11.h5](https://huggingface.co/AI-vBRAIN/pyMEAL/resolve/main/best_modelaf2ndab7_221ag12g11.h5)
|
| 63 |
|
|
|
|
| 64 |
---
|
| 65 |
|
| 66 |
## How to Use
|
| 67 |
|
| 68 |
### Load a Model (Basic)
|
| 69 |
|
| 70 |
-
```python
|
| 71 |
import tensorflow as tf
|
| 72 |
|
| 73 |
# Load the model
|
| 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 of our GitHub repository (https://github.com/ai-vbrain/pyMEAL).
|
|
|
|
| 61 |
- [Download direct7_11ag23f11.h5](https://huggingface.co/AI-vBRAIN/pyMEAL/resolve/main/direct7_11ag23f11.h5)
|
| 62 |
- [Download best_modelaf2ndab7_221ag12g11.h5](https://huggingface.co/AI-vBRAIN/pyMEAL/resolve/main/best_modelaf2ndab7_221ag12g11.h5)
|
| 63 |
|
| 64 |
+
|
| 65 |
---
|
| 66 |
|
| 67 |
## How to Use
|
| 68 |
|
| 69 |
### Load a Model (Basic)
|
| 70 |
|
| 71 |
+
```python
|
| 72 |
import tensorflow as tf
|
| 73 |
|
| 74 |
# Load the model
|
| 75 |
model = tf.keras.models.load_model("model.h5", compile=False)
|
| 76 |
|
| 77 |
# Run inference
|
| 78 |
+
output = model.predict(input_data)```
|
| 79 |
---
|
| 80 |
|
| 81 |
+
` ``` `
|
| 82 |
Here, input_data refers to a CT image, and the corresponding T1-weighted (T1w) image is produced as the output.
|
| 83 |
|
| 84 |
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).
|