Readme
…
Model description
…
Intended use
…
Ethical considerations
…
Caveats and recommendations
…
December 2022 version of dreambooth template
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run anotherjesse/dreambooth-template using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"anotherjesse/dreambooth-template:9352cd1d29df88658f98f0abba4413e853c44e46a52d633d0642285075b386e1",
input={
"width": 512,
"height": 512,
"prompt": "a photo of cjw",
"scheduler": "DDIM",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50,
"disable_safety_check": False
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia T4 GPU hardware. We don't yet have enough runs of this model to provide performance information.
…
…
…
…
…