Downloads · 30 days
0
sameenarshad786/llava-1.5-health-safety-captioning
llava-1.5-health-safety-captioning is a image-to-text model from sameenarshad786. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of llava-hf/llava-1.5-7b-hf specifically trained for comprehensive health and safety image captioning in construction and workplace environments. The model analyzes workplace images…
Downloads · 30 days
0
Access
Public
Updated Sep 20, 2025
Repo size
85.3 MB
Likes
1
Public
Click a slice to open those files.
.safetensors84.8 MB · 95%
From the Hugging Face model README
This model is a fine-tuned version of llava-hf/llava-1.5-7b-hf specifically trained for comprehensive health and safety image captioning in construction and workplace environments. The model analyzes workplace images to identify hazards, assess safety conditions, and generate detailed safety recommendations.
The training dataset consists of 620 carefully annotated workplace and construction images covering:
Each image includes expert-written captions identifying:
from transformers import LlavaForConditionalGeneration, LlavaProcessor
from PIL import Image
import torch
# Load model and processor
model = LlavaForConditionalGeneration.from_pretrained("sameenarshad786/llava-1.5-health-safety-captioning")
processor = LlavaProcessor.from_pretrained("sameenarshad786/llava-1.5-health-safety-captioning")
# Load your workplace safety image
image = Image.open("construction_site.jpg")
# Prepare the safety analysis prompt
prompt = """Analyze this workplace/construction image and provide a detailed caption describing:
1. Health and safety hazards or incidents present
2. Construction objects, equipment, and work activities visible
3. Scene description and work stage context
4. Weather and environmental conditions
5. Safety category and incident type if applicable
Focus on safety-critical elements and provide a comprehensive caption for workplace safety training."""
# Generate safety caption
inputs = processor(text=prompt, images=image, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=200, do_sample=False)
caption = processor.batch_decode(outputs, skip_special_tokens=True)[0]
print(caption)
This repository contains:
final_llava_health_safety_model/)results/)logs/)data/)notebooks/)@misc{llava-health-safety-2025,
title={LLaVA-1.5 7B - Health & Safety Image Captioning},
author={Sameen Arshad},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/sameenarshad786/llava-1.5-health-safety-captioning},
note={Fine-tuned on 620 expert-annotated workplace safety images}
}
This model is released under the Apache 2.0 License.