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.
arielreplicate /robust_video_matting:2d2de06a
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 arielreplicate/robust_video_matting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"arielreplicate/robust_video_matting:2d2de06a76a837a4ba92b6164bf8bfd3ddb524a1fb64b0d8ae055af17fa22503",
{
input: {
input_video: "https://replicate.delivery/pbxt/HqiUPeOL0NMmX1yzan5USbiFloRmxVcrKqBuslIlNdofpYAr/dance2.mp4",
output_type: "green-screen"
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 arielreplicate/robust_video_matting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"arielreplicate/robust_video_matting:2d2de06a76a837a4ba92b6164bf8bfd3ddb524a1fb64b0d8ae055af17fa22503",
input={
"input_video": "https://replicate.delivery/pbxt/HqiUPeOL0NMmX1yzan5USbiFloRmxVcrKqBuslIlNdofpYAr/dance2.mp4",
"output_type": "green-screen"
}
)
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 arielreplicate/robust_video_matting 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": "arielreplicate/robust_video_matting:2d2de06a76a837a4ba92b6164bf8bfd3ddb524a1fb64b0d8ae055af17fa22503",
"input": {
"input_video": "https://replicate.delivery/pbxt/HqiUPeOL0NMmX1yzan5USbiFloRmxVcrKqBuslIlNdofpYAr/dance2.mp4",
"output_type": "green-screen"
}
}' \
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": "2022-11-25T14:29:11.572602Z",
"created_at": "2022-11-25T14:26:35.172178Z",
"data_removed": false,
"error": null,
"id": "c4zkevc27fhntpw3ekgb2ok2sq",
"input": {
"input_video": "https://replicate.delivery/pbxt/HqiUPeOL0NMmX1yzan5USbiFloRmxVcrKqBuslIlNdofpYAr/dance2.mp4",
"output_type": "green-screen"
},
"logs": "0%| | 0/606 [00:00<?, ?it/s]\u001b[A\u001b[A\u001b[A\n 2%|▏ | 12/606 [00:02<01:56, 5.08it/s]\u001b[A\u001b[A\u001b[A\n 4%|▍ | 24/606 [00:04<01:48, 5.37it/s]\u001b[A\u001b[A\u001b[A\n 6%|▌ | 36/606 [00:06<01:46, 5.37it/s]\u001b[A\u001b[A\u001b[A\n 8%|▊ | 48/606 [00:10<02:06, 4.40it/s]\u001b[A\u001b[A\u001b[A\n 10%|▉ | 60/606 [00:13<02:11, 4.14it/s]\u001b[A\u001b[A\u001b[A\n 12%|█▏ | 72/606 [00:16<02:10, 4.09it/s]\u001b[A\u001b[A\u001b[A\n 14%|█▍ | 84/606 [00:19<02:07, 4.08it/s]\u001b[A\u001b[A\u001b[A\n 16%|█▌ | 96/606 [00:22<02:04, 4.09it/s]\u001b[A\u001b[A\u001b[A\n 18%|█▊ | 108/606 [00:25<02:02, 4.05it/s]\u001b[A\u001b[A\u001b[A\n 20%|█▉ | 120/606 [00:28<01:59, 4.07it/s]\u001b[A\u001b[A\u001b[A\n 22%|██▏ | 132/606 [00:31<01:56, 4.05it/s]\u001b[A\u001b[A\u001b[A\n 24%|██▍ | 144/606 [00:34<01:55, 4.00it/s]\u001b[A\u001b[A\u001b[A\n 26%|██▌ | 156/606 [00:37<01:52, 4.00it/s]\u001b[A\u001b[A\u001b[A\n 28%|██▊ | 168/606 [00:40<01:48, 4.02it/s]\u001b[A\u001b[A\u001b[A\n 30%|██▉ | 180/606 [00:43<01:45, 4.03it/s]\u001b[A\u001b[A\u001b[A\n 32%|███▏ | 192/606 [00:46<01:42, 4.04it/s]\u001b[A\u001b[A\u001b[A\n 34%|███▎ | 204/606 [00:49<01:41, 3.97it/s]\u001b[A\u001b[A\u001b[A\n 36%|███▌ | 216/606 [00:52<01:39, 3.93it/s]\u001b[A\u001b[A\u001b[A\n 38%|███▊ | 228/606 [00:55<01:37, 3.86it/s]\u001b[A\u001b[A\u001b[A\n 40%|███▉ | 240/606 [00:58<01:35, 3.83it/s]\u001b[A\u001b[A\u001b[A\n 42%|████▏ | 252/606 [01:01<01:31, 3.87it/s]\u001b[A\u001b[A\u001b[A\n 44%|████▎ | 264/606 [01:04<01:26, 3.93it/s]\u001b[A\u001b[A\u001b[A\n 46%|████▌ | 276/606 [01:07<01:22, 3.98it/s]\u001b[A\u001b[A\u001b[A\n 48%|████▊ | 288/606 [01:10<01:21, 3.92it/s]\u001b[A\u001b[A\u001b[A\n 50%|████▉ | 300/606 [01:14<01:19, 3.87it/s]\u001b[A\u001b[A\u001b[A\n 51%|█████▏ | 312/606 [01:17<01:16, 3.84it/s]\u001b[A\u001b[A\u001b[A\n 53%|█████▎ | 324/606 [01:20<01:12, 3.88it/s]\u001b[A\u001b[A\u001b[A\n 55%|█████▌ | 336/606 [01:23<01:08, 3.95it/s]\u001b[A\u001b[A\u001b[A\n 57%|█████▋ | 348/606 [01:26<01:04, 3.98it/s]\u001b[A\u001b[A\u001b[A\n 59%|█████▉ | 360/606 [01:29<01:01, 3.97it/s]\u001b[A\u001b[A\u001b[A\n 61%|██████▏ | 372/606 [01:32<00:59, 3.95it/s]\u001b[A\u001b[A\u001b[A\n 63%|██████▎ | 384/606 [01:35<00:56, 3.95it/s]\u001b[A\u001b[A\u001b[A\n 65%|██████▌ | 396/606 [01:38<00:52, 3.99it/s]\u001b[A\u001b[A\u001b[A\n 67%|██████▋ | 408/606 [01:41<00:49, 3.98it/s]\u001b[A\u001b[A\u001b[A\n 69%|██████▉ | 420/606 [01:44<00:47, 3.94it/s]\u001b[A\u001b[A\u001b[A\n 71%|███████▏ | 432/606 [01:47<00:43, 3.98it/s]\u001b[A\u001b[A\u001b[A\n 73%|███████▎ | 444/606 [01:50<00:40, 3.97it/s]\u001b[A\u001b[A\u001b[A\n 75%|███████▌ | 456/606 [01:53<00:38, 3.92it/s]\u001b[A\u001b[A\u001b[A\n 77%|███████▋ | 468/606 [01:56<00:34, 3.95it/s]\u001b[A\u001b[A\u001b[A\n 79%|███████▉ | 480/606 [01:59<00:31, 3.96it/s]\u001b[A\u001b[A\u001b[A\n 81%|████████ | 492/606 [02:02<00:28, 3.95it/s]\u001b[A\u001b[A\u001b[A\n 83%|████████▎ | 504/606 [02:06<00:26, 3.81it/s]\u001b[A\u001b[A\u001b[A\n 85%|████████▌ | 516/606 [02:09<00:23, 3.77it/s]\u001b[A\u001b[A\u001b[A\n 87%|████████▋ | 528/606 [02:12<00:20, 3.83it/s]\u001b[A\u001b[A\u001b[A\n 89%|████████▉ | 540/606 [02:15<00:16, 3.91it/s]\u001b[A\u001b[A\u001b[A\n 91%|█████████ | 552/606 [02:18<00:13, 3.97it/s]\u001b[A\u001b[A\u001b[A\n 93%|█████████▎| 564/606 [02:21<00:10, 3.93it/s]\u001b[A\u001b[A\u001b[A\n 95%|█████████▌| 576/606 [02:24<00:07, 3.88it/s]\u001b[A\u001b[A\u001b[A\n 97%|█████████▋| 588/606 [02:27<00:04, 3.91it/s]\u001b[A\u001b[A\u001b[A\n 99%|█████████▉| 600/606 [02:30<00:01, 3.93it/s]\u001b[A\u001b[A\u001b[A\n100%|██████████| 606/606 [02:32<00:00, 3.89it/s]\u001b[A\u001b[A\u001b[A",
"metrics": {
"predict_time": 156.3639,
"total_time": 156.400424
},
"output": "https://replicate.delivery/pbxt/HuwFjWn7A9bcH5CfhQ7KO79N3z4uZf9sTtLoo4PDnXY2MoDQA/green-screen.mp4",
"started_at": "2022-11-25T14:26:35.208702Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/c4zkevc27fhntpw3ekgb2ok2sq",
"cancel": "https://api.replicate.com/v1/predictions/c4zkevc27fhntpw3ekgb2ok2sq/cancel"
},
"version": "2d2de06a76a837a4ba92b6164bf8bfd3ddb524a1fb64b0d8ae055af17fa22503"
}
0%| | 0/606 [00:00<?, ?it/s]
2%|▏ | 12/606 [00:02<01:56, 5.08it/s]
4%|▍ | 24/606 [00:04<01:48, 5.37it/s]
6%|▌ | 36/606 [00:06<01:46, 5.37it/s]
8%|▊ | 48/606 [00:10<02:06, 4.40it/s]
10%|▉ | 60/606 [00:13<02:11, 4.14it/s]
12%|█▏ | 72/606 [00:16<02:10, 4.09it/s]
14%|█▍ | 84/606 [00:19<02:07, 4.08it/s]
16%|█▌ | 96/606 [00:22<02:04, 4.09it/s]
18%|█▊ | 108/606 [00:25<02:02, 4.05it/s]
20%|█▉ | 120/606 [00:28<01:59, 4.07it/s]
22%|██▏ | 132/606 [00:31<01:56, 4.05it/s]
24%|██▍ | 144/606 [00:34<01:55, 4.00it/s]
26%|██▌ | 156/606 [00:37<01:52, 4.00it/s]
28%|██▊ | 168/606 [00:40<01:48, 4.02it/s]
30%|██▉ | 180/606 [00:43<01:45, 4.03it/s]
32%|███▏ | 192/606 [00:46<01:42, 4.04it/s]
34%|███▎ | 204/606 [00:49<01:41, 3.97it/s]
36%|███▌ | 216/606 [00:52<01:39, 3.93it/s]
38%|███▊ | 228/606 [00:55<01:37, 3.86it/s]
40%|███▉ | 240/606 [00:58<01:35, 3.83it/s]
42%|████▏ | 252/606 [01:01<01:31, 3.87it/s]
44%|████▎ | 264/606 [01:04<01:26, 3.93it/s]
46%|████▌ | 276/606 [01:07<01:22, 3.98it/s]
48%|████▊ | 288/606 [01:10<01:21, 3.92it/s]
50%|████▉ | 300/606 [01:14<01:19, 3.87it/s]
51%|█████▏ | 312/606 [01:17<01:16, 3.84it/s]
53%|█████▎ | 324/606 [01:20<01:12, 3.88it/s]
55%|█████▌ | 336/606 [01:23<01:08, 3.95it/s]
57%|█████▋ | 348/606 [01:26<01:04, 3.98it/s]
59%|█████▉ | 360/606 [01:29<01:01, 3.97it/s]
61%|██████▏ | 372/606 [01:32<00:59, 3.95it/s]
63%|██████▎ | 384/606 [01:35<00:56, 3.95it/s]
65%|██████▌ | 396/606 [01:38<00:52, 3.99it/s]
67%|██████▋ | 408/606 [01:41<00:49, 3.98it/s]
69%|██████▉ | 420/606 [01:44<00:47, 3.94it/s]
71%|███████▏ | 432/606 [01:47<00:43, 3.98it/s]
73%|███████▎ | 444/606 [01:50<00:40, 3.97it/s]
75%|███████▌ | 456/606 [01:53<00:38, 3.92it/s]
77%|███████▋ | 468/606 [01:56<00:34, 3.95it/s]
79%|███████▉ | 480/606 [01:59<00:31, 3.96it/s]
81%|████████ | 492/606 [02:02<00:28, 3.95it/s]
83%|████████▎ | 504/606 [02:06<00:26, 3.81it/s]
85%|████████▌ | 516/606 [02:09<00:23, 3.77it/s]
87%|████████▋ | 528/606 [02:12<00:20, 3.83it/s]
89%|████████▉ | 540/606 [02:15<00:16, 3.91it/s]
91%|█████████ | 552/606 [02:18<00:13, 3.97it/s]
93%|█████████▎| 564/606 [02:21<00:10, 3.93it/s]
95%|█████████▌| 576/606 [02:24<00:07, 3.88it/s]
97%|█████████▋| 588/606 [02:27<00:04, 3.91it/s]
99%|█████████▉| 600/606 [02:30<00:01, 3.93it/s]
100%|██████████| 606/606 [02:32<00:00, 3.89it/s]