hilongjw / sec_detect
- Public
- 27 runs
-
T4
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3IDlwkzq6bbdlbsakrm4mp7fvxnsyStatusSucceededSourceWebHardwareCPUTotal durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6BnJWd3Fi6NSLU0v49z0n4f0Qf3rjx2Z2Oukb0L3YKPq6d/screenshot-20230910-083729.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6BnJWd3Fi6NSLU0v49z0n4f0Qf3rjx2Z2Oukb0L3YKPq6d/screenshot-20230910-083729.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6BnJWd3Fi6NSLU0v49z0n4f0Qf3rjx2Z2Oukb0L3YKPq6d/screenshot-20230910-083729.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6BnJWd3Fi6NSLU0v49z0n4f0Qf3rjx2Z2Oukb0L3YKPq6d/screenshot-20230910-083729.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T00:55:29.815670Z", "created_at": "2023-09-10T00:54:34.141505Z", "data_removed": false, "error": null, "id": "lwkzq6bbdlbsakrm4mp7fvxnsy", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6BnJWd3Fi6NSLU0v49z0n4f0Qf3rjx2Z2Oukb0L3YKPq6d/screenshot-20230910-083729.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmpb6cdz669screenshot-20230910-083729.png\nimg_path /tmp/tmpb6cdz669screenshot-20230910-083729.png\n0: 640x640 SectionImage 1.00, SectionGradient 0.00, Section 0.00, 749.3ms\nSpeed: 4.4ms preprocess, 749.3ms inference, 0.1ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 2.364974, "total_time": 55.674165 }, "output": "https://replicate.delivery/pbxt/adWJBzk7EFprDhnUklS05wp5MAknDza5TodSmorUEgQAGrYE/output_tmpb6cdz669screenshot-20230910-083729.png", "started_at": "2023-09-10T00:55:27.450696Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lwkzq6bbdlbsakrm4mp7fvxnsy", "cancel": "https://api.replicate.com/v1/predictions/lwkzq6bbdlbsakrm4mp7fvxnsy/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmpb6cdz669screenshot-20230910-083729.png img_path /tmp/tmpb6cdz669screenshot-20230910-083729.png 0: 640x640 SectionImage 1.00, SectionGradient 0.00, Section 0.00, 749.3ms Speed: 4.4ms preprocess, 749.3ms inference, 0.1ms postprocess per image at shape (1, 3, 640, 640)
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3ID4g26zqbbgjoudrqm4yrmswoq5yStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6G3qg2otKHPfWKo12MFXMyjyGSCBhmq062BosaHKzLYGtH/screenshot-20230910-084248.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6G3qg2otKHPfWKo12MFXMyjyGSCBhmq062BosaHKzLYGtH/screenshot-20230910-084248.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6G3qg2otKHPfWKo12MFXMyjyGSCBhmq062BosaHKzLYGtH/screenshot-20230910-084248.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6G3qg2otKHPfWKo12MFXMyjyGSCBhmq062BosaHKzLYGtH/screenshot-20230910-084248.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T00:59:05.772115Z", "created_at": "2023-09-10T00:59:04.010720Z", "data_removed": false, "error": null, "id": "4g26zqbbgjoudrqm4yrmswoq5y", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6G3qg2otKHPfWKo12MFXMyjyGSCBhmq062BosaHKzLYGtH/screenshot-20230910-084248.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmpno9d0qd5screenshot-20230910-084248.png\nimg_path /tmp/tmpno9d0qd5screenshot-20230910-084248.png\n0: 640x640 SectionImage 1.00, SectionGradient 0.00, Section 0.00, 62.5ms\nSpeed: 6.0ms preprocess, 62.5ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 1.783567, "total_time": 1.761395 }, "output": "https://replicate.delivery/pbxt/fy2nUZfCsOugjkt94v3xeR8UeDCV0BRm723O9CCZxSoltxKGB/output_tmpno9d0qd5screenshot-20230910-084248.png", "started_at": "2023-09-10T00:59:03.988548Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/4g26zqbbgjoudrqm4yrmswoq5y", "cancel": "https://api.replicate.com/v1/predictions/4g26zqbbgjoudrqm4yrmswoq5y/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmpno9d0qd5screenshot-20230910-084248.png img_path /tmp/tmpno9d0qd5screenshot-20230910-084248.png 0: 640x640 SectionImage 1.00, SectionGradient 0.00, Section 0.00, 62.5ms Speed: 6.0ms preprocess, 62.5ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3IDcfbeterb6uovfpnhc6fzfn6kgaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GRn5a16mYrmpTur8USAwUvC6OzBdfURdbveh9HIxBXBwb/screenshot-20230910-084307.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6GRn5a16mYrmpTur8USAwUvC6OzBdfURdbveh9HIxBXBwb/screenshot-20230910-084307.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GRn5a16mYrmpTur8USAwUvC6OzBdfURdbveh9HIxBXBwb/screenshot-20230910-084307.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GRn5a16mYrmpTur8USAwUvC6OzBdfURdbveh9HIxBXBwb/screenshot-20230910-084307.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T00:59:39.160441Z", "created_at": "2023-09-10T00:59:29.065005Z", "data_removed": false, "error": null, "id": "cfbeterb6uovfpnhc6fzfn6kga", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GRn5a16mYrmpTur8USAwUvC6OzBdfURdbveh9HIxBXBwb/screenshot-20230910-084307.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmppaeqxtn2screenshot-20230910-084307.png\nimg_path /tmp/tmppaeqxtn2screenshot-20230910-084307.png\n0: 640x640 SectionImage 0.97, SectionGradient 0.03, Section 0.00, 54.8ms\nSpeed: 20.6ms preprocess, 54.8ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 10.00258, "total_time": 10.095436 }, "output": "https://replicate.delivery/pbxt/N2PL7YWf6aV0RSuaG77vXQf8V2TR4oJVij38QPwAbqz6bsiRA/output_tmppaeqxtn2screenshot-20230910-084307.png", "started_at": "2023-09-10T00:59:29.157861Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cfbeterb6uovfpnhc6fzfn6kga", "cancel": "https://api.replicate.com/v1/predictions/cfbeterb6uovfpnhc6fzfn6kga/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmppaeqxtn2screenshot-20230910-084307.png img_path /tmp/tmppaeqxtn2screenshot-20230910-084307.png 0: 640x640 SectionImage 0.97, SectionGradient 0.03, Section 0.00, 54.8ms Speed: 20.6ms preprocess, 54.8ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3IDjq6dkwjbipbvt4g2btipebvn34StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GyotSyfASnwNntllP555eoqWp4rD8ttBq3Wnflg6D9Mq1/screenshot-20230910-083553.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6GyotSyfASnwNntllP555eoqWp4rD8ttBq3Wnflg6D9Mq1/screenshot-20230910-083553.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GyotSyfASnwNntllP555eoqWp4rD8ttBq3Wnflg6D9Mq1/screenshot-20230910-083553.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GyotSyfASnwNntllP555eoqWp4rD8ttBq3Wnflg6D9Mq1/screenshot-20230910-083553.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T01:00:02.977469Z", "created_at": "2023-09-10T01:00:02.387365Z", "data_removed": false, "error": null, "id": "jq6dkwjbipbvt4g2btipebvn34", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6GyotSyfASnwNntllP555eoqWp4rD8ttBq3Wnflg6D9Mq1/screenshot-20230910-083553.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmpw8wdsrqcscreenshot-20230910-083553.png\nimg_path /tmp/tmpw8wdsrqcscreenshot-20230910-083553.png\n0: 640x640 Section 1.00, SectionImage 0.00, SectionGradient 0.00, 62.5ms\nSpeed: 7.8ms preprocess, 62.5ms inference, 0.1ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 0.788047, "total_time": 0.590104 }, "output": "https://replicate.delivery/pbxt/xrkp706KLz4cLtw5FvQS3uyu5EJYfIa2BrlLKAAGcdZJOWxIA/output_tmpw8wdsrqcscreenshot-20230910-083553.png", "started_at": "2023-09-10T01:00:02.189422Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jq6dkwjbipbvt4g2btipebvn34", "cancel": "https://api.replicate.com/v1/predictions/jq6dkwjbipbvt4g2btipebvn34/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmpw8wdsrqcscreenshot-20230910-083553.png img_path /tmp/tmpw8wdsrqcscreenshot-20230910-083553.png 0: 640x640 Section 1.00, SectionImage 0.00, SectionGradient 0.00, 62.5ms Speed: 7.8ms preprocess, 62.5ms inference, 0.1ms postprocess per image at shape (1, 3, 640, 640)
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3IDne7xpebbqyyy6zosucw5ygai7aStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6Hf1o3UjfjXbBXVEBnsSehCpM4Jc3foqx7HQRHXExB2pdj/screenshot-20230910-083933.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6Hf1o3UjfjXbBXVEBnsSehCpM4Jc3foqx7HQRHXExB2pdj/screenshot-20230910-083933.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6Hf1o3UjfjXbBXVEBnsSehCpM4Jc3foqx7HQRHXExB2pdj/screenshot-20230910-083933.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6Hf1o3UjfjXbBXVEBnsSehCpM4Jc3foqx7HQRHXExB2pdj/screenshot-20230910-083933.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T01:00:47.096828Z", "created_at": "2023-09-10T01:00:45.301575Z", "data_removed": false, "error": null, "id": "ne7xpebbqyyy6zosucw5ygai7a", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6Hf1o3UjfjXbBXVEBnsSehCpM4Jc3foqx7HQRHXExB2pdj/screenshot-20230910-083933.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmpolktnjo4screenshot-20230910-083933.png\nimg_path /tmp/tmpolktnjo4screenshot-20230910-083933.png\n0: 640x640 Section 0.71, SectionGradient 0.21, SectionImage 0.08, 63.6ms\nSpeed: 8.0ms preprocess, 63.6ms inference, 0.3ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 1.812001, "total_time": 1.795253 }, "output": "https://replicate.delivery/pbxt/xCAJS4fJA1UADKRg4eG7Vv9wWwmOTLMqCzF02elfVvw7zxKGB/output_tmpolktnjo4screenshot-20230910-083933.png", "started_at": "2023-09-10T01:00:45.284827Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ne7xpebbqyyy6zosucw5ygai7a", "cancel": "https://api.replicate.com/v1/predictions/ne7xpebbqyyy6zosucw5ygai7a/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmpolktnjo4screenshot-20230910-083933.png img_path /tmp/tmpolktnjo4screenshot-20230910-083933.png 0: 640x640 Section 0.71, SectionGradient 0.21, SectionImage 0.08, 63.6ms Speed: 8.0ms preprocess, 63.6ms inference, 0.3ms postprocess per image at shape (1, 3, 640, 640)
Prediction
hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3IDfsg666zbh4z2k6t3y5rgfriwxiStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6IKR5V7bxcjfW30NUaxAyog6pPBbd2v8ua9cfIbPYBbZIj/screenshot-20230910-083839.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", { input: { iou: 0.45, image: "https://replicate.delivery/pbxt/JV6IKR5V7bxcjfW30NUaxAyog6pPBbd2v8ua9cfIbPYBbZIj/screenshot-20230910-083839.png", imgsz: 1280, show_conf: true, show_text: true, threshold: 0.6 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run hilongjw/sec_detect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", input={ "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6IKR5V7bxcjfW30NUaxAyog6pPBbd2v8ua9cfIbPYBbZIj/screenshot-20230910-083839.png", "imgsz": 1280, "show_conf": True, "show_text": True, "threshold": 0.6 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run hilongjw/sec_detect 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": "hilongjw/sec_detect:624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6IKR5V7bxcjfW30NUaxAyog6pPBbd2v8ua9cfIbPYBbZIj/screenshot-20230910-083839.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-10T01:01:28.024263Z", "created_at": "2023-09-10T01:01:26.530073Z", "data_removed": false, "error": null, "id": "fsg666zbh4z2k6t3y5rgfriwxi", "input": { "iou": 0.45, "image": "https://replicate.delivery/pbxt/JV6IKR5V7bxcjfW30NUaxAyog6pPBbd2v8ua9cfIbPYBbZIj/screenshot-20230910-083839.png", "imgsz": 1280, "show_conf": true, "show_text": true, "threshold": 0.6 }, "logs": "image /tmp/tmpyk5vh926screenshot-20230910-083839.png\nimg_path /tmp/tmpyk5vh926screenshot-20230910-083839.png\n0: 640x640 SectionGradient 0.99, SectionImage 0.01, Section 0.00, 62.5ms\nSpeed: 4.9ms preprocess, 62.5ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)", "metrics": { "predict_time": 1.520036, "total_time": 1.49419 }, "output": "https://replicate.delivery/pbxt/cgAe6yupf2nUKEshpoVP0cE9uq7vfQWkpk8AcF4FliOO7YFjA/output_tmpyk5vh926screenshot-20230910-083839.png", "started_at": "2023-09-10T01:01:26.504227Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fsg666zbh4z2k6t3y5rgfriwxi", "cancel": "https://api.replicate.com/v1/predictions/fsg666zbh4z2k6t3y5rgfriwxi/cancel" }, "version": "624142fab1995881995e5d0502e669436c3f0266076f74ffda25929a8aca2dc3" }
Generated inimage /tmp/tmpyk5vh926screenshot-20230910-083839.png img_path /tmp/tmpyk5vh926screenshot-20230910-083839.png 0: 640x640 SectionGradient 0.99, SectionImage 0.01, Section 0.00, 62.5ms Speed: 4.9ms preprocess, 62.5ms inference, 0.2ms postprocess per image at shape (1, 3, 640, 640)
Want to make some of these yourself?
Run this model