Downloads · 30 days
0
Dataseeds/BLIP2-opt-2.7b-DSD-FineTune
BLIP2-opt-2.7b-DSD-FineTune is a image-to-text model from Dataseeds. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as mit.
Code: https://github.com/DataSeeds-ai/DSD-finetune-blip-llava
Downloads · 30 days
0
Access
Public
Updated Sep 7, 2026
Repo size
53.5 GB
Likes
4
Public
Click a slice to open those files.
.pth53.5 GB · 100%
From the Hugging Face model README
Code: https://github.com/DataSeeds-ai/DSD-finetune-blip-llava
This model is a fine-tuned version of Salesforce/blip2-opt-2.7b specialized for photography scene analysis and technical description generation. The model was fine-tuned on the DataSeeds.AI Sample Dataset (DSD) to enhance its capabilities in generating detailed photographic descriptions with focus on composition, lighting, and technical aspects.
The model was presented in the paper Peer-Ranked Precision: Creating a Foundational Dataset for Fine-Tuning Vision Models from DataSeeds' Annotated Imagery.
The model was fine-tuned on the DataSeeds.AI Sample Dataset (DSD), containing 10,610 curated photography images with comprehensive annotations:
| Parameter | Value |
|---|---|
| Learning Rate | 1e-5 |
| Optimizer | AdamW |
| LR Schedule | Linear warmup + Cosine decay |
| Warmup Steps | 17 |
| Weight Decay | 0.01 |
| Batch Size | 8 |
| Gradient Accumulation | 1 |
| Training Epochs | 10 |
| Mixed Precision | AMP enabled |
| Hardware | Single NVIDIA A100 80GB |
| Vision Encoder | Unfrozen (trainable) |
| Gradient Checkpointing | Enabled |
| Parameter | Value |
|---|---|
| Max Length | 100 tokens |
| Min Length | 8 tokens |
| Num Beams | 5 |
| Beam Search | Enabled |
| Task | Captioning |
checkpoint_best.pth (selected based on validation performance)The fine-tuned model shows significant improvements in lexical overlap metrics, with notable trade-offs in semantic understanding:
| Metric | Base Model | Fine-tuned | Absolute Δ | Relative Δ |
|---|---|---|---|---|
| BLEU-4 | 0.001 | 0.047 | +0.046 | +4600%* |
| ROUGE-L | 0.126 | 0.242 | +0.116 | +92.06% |
| BERTScore F1 | 0.0545 | -0.0537 | -0.1082 | -198.53% |
| CLIPScore | 0.2854 | 0.2583 | -0.0271 | -9.49% |
*Note: The extreme BLEU-4 improvement is due to the very low baseline (0.001), making relative improvements appear dramatic.
Strengths:
Trade-offs:
The fine-tuning results reveal a model that has specialized in lexical pattern matching for photography descriptions but with trade-offs in semantic understanding. This suggests the model is particularly suited for applications requiring technical photography terminology rather than general-purpose image captioning.
pip install transformers torch pillow
from transformers import Blip2Processor, Blip2ForConditionalGeneration
import torch
from PIL import Image
# Load model and processor
processor = Blip2Processor.from_pretrained("Dataseeds/BLIP2-opt-2.7b-DSD-FineTune")
model = Blip2ForConditionalGeneration.from_pretrained(
"Dataseeds/BLIP2-opt-2.7b-DSD-FineTune",
torch_dtype=torch.float16,
device_map="auto"
)
# Load and process image
image = Image.open("your_image.jpg")
inputs = processor(image, return_tensors="pt").to(model.device, torch.float16)
# Generate caption
generated_ids = model.generate(
**inputs,
max_length=100,
min_length=8,
num_beams=5,
do_sample=False
)
caption = processor.decode(generated_ids[0], skip_special_tokens=True)
print(f"Generated caption: {caption}")
The model maintains the BLIP-2 architecture with the following components:
The DataSeeds.AI Sample Dataset (DSD) focuses on:
blip2_image_train (364×364 resolution)blip_caption processorblip_image_eval for consistent validationIf you use this model in your research or applications, please cite:
@article{abdoli2025peerranked,
title={Peer-Ranked Precision: Creating a Foundational Dataset for Fine-Tuning Vision Models from GuruShots' Annotated Imagery},
author={Sajjad Abdoli and Freeman Lewin and Gediminas Vasiliauskas and Fabian Schonholz},
journal={arXiv preprint arXiv:2506.05673},
year={2025},
}
@misc{blip2-opt-dsd-finetune-2024,
title={BLIP2-OPT-2.7B Fine-tuned on DataSeeds.AI Dataset for Photography Analysis},
author={Dataseeds},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/Dataseeds/BLIP2-opt-2.7b-DSD-FineTune},
note={Fine-tuned model for photography scene analysis and technical description}
}
@inproceedings{li2023blip2,
title={BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models},
author={Li, Junnan and Li, Dongxu and Xiong, Caiming and Hoi, Steven},
booktitle={International Conference on Machine Learning},
pages={19730--19742},
year={2023},
organization={PMLR}
}
@article{zhang2022opt,
title={OPT: Open Pre-trained Transformer Language Models},
author={Zhang, Susan and Roller, Stephen and Goyal, Naman and Artetxe, Mikel and Chen, Moya and Chen, Shuohui and Dewan, Christopher and Diab, Mona and Li, Xian and Lin, Xi Victoria and others},
journal={arXiv preprint arXiv:2205.01068},
year={2022}
}
This model is released under the MIT license, consistent with the base BLIP2 model licensing terms.
This repository includes comprehensive training artifacts:
For questions, issues, or collaboration opportunities, please visit the model repository or contact the DataSeeds.AI team.