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.
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 daanelson/yolox using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"daanelson/yolox:377452881deb2ecb723223682b70f159d15abd15baa36bd08f621d2aa5aba260",
{
input: {
nms: 0.3,
conf: 0.3,
tsize: 640,
model_name: "yolox-s",
input_image: "https://replicate.delivery/pbxt/ICdjEO98ocfguIXmE3CwKmSQCcloEdurvNLRW6fiffJuQTFA/1.jpg",
return_json: 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 daanelson/yolox using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"daanelson/yolox:377452881deb2ecb723223682b70f159d15abd15baa36bd08f621d2aa5aba260",
input={
"nms": 0.3,
"conf": 0.3,
"tsize": 640,
"model_name": "yolox-s",
"input_image": "https://replicate.delivery/pbxt/ICdjEO98ocfguIXmE3CwKmSQCcloEdurvNLRW6fiffJuQTFA/1.jpg",
"return_json": 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 daanelson/yolox 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": "daanelson/yolox:377452881deb2ecb723223682b70f159d15abd15baa36bd08f621d2aa5aba260",
"input": {
"nms": 0.3,
"conf": 0.3,
"tsize": 640,
"model_name": "yolox-s",
"input_image": "https://replicate.delivery/pbxt/ICdjEO98ocfguIXmE3CwKmSQCcloEdurvNLRW6fiffJuQTFA/1.jpg",
"return_json": 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-26T08:46:50.106137Z",
"created_at": "2023-01-26T08:45:17.811360Z",
"data_removed": false,
"error": null,
"id": "kawxfc72uzgyngvgcj62pcm2ty",
"input": {
"nms": 0.3,
"conf": 0.3,
"tsize": 640,
"model_name": "yolox-s",
"input_image": "https://replicate.delivery/pbxt/ICdjEO98ocfguIXmE3CwKmSQCcloEdurvNLRW6fiffJuQTFA/1.jpg"
},
"logs": "2023-01-26 08:46:49.356 | INFO | tools.demo:inference:165 - Infer time: 1.4221s",
"metrics": {
"predict_time": 4.789267,
"total_time": 92.294777
},
"output": {
"img": "https://replicate.delivery/pbxt/ZeRmjaFp1HS8aiY7C7GRegCNlVLSviAtYmE6NCY1cpB5f9vgA/outputs.png"
},
"started_at": "2023-01-26T08:46:45.316870Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kawxfc72uzgyngvgcj62pcm2ty",
"cancel": "https://api.replicate.com/v1/predictions/kawxfc72uzgyngvgcj62pcm2ty/cancel"
},
"version": "377452881deb2ecb723223682b70f159d15abd15baa36bd08f621d2aa5aba260"
}
2023-01-26 08:46:49.356 | INFO | tools.demo:inference:165 - Infer time: 1.4221s