vetkastar / rem-bg

  • Public
  • 66 runs
  • T4
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 vetkastar/rem-bg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "vetkastar/rem-bg:03556f3ce0b34634ce275346b83a28b25bc385e8d51199aca761b8a95deaf9df",
    input={
        "object_type": "hairs-like",
        "seg_mask_size": 640,
        "trimap_erosion": 5,
        "trimap_dilation": 30
    }
)
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 T4 GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.