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.
viktorfa /oot_segmentation:029c7a32
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 viktorfa/oot_segmentation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"viktorfa/oot_segmentation:029c7a3275615693983f1186a94d3c02a5a46750a763e5deb30c1b608b7c3003",
{
input: {
model_image: "https://raw.githubusercontent.com/viktorfa/oot_diffusion/main/oot_diffusion/assets/model_1.png"
}
}
);
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 viktorfa/oot_segmentation using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"viktorfa/oot_segmentation:029c7a3275615693983f1186a94d3c02a5a46750a763e5deb30c1b608b7c3003",
input={
"model_image": "https://raw.githubusercontent.com/viktorfa/oot_diffusion/main/oot_diffusion/assets/model_1.png"
}
)
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 viktorfa/oot_segmentation 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": "viktorfa/oot_segmentation:029c7a3275615693983f1186a94d3c02a5a46750a763e5deb30c1b608b7c3003",
"input": {
"model_image": "https://raw.githubusercontent.com/viktorfa/oot_diffusion/main/oot_diffusion/assets/model_1.png"
}
}' \
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": "2024-02-27T16:54:59.321984Z",
"created_at": "2024-02-27T16:50:32.308395Z",
"data_removed": false,
"error": null,
"id": "myi6nqzbhs5h7g5lwdgv6bznfy",
"input": {
"model_image": "https://raw.githubusercontent.com/viktorfa/oot_diffusion/main/oot_diffusion/assets/model_1.png"
},
"logs": "0%| | 0/1 [00:00<?, ?it/s]\n100%|██████████| 1/1 [00:37<00:00, 37.49s/it]\n100%|██████████| 1/1 [00:37<00:00, 37.49s/it]\n 0%| | 0/1 [00:00<?, ?it/s]\n100%|██████████| 1/1 [00:00<00:00, 4.97it/s]\n100%|██████████| 1/1 [00:00<00:00, 4.95it/s]\nModel parse in 40.01 seconds.\nOpen pose in 1.55 seconds.",
"metrics": {
"predict_time": 42.85964,
"total_time": 267.013589
},
"output": {
"mask": "https://replicate.delivery/pbxt/Y7LPG8Wf6YzoLKLZeDg5Faiz5fVU9I6JgAo5SSHW9GZFv41kA/tmp2gpxjswu.png",
"face_mask": "https://replicate.delivery/pbxt/exkuRgQPv3wYekdkUNqiFXsqn2KIfGDekmG6lghcM9ROeiXTC/tmph2grkjcm.png",
"model_mask": "https://replicate.delivery/pbxt/PYWubkbZIM5mJBu8Cn6VP7mlHc3VqpHThnbKd8YdYrn4FvmE/tmpv54oetly.png",
"model_parse": "https://replicate.delivery/pbxt/GotZUVCZolbbOFeUGa4Ep3emHr8jDaOWgsfJm18vUgGHv41kA/tmp0hk_1by1.png",
"original_image": "https://replicate.delivery/pbxt/fQSInp7Io1ToYKo9rzBh2Ia6gs5ZA61Wh4r1pL3zBZExLeaSA/tmpq_ugxya4.png"
},
"started_at": "2024-02-27T16:54:16.462344Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/myi6nqzbhs5h7g5lwdgv6bznfy",
"cancel": "https://api.replicate.com/v1/predictions/myi6nqzbhs5h7g5lwdgv6bznfy/cancel"
},
"version": "32a2efd334440c6109631ff6544ec0a811eed0879626344bce2ea62b32c75004"
}
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:37<00:00, 37.49s/it]
100%|██████████| 1/1 [00:37<00:00, 37.49s/it]
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:00<00:00, 4.97it/s]
100%|██████████| 1/1 [00:00<00:00, 4.95it/s]
Model parse in 40.01 seconds.
Open pose in 1.55 seconds.
This output was created using a different version of the model, viktorfa/oot_segmentation:32a2efd3.