Downloads · 30 days
25
7% of all-time downloads
Ruggero1912/Patch-ioner_talk2dino_meacap_COCO_Captions
Patch-ioner_talk2dino_meacap_COCO_Captions is a image-to-text model from Ruggero1912. 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 repository contains a pre-trained MEACAP model from the Patch-ioner framework for dense image captioning and controllable visual description.
Downloads · 30 days
25
7% of all-time downloads
All-time downloads
357
Public
Repo size
3.3 GB
Likes
0
Public
Click a slice to open those files.
.pt3.3 GB · 99%
From the Hugging Face model README
This repository contains a pre-trained MEACAP model from the Patch-ioner framework for dense image captioning and controllable visual description.
Title: "One Patch to Caption Them All: A Unified Zero-Shot Captioning Framework"
Authors: Lorenzo Bianchi, Giacomo Pacini, Fabio Carrara, Nicola Messina, Giuseppe Amato, Fabrizio Falchi
ArXiv: https://arxiv.org/abs/2510.02898
Project Page: https://paciosoft.com/Patch-ioner/
Code: https://github.com/Ruggero1912/Patch-ioner
| Task | METEOR | CIDEr | SPICE |
|---|---|---|---|
| Image Captioning | 0.207 | 0.717 | 0.157 |
| Narratives | 10.000 | 27.400 | 12.700 |
from transformers import AutoModel
import torch
from PIL import Image
MODEL_ID = "Ruggero1912/Patch-ioner_talk2dino_meacap_COCO_Captions"
# Load the model with AutoModel from the transformers library
model = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True)
# Example image (replace with your actual image loading logic)
# For a real scenario, you would load an image from a file or URL.
# e.g., image = Image.open("path/to/your/image.jpg")
image = Image.new('RGB', (224, 224), color = 'red') # Placeholder image
# The specific `forward` method signature depends on the model's implementation
# within the `patchioner` library. You might need to preprocess the image
# and provide additional inputs (e.g., text prompts for controllable captioning).
# Please refer to the official GitHub repository for detailed inference examples
# using the `Patchioner` library's specific `forward` methods.
# If the model has a simplified call for basic captioning, it might look like this:
# results = model(image)
# print(results)
print(f"Model {MODEL_ID} loaded successfully using `transformers.AutoModel`. "
"Refer to the original Patch-ioner GitHub for full usage details and example inference.")
config.yaml: Model configuration file
model.pt: Pre-trained model weights
memory_captions.json: MeaCap memory captions database
memory_clip_embeddings.pt: MeaCap CLIP embeddings for memory
memory_wte_embeddings.pt: MeaCap WTE embeddings for memory- README.md: This file
pip install git+https://github.com/Ruggero1912/Patch-ioner
Refer to the Patch-ioner repository for updated usage examples.
If you use this model in your research, please cite our paper, refer to the Project Page for updated citation template.
We welcome contributions to improve the Patch-ioner framework. Please see the main repository for contribution guidelines.
See the main repository for detailed license information.
For issues related to this model or the Patch-ioner framework, please:
Explore other Patch-ioner model configurations:
More models available in Ruggero1912's models
This model is part of the Patch-ioner framework for dense image captioning and controllable visual description.