Coder Social home page Coder Social logo

cog-deep-danbooru's Introduction

cog-deep-danbooru

A Docker container generated using Cog. Cog is TOTALLY AWESOME and makes packaging ML models into API driven Docker containers insanely easy. Check it out!

Deep Danbooru is a model trained on images and tags from the anime image hosting website Danbooru. This model takes an input image and then returns a dictionary of descriptor tags relating to the image, similar to how Danbooru categorizes images. This model is extremely useful when it comes to generating images with the Stable Diffusion machine learning model, as it helps provide useful image descriptors for image generation.

Usage

  1. Obtain a token from hugging face for model download
  2. Build with cog build
  3. Run docker run -d --gpus all -p "5000:5000" -e TOKEN=hf_token_here built_image_name_here:latest
  4. Access API documentations at GET http://host:5000/
  5. POST an image and receive tags back

Citations

@misc{danbooru2018resnet,
    author = {Matthew Baas},
    title = {Danbooru2018 pretrained resnet models for PyTorch},
    howpublished = {\url{https://rf5.github.io}},
    url = {https://rf5.github.io/2019/07/08/danbuuro-pretrained.html},
    type = {pretrained model},
    year = {2019},
    month = {July},
    timestamp = {2019-07-08},
    note = {Accessed: DATE}
}

cog-deep-danbooru's People

Contributors

maxwlang 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.