CoolFace
Modelpublic

Ruggero1912/Patch-ioner_talk2dino_viecap_COCO_Captions

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

Patch-ionertalk2dinoviecapCOCOCaptions - Patch-ioner Configuration

This repository contains a pre-trained VIECAP 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/

๐Ÿ’ป GitHub Repository

The official code repository for Patch-ioner can be found here: https://github.com/Ruggero1912/Patch-ioner

๐ŸŽฏ Model Overview

  • โ€”Model Type: VIECAP
  • โ€”Configuration: mlp.viecap.k.yaml
  • โ€”Vision Backbone: dinov2vitb14reg
  • โ€”Language Model: gpt2
  • โ€”Input Resolution: 518x518
  • โ€”Prefix Size: 768

VieCap Configuration

  • โ€”Continuous Prompt Length: 10
  • โ€”Clip Project Length: 10
  • โ€”Temperature: 0.01
  • โ€”Top-K: 3
  • โ€”Entity Retrieval: coco_entities

๐Ÿ“Š Performance

TaskMETEORCIDErSPICE
Image Captioning0.2250.7690.161
Narratives10.70028.20012.500

๐Ÿ“ˆ Detailed Results

Image Captioning Results

  • โ€”METEOR: 0.2250
  • โ€”CIDEr: 0.7690
  • โ€”SPICE: 0.1612
  • โ€”BLEU_4: 0.2362
  • โ€”ROUGE_L: 0.4779
  • โ€”CLIP-S: 0.7188

Narratives Results

  • โ€”METEOR: 10.7000
  • โ€”CIDEr: 28.2000
  • โ€”SPICE: 12.5000
  • โ€”BLEU_4: 2.6000
  • โ€”ROUGE_L: 23.1000
  • โ€”CLIP-S: 66.5000

๐Ÿš€ Quick Start

python
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)

transformers Sample Usage

The model can also be loaded using the transformers library:

python
from transformers import AutoModel

MODEL_ID = "Ruggero1912/Patch-ioner_talk2dino_viecap_COCO_Captions" # Note: use the correct MODEL_ID for this repository
model = AutoModel.from_pretrained(MODEL_ID, trust_remote_code=True)

๐Ÿ“ Repository Contents

  • โ€”config.yaml: Model configuration file
  • โ€”model.pt: Pre-trained model weights
  • โ€”README.md: This file

๐Ÿ”ง Installation

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

๐Ÿ’ก Usage Examples

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

๐ŸŽ›๏ธ Model Configuration

  • โ€”Prefix Size: 768
  • โ€”Memory Bank Size: 0
  • โ€”Normalization: False

๐Ÿ“ˆ 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, refer to the Project Page for updated citation template.

๐Ÿค 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.