Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
This version has been disabled because it consistently fails to complete setup.
Input
Run this model in Node.js with one line of code:
npm 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 from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run meta/cutler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"meta/cutler:321c2643ba1b2c6120873087850797e3c61c8ef3aa165316a170f67c2bcbb185",
{
input: {
tau: 0.15,
image: "https://replicate.delivery/pbxt/IDmtSzMT5KfvkkeDYpJEiuzqW8hJ6qQyLVpoNXINY3M5WXQ1/demo3.jpeg",
model: "base",
patch_size: 8,
vit_features: "k",
n_pseudo_masks: 3,
output_pseudo_mask_list: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
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 meta/cutler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"meta/cutler:321c2643ba1b2c6120873087850797e3c61c8ef3aa165316a170f67c2bcbb185",
input={
"tau": 0.15,
"image": "https://replicate.delivery/pbxt/IDmtSzMT5KfvkkeDYpJEiuzqW8hJ6qQyLVpoNXINY3M5WXQ1/demo3.jpeg",
"model": "base",
"patch_size": 8,
"vit_features": "k",
"n_pseudo_masks": 3,
"output_pseudo_mask_list": False
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run meta/cutler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "meta/cutler:321c2643ba1b2c6120873087850797e3c61c8ef3aa165316a170f67c2bcbb185",
"input": {
"tau": 0.15,
"image": "https://replicate.delivery/pbxt/IDmtSzMT5KfvkkeDYpJEiuzqW8hJ6qQyLVpoNXINY3M5WXQ1/demo3.jpeg",
"model": "base",
"patch_size": 8,
"vit_features": "k",
"n_pseudo_masks": 3,
"output_pseudo_mask_list": false
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-01-29T14:22:22.678994Z",
"created_at": "2023-01-29T14:21:49.501328Z",
"data_removed": false,
"error": null,
"id": "4lwqk6a6lzcejodcpuhz3edo2i",
"input": {
"tau": 0.15,
"image": "https://replicate.delivery/pbxt/IDmtSzMT5KfvkkeDYpJEiuzqW8hJ6qQyLVpoNXINY3M5WXQ1/demo3.jpeg",
"model": "base",
"patch_size": 8,
"vit_features": "k",
"n_pseudo_masks": 3
},
"logs": "Loading weight from weights/dino_vitbase8_pretrain.pth",
"metrics": {
"predict_time": 33.134322,
"total_time": 33.177666
},
"output": {
"visualisation": "https://replicate.delivery/pbxt/Hw8OqGlperUJMS7qFelzFrk7kYN7WE2IC0KaojNlQJAdMDZQA/out.png",
"pseudo_mask_list": null
},
"started_at": "2023-01-29T14:21:49.544672Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/4lwqk6a6lzcejodcpuhz3edo2i",
"cancel": "https://api.replicate.com/v1/predictions/4lwqk6a6lzcejodcpuhz3edo2i/cancel"
},
"version": "321c2643ba1b2c6120873087850797e3c61c8ef3aa165316a170f67c2bcbb185"
}
Loading weight from weights/dino_vitbase8_pretrain.pth