Instructions to use subhan1501/MURA-EfficientNetV2-Fracture-Detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use subhan1501/MURA-EfficientNetV2-Fracture-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://subhan1501/MURA-EfficientNetV2-Fracture-Detection") - Notebooks
- Google Colab
- Kaggle
File size: 1,253 Bytes
48bb996 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
language: en
tags:
- medical-imaging
- computer-vision
- efficientnetv2
- keras
- tensorflow
license: mit
---
# MURA Bone Fracture Detection Model
## Model Description
This is a custom-trained **EfficientNetV2** model designed to detect bone fractures in musculoskeletal radiographs. It was trained using transfer learning on the **MURA (Musculoskeletal Radiographs)** dataset.
* **Architecture:** EfficientNetV2 (Base) + Custom GlobalAveragePooling & Dense Head
* **Task:** Binary Classification (`fractured` vs. `not_fractured`)
* **Framework:** TensorFlow / Keras
* **Input Resolution:** 224x224 RGB images
## Usage
You can load this model directly using TensorFlow/Keras to run inference on new X-ray images:
```python
import tensorflow as tf
from tensorflow.keras.preprocessing import image
import numpy as np
# Load the model
model = tf.keras.models.load_model('MURA_EfficientNetV2L.h5')
# Preprocess image
img = image.load_img('path_to_xray.jpg', target_size=(224, 224))
img_array = image.img_to_array(img)
img_array = np.expand_dims(img_array, axis=0)
img_array = tf.keras.applications.efficientnet_v2.preprocess_input(img_array)
# Predict
prediction = model.predict(img_array)
print(f"Fracture Probability: {prediction[0][0]:.2%}") |