usamaehsan / instant-id-x-better

  • Public
  • 16 runs
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 usamaehsan/instant-id-x-better using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "usamaehsan/instant-id-x-better:d3753bc83005c1743fdd0108193b0de7b062ee01e11cf99cef2a9ccb7aec19bb",
    input={
        "style": "(No style)",
        "max_width": 512,
        "max_height": 512,
        "guidance_scale": 5,
        "enhance_face_region": True,
        "num_inference_steps": 20,
        "adapter_strength_ratio": 0.8,
        "identitynet_strength_ratio": 0.8
    }
)
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 runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.