Code Monkey home page Code Monkey logo

caption-api's Introduction

Caption API

API to get captions from images, using OFA captioning method

OFA Repo link https://github.com/OFA-Sys/OFA.git

To use this, download the captioning checkpoint from https://ofa-beijing.oss-cn-beijing.aliyuncs.com/checkpoints/caption_large_best_clean.pt Or refer the model card and download the required model https://github.com/OFA-Sys/OFA/blob/main/checkpoints.md

Rename that file to "checkpoints.pt" Move checkpoints.pt to a folder named checkpoints and the folder checkpoints should be in the main directory

The directory should look like this

Directory

The checkpoints folder should contain the captioning checkpoint/model file (checkpoint.pt) as shown

checkpoint.pt file in checkpoints folder

Overall directory structure should look like this

Directory structure

Now the docker image can be built using the Dockerfile

OFA link: https://github.com/OFA-Sys/OFA.git

More about OFA

(Wang, P., Yang, A., Men, R., Lin, J., Bai, S., Li, Z., Ma, J., Zhou, C., Zhou, J., & Yang, H. (2022). OFA: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. https://doi.org/10.48550/ARXIV.2202.03052)

caption-api's People

Contributors

harish32k avatar

Watchers

 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.