Giter Site home page Giter Site logo

spdrstar / replicate-dreambooth-model-pusher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from okaris/replicate-dreambooth-model-pusher

0.0 0.0 0.0 2 KB

Feeds the Replicate DreamBooth API back with the input weights so it can do its magic and push a trained model for you.

Python 100.00%

replicate-dreambooth-model-pusher's Introduction

Replicate DreamBooth API Weight Pusher

This Cog model allows you to easily push trained model weights using the Replicate DreamBooth API. Simply feed in your input weights in the form of a zip file containing the trained model weights, and let the API do the rest. The trained model will then be pushed by cog and you will recieve your model version.

Usage

  1. First clone the repo and follow the instructions here to push your model to Replicate using Cog

You will receive a version of the new model you have created from Cog

Then use the Replicate DreamBooth API to push a model with your trained weights.

You will need to pass the url of the zipped weights as the input for the Replicate DreamBooth API

curl -X POST \
    -H "Authorization: Token $REPLICATE_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
            "input": {
                "instance_prompt": "$WEIGHTS_URL"
            },
            "model": "yourusername/yourmodel",
            "trainer_version": "$MODEL_VERSION",
            "webhook_completed": "https://example.com/dreambooth-webhook"
        }' \
    https://dreambooth-api-experimental.replicate.com/v1/trainings

The API will then call your webhook with a version of your trained model pushed to Replicate cluster that you can use in your application.

More information

You can find more information about the DreamBooth API, including how to use it and example code, on our website at: https://replicate.com/blog/dreambooth-api

Note

Please check the API documentation for more details on the input format, endpoint and any other parameter that could be required.

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.