okaris / cake-fake

A model to feed Replicate DreamBooth API with your trained weights.

  • Public
  • 29K runs
  • CPU
  • GitHub
Iterate in playground

Input

pip install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import the client:
import replicate

Run okaris/cake-fake using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "okaris/cake-fake:67ed7bdd963768fc3f29e7ed91c8c8926b783342cb8dce694e02d833002c3ea7",
    input={}
)
print(output)

To learn more, take a look at the guide on getting started with Python.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model costs approximately $0.0028 to run on Replicate, or 357 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on CPU hardware. Predictions typically complete within 29 seconds.

Readme

A model to feed Replicate DreamBooth API with your trained weights.

Model description

This is a very simple model that just returns the zipped weights from the input without any processing. (Except a file rename)

Intended use

This model is intended to be used with the Replicate Dreambooth API

If you already have trained weights and you don’t need to train again to use the DreamBooth API, you can just use this model’s version for the DB API trainer_version parameter to have your trained model pushed to Replicate.

Sample request:

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": "6328d359553f398f3bef3d42a26b21f86e43a9e9a3060bd6fa6d6cb388758fcc",
            "webhook_completed": "https://example.com/dreambooth-webhook"
        }' \
    https://dreambooth-api-experimental.replicate.com/v1/trainings