🧠 Brain MRI Classification with TensorFlow and Streamlit
🇬🇧 English
This project is a deep learning-based solution for classifying Brain MRI images into four categories:
Glioma
,
Meningioma
,
Pituitary
, and
Normal
. The classification model is trained using TensorFlow/Keras and can be used either programmatically or with a Streamlit web interface.
🧪 Model Information
Input shape:
(224, 224, 3)
Model format:
.keras
(SavedModel)
Output classes:
0: Glioma
1: Meningioma
2: Normal
3: Pituitary
🧠 Example Usage (Python Script)
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing import image
import numpy as np
# Load the trained model
model = load_model('brainmri.keras')
# Load and preprocess the image
img = image.load_img('example.jpeg', target_size=(224, 224))
img_array = image.img_to_array(img) / 255.0
img_array = np.expand_dims(img_array, axis=0)
# Define class labels
classes = {
0: "Glioma",
1: "Meningioma",
2: "Normal",
3: "Pituitary"
}
# Make prediction
result = model.predict(img_array)
predicted_class = np.argmax(result)
# Print resultprint("Predicted Class:", classes.get(predicted_class))
Runs of cagrigungor brainbenigntumorclassification on huggingface.co
13
Total runs
0
24-hour runs
9
3-day runs
9
7-day runs
5
30-day runs
More Information About brainbenigntumorclassification huggingface.co Model
More brainbenigntumorclassification license Visit here:
brainbenigntumorclassification huggingface.co is an AI model on huggingface.co that provides brainbenigntumorclassification's model effect (), which can be used instantly with this cagrigungor brainbenigntumorclassification model. huggingface.co supports a free trial of the brainbenigntumorclassification model, and also provides paid use of the brainbenigntumorclassification. Support call brainbenigntumorclassification model through api, including Node.js, Python, http.
brainbenigntumorclassification huggingface.co is an online trial and call api platform, which integrates brainbenigntumorclassification's modeling effects, including api services, and provides a free online trial of brainbenigntumorclassification, you can try brainbenigntumorclassification online for free by clicking the link below.
cagrigungor brainbenigntumorclassification online free url in huggingface.co:
brainbenigntumorclassification is an open source model from GitHub that offers a free installation service, and any user can find brainbenigntumorclassification on GitHub to install. At the same time, huggingface.co provides the effect of brainbenigntumorclassification install, users can directly use brainbenigntumorclassification installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
brainbenigntumorclassification install url in huggingface.co: