annyyhyang / smart_scop_sam

Use smart crop as the bounding box and use SAM to get the mask

  • Public
  • 26 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 annyyhyang/smart_scop_sam using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "annyyhyang/smart_scop_sam:649884da844173c3c59e873d7333bbcfa8eeaf75c39d470615df6484eb9b9641",
    input={
        "mask_only": False,
        "mask_limit": 1,
        "multimask_output": False
    }
)
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 costs approximately $0.0014 to run on Replicate, or 714 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 7 seconds.

Readme

This model doesn't have a readme.