Downloads · 30 days
23
10% of all-time downloads
ziaddBou/pneumodoc-model
pneumodoc-model is a machine learning model from ziaddBou. 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.
This model employs a MobileNetV3 architecture fine-tuned for the detection of pneumonia from chest X-ray images. It is designed to assist radiologists by providing a preliminary automated diagnosis. tetststtststststtstst
Downloads · 30 days
23
10% of all-time downloads
All-time downloads
242
Public
Repo size
7.9 MB
Likes
0
Public
Click a slice to open those files.
.keras7.9 MB · 100%
From the Hugging Face model README
This model employs a MobileNetV3 architecture fine-tuned for the detection of pneumonia from chest X-ray images. It is designed to assist radiologists by providing a preliminary automated diagnosis. tetststtststststtstst
The model was trained on the Kaggle Pneumonia dataset, which contains thousands of labeled chest X-ray images from children.
The model uses MobileNetV3 as the base for feature extraction, with additional custom layers to tailor it for pneumonia detection.
The model was trained with an Adam optimizer and early stopping based on validation loss to prevent overfitting. Data augmentation techniques such as rotations and flips were used to enhance generalization.
The model achieved a high accuracy on the validation set, with the following metrics:
Here is an example of how to use this model:
import gradio as gr
import tensorflow as tf
model = tf.keras.models.load_model('model.h5')
def predict(image):
processed_image = preprocess_image(image)
return model.predict(processed_image)
iface = gr.Interface(fn=predict, inputs="image", outputs="label")
iface.launch()