Downloads · 30 days
20
17% of all-time downloads
ezAhmed/gerd-lightweight-vit
gerd-lightweight-vit is a image classification model from ezAhmed. Use it when you need a label for an image. It is set up for keras. The card lists the license as apache-2.0.
This is a lightweight Vision Transformer (ViT) model trained to classify gastroesophageal images into 4 categories: - Esophagitis: Inflammation of the esophagus - GERD: Gastroesophageal Reflux Disease - Normal: Health…
Downloads · 30 days
20
17% of all-time downloads
All-time downloads
121
Public
Repo size
938 KB
Likes
0
Public
Click a slice to open those files.
.keras938 KB · 99%
From the Hugging Face model README
This is a lightweight Vision Transformer (ViT) model trained to classify gastroesophageal images into 4 categories:
This model is designed for research and educational purposes in medical image analysis. It should NOT be used as the sole diagnostic tool in clinical settings.
import tensorflow as tf
from PIL import Image
import numpy as np
# Load model
model = tf.keras.models.load_model('model.keras')
# Prepare image
image = Image.open('your_image.jpg').resize((224, 224))
image_array = np.array(image) / 255.0
image_array = np.expand_dims(image_array, axis=0)
# Predict
predictions = model.predict(image_array)
class_names = ['Esophagitis', 'GERD', 'Normal', 'Ulcer']
predicted_class = class_names[np.argmax(predictions)]
confidence = np.max(predictions)
print(f"Predicted: {predicted_class} (Confidence: {confidence:.2%})")
⚠️ Important Disclaimers:
The model was trained on an augmented GERD dataset containing gastroesophageal images across 4 categories.
If you use this model, please cite appropriately and acknowledge the original dataset sources.
For questions or issues, please open an issue in the model repository.
Developed for medical image classification research