Downloads · 30 days
8
3% of all-time downloads
Bharath1434/Pneumonia-Detection-1
Pneumonia-Detection-1 is a machine learning model from Bharath1434. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras.
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
231
Public
Repo size
4.3 GB
Likes
0
Public
Click a slice to open those files.
.zip3.9 GB · 94%
From the Hugging Face model README
This repository hosts a VGG-16 based Convolutional Neural Network (CNN) model with a custom Feed-Forward Neural Network (FFNN) head developed for detecting pneumonia from chest X-ray images. The model leverages transfer learning from the VGG-16 architecture, fine-tuned for this specific medical imaging task.
This model can be loaded using TensorFlow/Keras and used for inference on preprocessed chest X-ray images.
import tensorflow as tf
from huggingface_hub import from_pretrained_keras
# Load the model from Hugging Face Hub
model = from_pretrained_keras("Bharath1434/Pneumonia-Detection-1")
# Example: Preprocess your image (assuming 'your_image' is a 200x200x3 numpy array, normalized 0-1)
# preprocessed_image = your_preprocessing_function(your_image)
# Make a prediction
# prediction = model.predict(tf.expand_dims(preprocessed_image, axis=0))[0][0]
# if prediction > 0.5:
# print("Pneumonia Detected (Probability: {prediction:.4f})")
# else:
# print("No Pneumonia (Probability: {prediction:.4f})")
For more details on the training process, EDA, and model evaluation, please refer to the associated Colab notebook.