Code Monkey home page Code Monkey logo

dreambooth-action's Introduction

DreamBooth Action

This is a template repo for training and publishing your own custom DreamBooth model using Replicate and GitHub Actions.

Preqrequisites

  • A paid Replicate account
  • A handful of training images

Training the model

๐Ÿฟ Like to learn by watching? Check out the video tutorial on YouTube

  1. ๐Ÿฃ Create your own copy of this repository by clicking the green "Use this template" button, then "Create a new repository". Name your new repository whatever you like, and choose whether you want to make it public or private.
  2. ๐Ÿ• Remove the cute puppy images in the data directory and replace them with your own images.
  3. ๐Ÿ’พ Commit your changes to git and push to your main branch on GitHub.
  4. ๐Ÿ•ต๏ธโ€โ™€๏ธ Copy your Replicate API token from replicate.com/account and create a repository secret named REPLICATE_API_TOKEN.
  5. ๐ŸŽฌ Trigger the workflow from your GitHub repo page: "Actions" > "Train a model" > "Run workflow".
  6. Go to the replicate.com homepage. At the top of your list of predictions, you'll see a replicate/dreambooth prediction in progress. This the request to train your model. Click that prediction to see the progress of the training process.
  7. โ˜•๏ธ Grab a coffee or a snack and watch the logs roll by! The training process takes a few minutes to run.

Running the model

Depending on the number of training steps you specified when running the workflow, the training process can take 10-40 minutes to run.

When the training process has completed successfully, it pushes the model to Replicate. You can run it like any other Replicate model, using the website or the API.

To run on the website, go to your dashboard then click on "Models".

Your new model will be private by default, and only visible to you. If you want anyone to be able to see and run your model, you can make it public in the Settings tab on your model page.

To run the model on the web, enter a prompt using the identifier you specified during training, e.g. a pencil sketch of zxz.

To run the model from your own code, click the API tab on your model page for instructions on running with Python, cURL, etc.

To learn more about running models on Replicate, take a look at the Python getting started guide or the HTTP API reference.

If you have questions, open an issue on this repo or find us in Discord.

dreambooth-action's People

Contributors

zeke avatar bfirsh avatar pranavred 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.