andreasjansson / andreambooth

(Updated 2 years, 4 months ago)

  • Public
  • 324 runs
  • L40S
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 andreasjansson/andreambooth using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "andreasjansson/andreambooth:d5988cb17e2db712f3ea255412cb150cd33f5de2f0e5f70589bdba9fa927b8ae",
    input={
        "width": 512,
        "height": 512,
        "prompt": "a photo of a cjw person",
        "scheduler": "DDIM",
        "num_outputs": 1,
        "guidance_scale": 7.5,
        "prompt_strength": 0.8,
        "num_inference_steps": 50,
        "disable_safety_check": False
    }
)
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.0037 to run on Replicate, or 270 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 Nvidia L40S GPU hardware. Predictions typically complete within 4 seconds.

Readme

Model description

Intended use

Ethical considerations

Caveats and recommendations