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 fine-tuned on the DataSeeds.AI Sample Dataset (DSD), containing 10,610 curated photography images with comprehensive annotations:
The fine-tuned model shows significant improvements in lexical overlap metrics, with notable trade-offs in semantic understanding:
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.
1from transformers import Blip2Processor, Blip2ForConditionalGeneration
2import torch
3from PIL import Image
4
5# Load model and processor
6processor = Blip2Processor.from_pretrained("Dataseeds/BLIP2-opt-2.7b-DSD-FineTune")
7model = Blip2ForConditionalGeneration.from_pretrained(
8 "Dataseeds/BLIP2-opt-2.7b-DSD-FineTune",
9 torch_dtype=torch.float16,
10 device_map="auto"
11)
12
13# Load and process image
14image = Image.open("your_image.jpg")
15inputs = processor(image, return_tensors="pt").to(model.device, torch.float16)
16
17# Generate caption
18generated_ids = model.generate(
19 **inputs,
20 max_length=100,
21 min_length=8,
22 num_beams=5,
23 do_sample=False
24)
25
26caption = processor.decode(generated_ids[0], skip_special_tokens=True)
27print(f"Generated caption: {caption}")
1@article{abdoli2025peerranked,
2 title={Peer-Ranked Precision: Creating a Foundational Dataset for Fine-Tuning Vision Models from GuruShots' Annotated Imagery},
3 author={Sajjad Abdoli and Freeman Lewin and Gediminas Vasiliauskas and Fabian Schonholz},
4 journal={arXiv preprint arXiv:2506.05673},
5 year={2025},
6}
7
8@misc{blip2-opt-dsd-finetune-2024,
9 title={BLIP2-OPT-2.7B Fine-tuned on DataSeeds.AI Dataset for Photography Analysis},
10 author={Dataseeds},
11 year={2024},
12 publisher={Hugging Face},
13 url={https://huggingface.co/Dataseeds/BLIP2-opt-2.7b-DSD-FineTune},
14 note={Fine-tuned model for photography scene analysis and technical description}
15}
16
17@inproceedings{li2023blip2,
18 title={BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models},
19 author={Li, Junnan and Li, Dongxu and Xiong, Caiming and Hoi, Steven},
20 booktitle={International Conference on Machine Learning},
21 pages={19730--19742},
22 year={2023},
23 organization={PMLR}
24}
25
26@article{zhang2022opt,
27 title={OPT: Open Pre-trained Transformer Language Models},
28 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},
29 journal={arXiv preprint arXiv:2205.01068},
30 year={2022}
31}
This model is released under the MIT license, consistent with the base BLIP2 model licensing terms.