CoolFace
Modelpublic

Ruggero1912/Patch-ioner_talk2dino_decap_COCO_Captions

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes77downloads
Model Card

Patch-ionertalk2dinodecapCOCOCaptions - Patch-ioner Configuration

This repository contains a pre-trained DECAP model from the Patch-ioner framework for dense image captioning and controllable visual description.

๐Ÿ“ Paper Information

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

๐ŸŽฏ Model Overview

  • โ€”Model Type: DECAP
  • โ€”Configuration: mlp.karpathy.yaml
  • โ€”Vision Backbone: dinov2vitb14reg
  • โ€”Language Model: GPT-2
  • โ€”Input Resolution: 518x518
  • โ€”Prefix Size: 768

DeCap Configuration

  • โ€”Memory Bank Size: 591,753 entries
  • โ€”Projection Type: /raid/datasets/im2txtmemories/cocotrainkarpathy.json
  • โ€”Linear Talk2DINO: False

๐Ÿ“Š Performance

| Task | METEOR | CIDEr | SPICE | |------|--------|-------|-------|\ | Image Captioning | 0.239 | 0.885 | 0.182 |\ | Narratives | 10.700 | 27.900 | 12.600 |

๐Ÿ“ˆ Detailed Results

Image Captioning Results

  • โ€”METEOR: 0.2393
  • โ€”CIDEr: 0.8846
  • โ€”SPICE: 0.1821
  • โ€”BLEU_4: 0.2364
  • โ€”ROUGE_L: 0.4854
  • โ€”CLIP-S: 0.7602

Narratives Results

  • โ€”METEOR: 10.7000
  • โ€”CIDEr: 27.9000
  • โ€”SPICE: 12.6000
  • โ€”BLEU_4: 2.5000
  • โ€”ROUGE_L: 23.2000
  • โ€”CLIP-S: 68.0000

๐Ÿš€ Quick Start

python
from patchioner import Patchioner
from transformers import AutoModel

MODEL_ID = "Ruggero1912/Patch-ioner_talk2dino_decap_COCO_Captions"

# Option 1: Using Patchioner's native API
model_native = Patchioner.from_config(MODEL_ID)
print("Model loaded via native Patchioner API.")

# Option 2: Using Hugging Face Transformers AutoModel
model_hf = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True)
print("Model loaded via Hugging Face Transformers AutoModel.")

# For full usage examples, including inference, please refer to the model's
# GitHub repository: https://github.com/Ruggero1912/Patch-ioner

๐Ÿ“ Repository Contents

  • โ€”config.yaml: Model configuration file
  • โ€”coco_karpathy-009.pt: Pre-trained model weights
  • โ€”coco_captions_text_embeddings-B16-ViT-B.16-591753.h5: Memory bank for text projection- README.md: This file

๐Ÿ”ง Installation

bash
pip install git+https://github.com/Ruggero1912/Patch-ioner

๐Ÿ’ก Usage Examples

Refer to the Patch-ioner GitHub repository for updated usage examples.

๐ŸŽ›๏ธ Model Configuration

  • โ€”Prefix Size: 768
  • โ€”Memory Bank Size: 591,753 entries
  • โ€”Normalization: True

๐Ÿ“ˆ Training Details

  • โ€”Training Dataset: COCO Captions
  • โ€”Training Epochs: TBD
  • โ€”Batch Size: TBD
  • โ€”Learning Rate: TBD
  • โ€”Optimizer: AdamW

๐Ÿ“š Citation

If you use this model in your research, please cite our paper:

bibtex
@misc{bianchi2025patchcaptionallunified,
      title={One Patch to Caption Them All: A Unified Zero-Shot Captioning Framework},
      author={Lorenzo Bianchi and Giacomo Pacini and Fabio Carrara and Nicola Messina and Giuseppe Amato and Fabrizio Falchi},
      year={2025},
      eprint={2510.02898},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2510.02898},
}

๐Ÿค Contributing

We welcome contributions to improve the Patch-ioner framework. Please see the main repository for contribution guidelines.

๐Ÿ“„ License

See the main repository for detailed license information.

๐Ÿ› Issues and Support

For issues related to this model or the Patch-ioner framework, please:

  1. 1.Check the main repository for existing issues
  2. 2.Open a new issue with detailed information about your problem
  3. 3.Contact the authors.

๐Ÿ”— Related Models

Explore other Patch-ioner model configurations:

More models available in [Ruggero1912's models](https://huggingface.co/Ruggero1912)


This model is part of the Patch-ioner framework for dense image captioning and controllable visual description.