okaris / cake-fake

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

  • Public
  • 29K runs
  • CPU
  • GitHub

Input

*string
Shift + Return to add a new line

A ZIP file containing your trained weights.

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