Run anotherjesse/cpu-sd using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"anotherjesse/cpu-sd:b658680803abd2ea5520f42789fae6a9fa6a6c2d2468299fe6cc52a655bf52ee",
input={
"width": 512,
"height": 512,
"prompt": "photo of cjw person",
"scheduler": "DPMSolverMultistep",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50,
"disable_safety_check": False
}
)
# The anotherjesse/cpu-sd model can stream output as it's running.# The predict method returns an iterator, and you can iterate over that output.for item in output:
# https://replicate.com/anotherjesse/cpu-sd/api#output-schemaprint(item)