Instructions to use shumailabatool/brain_tumor_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use shumailabatool/brain_tumor_detection with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://shumailabatool/brain_tumor_detection") - Notebooks
- Google Colab
- Kaggle
Upload config.json with huggingface_hub
Browse files- config.json +15 -0
config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "UNet_Attention",
|
| 3 |
+
"input_shape": [
|
| 4 |
+
128,
|
| 5 |
+
128,
|
| 6 |
+
2
|
| 7 |
+
],
|
| 8 |
+
"num_classes": 4,
|
| 9 |
+
"optimizer": "adam",
|
| 10 |
+
"loss": "categorical_crossentropy",
|
| 11 |
+
"metrics": [
|
| 12 |
+
"accuracy",
|
| 13 |
+
"dice_coef"
|
| 14 |
+
]
|
| 15 |
+
}
|