Coder Social home page Coder Social logo

ventz / blip_image_caption_demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sabirdvd/blip_image_caption_demo

1.0 0.0 0.0 2.22 MB

BLIP image caption demo - medium post blog

Home Page: http://bit.ly/3KLX9c0

Python 1.64% Jupyter Notebook 98.36%

blip_image_caption_demo's Introduction

BLIP image caption extended demo

Please refer to this medium blog post for more detail.

The original paper and colab

arXiv Open In Collab

For image captioning only with the Larger model with the two proposed caption generation methods (beam search and nucleus sampling), that runs on your local machine with multiple images:

Open In Collab

conda create -n BLIP_demo python=3.7 anaconda
conda activate BLIP_demo
git clone https://github.com/salesforce/BLIP
pip install -r requirements.txt

git clone https://github.com/sabirdvd/BLIP_image_caption_demo.git
cp caption_Inference_L.py ../
python caption_Inference_L.py

For COCO Caption Karpathy test (image caption dataset COCO benchmark) (my run using the L_check_point)

Download COCO-caption metrics from here

python coco_eval_run.py
model B1 B2 B3 B4 M C S
BLIP_ViT-L Nucleus Sampling 0.660 0.456 0.308 0.205 0.239 0.869 0.190
BLIP_ViT-L paper result (BS) 0.797 0.649 0.514 0.403 0.311 1.365 0.243

Please refer to the original work for main information

https://github.com/salesforce/BLIP

blip_image_caption_demo's People

Contributors

sabirdvd avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.