Readme
This model doesn't have a readme.
Ad-Inpaint pro version with best quality. this version work just with transparent object.
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 fottoai/ad-inpaint-pro using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fottoai/ad-inpaint-pro:18b6e9b9e373ab7fcbf9c9083ddb5076eecd00822a01fcb194f26f1002cfe610",
input={
"prompt": "a photo of an astronaut riding a horse on mars",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "low quality, out of frame, illustration, 3d, sepia, painting, cartoons, sketch, watermark, text, Logo, advertisement, products",
"num_inference_steps": 50,
"object_fill_percent": 80,
"adapter_condition_scale": 0.8
}
)
# 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 A100 (80GB) GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.