Downloads · 30 days
24
8% of all-time downloads
Ruggero1912/Patch-ioner_talk2dino_capdec_COCO_Captions
Patch-ioner_talk2dino_capdec_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 DECAP model from the Patch-ioner framework, presented in the paper "One Patch to Caption Them All: A Unified Zero-Shot Captioning Framework". Patch-ioner is designed for dense im…
Downloads · 30 days
24
8% of all-time downloads
All-time downloads
294
Public
Repo size
273 MB
Likes
0
Public
Click a slice to open those files.
.pt273 MB · 100%
From the Hugging Face model README
This repository contains a pre-trained DECAP model from the Patch-ioner framework, presented in the paper "One Patch to Caption Them All: A Unified Zero-Shot Captioning Framework". Patch-ioner is designed for dense image captioning and controllable visual description.
| Task | METEOR | CIDEr | SPICE |
|---|---|---|---|
| Image Captioning | 0.215 | 0.655 | 0.155 |
| Narratives | 11.500 | 29.300 | 12.300 |
from patch_ioner import load_model, Patchioner
# Load the model
config_path = "config.yaml"
model = load_model(config_path)
# Run inference
image_path = "your_image.jpg"
results = model.forward(image_path)
print(results)
from transformers import AutoModel
MODEL_ID = "Ruggero1912/Patch-ioner_talk2dino_capdec_COCO_Captions" # Example model ID
model = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True)
# Further usage would follow the Hugging Face Transformers pattern
config.yaml: Model configuration filecoco_karpathy-009.pt: Pre-trained model weightsREADME.md: This filepip 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.