Downloads · 30 days
29
11% of all-time downloads
MedeHealth/paligemma-chest-xray-vision
paligemma-chest-xray-vision is a image-text-to-text model from MedeHealth. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
Fine-tuned vision-language model for Portuguese chest X-ray report generation.
Downloads · 30 days
29
11% of all-time downloads
All-time downloads
259
Public
Parameters
4.3B
8.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.6 GB · 100%
From the Hugging Face model README
Fine-tuned vision-language model for Portuguese chest X-ray report generation.
This model can:
from transformers import PaliGemmaProcessor, PaliGemmaForConditionalGeneration
from PIL import Image
processor = PaliGemmaProcessor.from_pretrained("MedeHealth/paligemma-chest-xray-vision")
model = PaliGemmaForConditionalGeneration.from_pretrained("MedeHealth/paligemma-chest-xray-vision")
image = Image.open("chest_xray.png")
prompt = "Analyze this chest X-ray and provide a structured radiology report."
inputs = processor(text=prompt, images=image, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=1024)
report = processor.decode(outputs[0], skip_special_tokens=True)
print(report)
Deploy to HuggingFace Inference Endpoints with task type: image-text-to-text