{"id":23315,"date":"2025-04-19T07:32:03","date_gmt":"2025-04-18T23:32:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/23315.html"},"modified":"2025-04-19T07:32:03","modified_gmt":"2025-04-18T23:32:03","slug":"%e3%80%90%e7%9b%ae%e6%a0%87%e6%a3%80%e6%9f%a5%e3%80%91yolo%e7%b3%bb%e5%88%97%e4%b9%8b%ef%bc%9atriton-%e6%8e%a8%e7%90%86%e6%9c%8d%e5%8a%a1%e5%99%a8ultralytics-yolo11","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/23315.html","title":{"rendered":"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11"},"content":{"rendered":"<\/p>\n<h4>Triton \u63a8\u7406\u670d\u52a1\u5668<\/h4>\n<ul>\n<li>1\u3001\u5f15\u8a00<\/li>\n<li>2\u3001Triton\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>2.1 \u4ec0\u4e48\u662fTriton Inference Server<\/li>\n<li>2.2 \u5c06YOLO11 \u5bfc\u51fa\u4e3aONNX \u683c\u5f0f<\/li>\n<li>2.3 \u8bbe\u7f6eTriton \u6a21\u578b\u5e93<\/li>\n<li>\n<ul>\n<li>2.3.1 \u521b\u5efa\u76ee\u5f55\u7ed3\u6784<\/li>\n<li>2.3.2 \u5c06\u5bfc\u51fa\u7684ONNX \u6a21\u578b\u79fb\u81f3Triton \u8d44\u6e90\u5e93<\/li>\n<\/ul>\n<\/li>\n<li>2.4 \u8fd0\u884cTriton \u63a8\u65ad\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>2.4.1 \u4f7f\u7528 Docker \u8fd0\u884cTriton Inference Server<\/li>\n<li>2.4.2 \u4f7f\u7528Triton \u670d\u52a1\u5668\u6a21\u578b\u8fd0\u884c\u63a8\u7406<\/li>\n<li>2.4.3 \u6e05\u7406\u5bb9\u5668<\/li>\n<\/ul>\n<\/li>\n<li>2.4.5 \u5982\u4f55\u901a\u8fc7NVIDIA Triton Inference Server \u8bbe\u7f6eUltralytics YOLO11<\/li>\n<\/ul>\n<\/li>\n<li>3\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<h2>1\u3001\u5f15\u8a00<\/h2>\n<p>\u5c0f\u5c4c\u4e1d&#xff1a;\u9c7c\u54e5&#xff0c;\u8fd9\u5929\u53ef\u662f\u771f\u51b7\u554a \u5c0f\u9c7c&#xff1a;\u90a3\u53ef\u4e0d&#xff0c;\u8fd9\u5929\u6c14&#xff0c;\u5c31\u9002\u5408\u5403\u70b9\u94c1\u9505\u7096 \u5c0f\u5c4c\u4e1d&#xff1a;\u94c1\u9505\u7096\u2026 \u5565\u5462 \u5c0f\u9c7c&#xff1a;\u6211\u4eec\u53bb\u5957\u5708\u554a \u5c0f\u5c4c\u4e1d&#xff1a;\u5708\u6709\u5565\u597d\u5957\u7684 \u5c0f\u9c7c&#xff1a;\u542c\u8bf4\u80fd\u5957\u5927\u9e45 \u5c0f\u5c4c\u4e1d&#xff1a;\u2026 \u9c7c\u54e5&#xff0c;\u54b1\u4eec\u5c31\u7701\u4e86\u8fd9\u4e2d\u95f4\u8fc7\u7a0b&#xff0c;\u76f4\u63a5\u53bb\u5403\u5f97\u4e86 \u5c0f\u9c7c&#xff1a;\u2026 \u4e0d\u5957\u5927\u9e45\u4e86&#xff1f; \u90a3\u5403\u5565&#xff1f; \u5c0f\u5c4c\u4e1d&#xff1a;\u8fd9\u4e0d\u5c31\u662f\u4e00\u4e2a\u7535\u8bdd\u7684\u4e8b \u5c0f\u9c7c&#xff1a;\u54ce\u5466\u5582&#xff0c;\u6211\u5230\u65f6\u8981\u770b\u770b&#xff0c;\u4f60\u8fd9\u7535\u8bdd\u80fd\u6253\u5230\u54ea\u91cc \u5c0f\u5c4c\u4e1d&#xff1a;\u653e\u5fc3\u5427&#xff0c;\u54b1\u4fe9\u53bb\u7684\u65f6\u5019&#xff0c;\u5fc5\u987b\u7ed9\u7096\u4e0a \u5c0f\u9c7c&#xff1a;\u8fd9\u5c31\u53bb&#xff1f; \u5c0f\u5c4c\u4e1d&#xff1a;\u8981\u4e0d&#xff0c;\u4f60\u7b49\u4f1a\u53bb&#xff1f; \u5c0f\u9c7c&#xff1a;\u96ea\u5929\u8def\u6ed1&#xff0c;\u4f60\u81ea\u5df1\u53bb\u6211\u4e0d\u653e\u5fc3\u3002 \u5c0f\u5c4c\u4e1d&#xff1a;\u2026 \u9c7c\u54e5&#xff0c; \u6211\u53d1\u73b0\u53ea\u6709\u4e24\u4ef6\u4e8b\u4f60\u6700\u79ef\u6781 \u5c0f\u9c7c&#xff1a;\u5565\u4e8b&#xff1f; \u5c0f\u5c4c\u4e1d&#xff1a;\u6ce1\u6fa1&#xff0c;\u5403\u996d\u3002 \u5c0f\u9c7c&#xff1a;\u4e0d\u4e88\u7f6e\u8bc4\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418233202-6802e0f22b91d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>2\u3001Triton\u670d\u52a1\u5668<\/h2>\n<h3>2.1 \u4ec0\u4e48\u662fTriton Inference Server<\/h3>\n<p>Triton Inference Server&#xff08;\u539f\u540dTensorRT Inference Server&#xff09;\u662fNVIDIA \u5f00\u53d1\u7684\u4e00\u4e2a\u5f00\u6e90\u8f6f\u4ef6\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>Triton \u63a8\u7406\u670d\u52a1\u5668\u65e8\u5728\u5728\u751f\u4ea7\u4e2d\u90e8\u7f72\u5404\u79cd\u4eba\u5de5\u667a\u80fd\u6a21\u578b\u3002\u5b83\u652f\u6301\u591a\u79cd\u6df1\u5ea6\u5b66\u4e60\u548c\u673a\u5668\u5b66\u4e60\u6846\u67b6&#xff0c;\u5305\u62ecTensorFlow \u3001 PyTorchONNX Runtime \u7b49\u3002\u5b83\u7684\u4e3b\u8981\u7528\u4f8b\u5305\u62ec<\/p>\n<ul>\n<li>\u4ece\u4e00\u4e2a\u670d\u52a1\u5668\u5b9e\u4f8b\u4e3a\u591a\u4e2a\u6a21\u578b\u63d0\u4f9b\u670d\u52a1\u3002<\/li>\n<li>\u52a8\u6001\u52a0\u8f7d\u548c\u5378\u8f7d\u6a21\u578b&#xff0c;\u65e0\u9700\u91cd\u542f\u670d\u52a1\u5668\u3002<\/li>\n<li>\u96c6\u5408\u63a8\u7406&#xff0c;\u5141\u8bb8\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u6a21\u578b\u6765\u83b7\u5f97\u7ed3\u679c\u3002<\/li>\n<li>\u6a21\u578b\u7248\u672c\u5316&#xff0c;\u7528\u4e8e A\/B \u6d4b\u8bd5\u548c\u6eda\u52a8\u66f4\u65b0\u3002<\/li>\n<\/ul>\n<h3>2.2 \u5c06YOLO11 \u5bfc\u51fa\u4e3aONNX \u683c\u5f0f<\/h3>\n<p>\u5728Triton \u4e0a\u90e8\u7f72\u6a21\u578b\u4e4b\u524d&#xff0c;\u5fc5\u987b\u5c06\u5176\u5bfc\u51fa\u4e3aONNX \u683c\u5f0f\u3002ONNX (Open Neural Network Exchange&#xff09;\u662f\u4e00\u79cd\u5141\u8bb8\u5728\u4e0d\u540c\u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\u4e4b\u95f4\u4f20\u8f93\u6a21\u578b\u7684\u683c\u5f0f\u3002\u4f7f\u7528 export \u529f\u80fd\u4e2d\u7684 YOLO \u7c7b&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> ultralytics <span class=\"token keyword\">import<\/span> YOLO<\/p>\n<p><span class=\"token comment\"># Load a model<\/span><br \/>\nmodel <span class=\"token operator\">&#061;<\/span> YOLO<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;yolo11n.pt&#034;<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># load an official model<\/span><\/p>\n<p><span class=\"token comment\"># Retreive metadata during export<\/span><br \/>\nmetadata <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">export_cb<\/span><span class=\"token punctuation\">(<\/span>exporter<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    metadata<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span>exporter<span class=\"token punctuation\">.<\/span>metadata<span class=\"token punctuation\">)<\/span><\/p>\n<p>model<span class=\"token punctuation\">.<\/span>add_callback<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;on_export_end&#034;<\/span><span class=\"token punctuation\">,<\/span> export_cb<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Export the model<\/span><br \/>\nonnx_file <span class=\"token operator\">&#061;<\/span> model<span class=\"token punctuation\">.<\/span>export<span class=\"token punctuation\">(<\/span><span class=\"token builtin\">format<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;onnx&#034;<\/span><span class=\"token punctuation\">,<\/span> dynamic<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h3>2.3 \u8bbe\u7f6eTriton \u6a21\u578b\u5e93<\/h3>\n<p>Triton \u6a21\u578b\u5e93\u662fTriton \u53ef\u4ee5\u8bbf\u95ee\u548c\u52a0\u8f7d\u6a21\u578b\u7684\u5b58\u50a8\u4f4d\u7f6e\u3002<\/p>\n<h4>2.3.1 \u521b\u5efa\u76ee\u5f55\u7ed3\u6784<\/h4>\n<p><span class=\"token keyword\">from<\/span> pathlib <span class=\"token keyword\">import<\/span> Path<\/p>\n<p><span class=\"token comment\"># Define paths<\/span><br \/>\nmodel_name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;yolo&#034;<\/span><br \/>\ntriton_repo_path <span class=\"token operator\">&#061;<\/span> Path<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tmp&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;triton_repo&#034;<\/span><br \/>\ntriton_model_path <span class=\"token operator\">&#061;<\/span> triton_repo_path <span class=\"token operator\">\/<\/span> model_name<\/p>\n<p><span class=\"token comment\"># Create directories<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>mkdir<span class=\"token punctuation\">(<\/span>parents<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> exist_ok<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>2.3.2 \u5c06\u5bfc\u51fa\u7684ONNX \u6a21\u578b\u79fb\u81f3Triton \u8d44\u6e90\u5e93<\/h4>\n<p><span class=\"token keyword\">from<\/span> pathlib <span class=\"token keyword\">import<\/span> Path<\/p>\n<p><span class=\"token comment\"># Move ONNX model to Triton Model path<\/span><br \/>\nPath<span class=\"token punctuation\">(<\/span>onnx_file<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>rename<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;1&#034;<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;model.onnx&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Create config file<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;config.pbtxt&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>touch<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># (Optional) Enable TensorRT for GPU inference<\/span><br \/>\n<span class=\"token comment\"># First run will be slow due to TensorRT engine conversion<\/span><br \/>\ndata <span class=\"token operator\">&#061;<\/span> <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;<br \/>\noptimization {<br \/>\n  execution_accelerators {<br \/>\n    gpu_execution_accelerator {<br \/>\n      name: &#034;tensorrt&#034;<br \/>\n      parameters {<br \/>\n        key: &#034;precision_mode&#034;<br \/>\n        value: &#034;FP16&#034;<br \/>\n      }<br \/>\n      parameters {<br \/>\n        key: &#034;max_workspace_size_bytes&#034;<br \/>\n        value: &#034;3221225472&#034;<br \/>\n      }<br \/>\n      parameters {<br \/>\n        key: &#034;trt_engine_cache_enable&#034;<br \/>\n        value: &#034;1&#034;<br \/>\n      }<br \/>\n      parameters {<br \/>\n        key: &#034;trt_engine_cache_path&#034;<br \/>\n        value: &#034;\/models\/yolo\/1&#034;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\nparameters {<br \/>\n  key: &#034;metadata&#034;<br \/>\n  value: {<br \/>\n    string_value: &#034;%s&#034;<br \/>\n  }<br \/>\n}<br \/>\n&#034;&#034;&#034;<\/span> <span class=\"token operator\">%<\/span> metadata<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token keyword\">with<\/span> <span class=\"token builtin\">open<\/span><span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;config.pbtxt&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;w&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> f<span class=\"token punctuation\">:<\/span><br \/>\n    f<span class=\"token punctuation\">.<\/span>write<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span><\/p>\n<h3>2.4 \u8fd0\u884cTriton \u63a8\u65ad\u670d\u52a1\u5668<\/h3>\n<h4>2.4.1 \u4f7f\u7528 Docker \u8fd0\u884cTriton Inference Server<\/h4>\n<p><span class=\"token keyword\">import<\/span> contextlib<br \/>\n<span class=\"token keyword\">import<\/span> subprocess<br \/>\n<span class=\"token keyword\">import<\/span> time<\/p>\n<p><span class=\"token keyword\">from<\/span> tritonclient<span class=\"token punctuation\">.<\/span>http <span class=\"token keyword\">import<\/span> InferenceServerClient<\/p>\n<p><span class=\"token comment\"># Define image https:\/\/catalog.ngc.nvidia.com\/orgs\/nvidia\/containers\/tritonserver<\/span><br \/>\ntag <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;nvcr.io\/nvidia\/tritonserver:24.09-py3&#034;<\/span>  <span class=\"token comment\"># 8.57 GB<\/span><\/p>\n<p><span class=\"token comment\"># Pull the image<\/span><br \/>\nsubprocess<span class=\"token punctuation\">.<\/span>call<span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;docker pull <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>tag<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span> shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Run the Triton server and capture the container ID<\/span><br \/>\ncontainer_id <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><br \/>\n    subprocess<span class=\"token punctuation\">.<\/span>check_output<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;docker run -d &#8211;rm &#8211;gpus 0 -v <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>triton_repo_path<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">:\/models -p 8000:8000 <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>tag<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"> tritonserver &#8211;model-repository&#061;\/models&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span><br \/>\n        shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>strip<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Wait for the Triton server to start<\/span><br \/>\ntriton_client <span class=\"token operator\">&#061;<\/span> InferenceServerClient<span class=\"token punctuation\">(<\/span>url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;localhost:8000&#034;<\/span><span class=\"token punctuation\">,<\/span> verbose<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">,<\/span> ssl<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Wait until model is ready<\/span><br \/>\n<span class=\"token keyword\">for<\/span> _ <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">range<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">with<\/span> contextlib<span class=\"token punctuation\">.<\/span>suppress<span class=\"token punctuation\">(<\/span>Exception<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">assert<\/span> triton_client<span class=\"token punctuation\">.<\/span>is_model_ready<span class=\"token punctuation\">(<\/span>model_name<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><br \/>\n    time<span class=\"token punctuation\">.<\/span>sleep<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>2.4.2 \u4f7f\u7528Triton \u670d\u52a1\u5668\u6a21\u578b\u8fd0\u884c\u63a8\u7406<\/h4>\n<p><span class=\"token keyword\">from<\/span> ultralytics <span class=\"token keyword\">import<\/span> YOLO<\/p>\n<p><span class=\"token comment\"># Load the Triton Server model<\/span><br \/>\nmodel <span class=\"token operator\">&#061;<\/span> YOLO<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;http:\/\/localhost:8000\/yolo&#034;<\/span><span class=\"token punctuation\">,<\/span> task<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;detect&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># Run inference on the server<\/span><br \/>\nresults <span class=\"token operator\">&#061;<\/span> model<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;path\/to\/image.jpg&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>2.4.3 \u6e05\u7406\u5bb9\u5668<\/h4>\n<p><span class=\"token comment\"># Kill and remove the container at the end of the test<\/span><br \/>\nsubprocess<span class=\"token punctuation\">.<\/span>call<span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;docker kill <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>container_id<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span> shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h3>2.4.5 \u5982\u4f55\u901a\u8fc7NVIDIA Triton Inference Server \u8bbe\u7f6eUltralytics YOLO11<\/h3>\n<p>\u8bbe\u7f6e Ultralytics YOLO11NVIDIA Triton Inference Server\u6d89\u53ca\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4<\/p>\n<ul>\n<li>\n<li>\u5c06YOLO11 \u5bfc\u51fa\u4e3aONNX \u683c\u5f0f&#xff1a;<\/li>\n<\/li>\n<\/ul>\n<p><span class=\"token keyword\">from<\/span> ultralytics <span class=\"token keyword\">import<\/span> YOLO<\/p>\n<p><span class=\"token comment\"># Load a model<\/span><br \/>\nmodel <span class=\"token operator\">&#061;<\/span> YOLO<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;yolo11n.pt&#034;<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># load an official model<\/span><\/p>\n<p><span class=\"token comment\"># Export the model to ONNX format<\/span><br \/>\nonnx_file <span class=\"token operator\">&#061;<\/span> model<span class=\"token punctuation\">.<\/span>export<span class=\"token punctuation\">(<\/span><span class=\"token builtin\">format<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;onnx&#034;<\/span><span class=\"token punctuation\">,<\/span> dynamic<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>2. \u5efa\u7acbTriton \u6a21\u578b\u5e93<\/li>\n<\/ul>\n<p><span class=\"token keyword\">from<\/span> pathlib <span class=\"token keyword\">import<\/span> Path<\/p>\n<p><span class=\"token comment\"># Define paths<\/span><br \/>\nmodel_name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;yolo&#034;<\/span><br \/>\ntriton_repo_path <span class=\"token operator\">&#061;<\/span> Path<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tmp&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;triton_repo&#034;<\/span><br \/>\ntriton_model_path <span class=\"token operator\">&#061;<\/span> triton_repo_path <span class=\"token operator\">\/<\/span> model_name<\/p>\n<p><span class=\"token comment\"># Create directories<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>mkdir<span class=\"token punctuation\">(<\/span>parents<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> exist_ok<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><br \/>\nPath<span class=\"token punctuation\">(<\/span>onnx_file<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>rename<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;1&#034;<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;model.onnx&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>triton_model_path <span class=\"token operator\">\/<\/span> <span class=\"token string\">&#034;config.pbtxt&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>touch<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>3. \u8fd0\u884cTriton \u670d\u52a1\u5668<\/li>\n<\/ul>\n<p><span class=\"token keyword\">import<\/span> contextlib<br \/>\n<span class=\"token keyword\">import<\/span> subprocess<br \/>\n<span class=\"token keyword\">import<\/span> time<\/p>\n<p><span class=\"token keyword\">from<\/span> tritonclient<span class=\"token punctuation\">.<\/span>http <span class=\"token keyword\">import<\/span> InferenceServerClient<\/p>\n<p><span class=\"token comment\"># Define image https:\/\/catalog.ngc.nvidia.com\/orgs\/nvidia\/containers\/tritonserver<\/span><br \/>\ntag <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;nvcr.io\/nvidia\/tritonserver:24.09-py3&#034;<\/span><\/p>\n<p>subprocess<span class=\"token punctuation\">.<\/span>call<span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;docker pull <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>tag<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span> shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>container_id <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><br \/>\n    subprocess<span class=\"token punctuation\">.<\/span>check_output<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;docker run -d &#8211;rm &#8211;gpus 0 -v <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>triton_repo_path<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">\/models -p 8000:8000 <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>tag<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"> tritonserver &#8211;model-repository&#061;\/models&#034;<\/span><\/span><span class=\"token punctuation\">,<\/span><br \/>\n        shell<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">.<\/span>strip<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>triton_client <span class=\"token operator\">&#061;<\/span> InferenceServerClient<span class=\"token punctuation\">(<\/span>url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;localhost:8000&#034;<\/span><span class=\"token punctuation\">,<\/span> verbose<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">,<\/span> ssl<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">for<\/span> _ <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">range<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">with<\/span> contextlib<span class=\"token punctuation\">.<\/span>suppress<span class=\"token punctuation\">(<\/span>Exception<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">assert<\/span> triton_client<span class=\"token punctuation\">.<\/span>is_model_ready<span class=\"token punctuation\">(<\/span>model_name<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><br \/>\n    time<span class=\"token punctuation\">.<\/span>sleep<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h2>3\u3001\u603b\u7ed3<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418233202-6802e0f27e44d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Triton Inference Server \u63d0\u4f9b\u4e86\u4e00\u4e2a\u9488\u5bf9NVIDIA GPU \u8fdb\u884c\u4e86\u4f18\u5316\u7684\u4e91\u63a8\u7406\u89e3\u51b3\u65b9\u6848\u3002 Triton \u7b80\u5316\u4e86\u4eba\u5de5\u667a\u80fd\u6a21\u578b\u5728\u751f\u4ea7\u4e2d\u7684\u5927\u89c4\u6a21\u90e8\u7f72\u3002<\/p>\n<p>\u5c06Ultralytics YOLO11 \u4e0eTriton Inference Server \u96c6\u6210&#xff0c;\u53ef\u4ee5\u90e8\u7f72\u53ef\u6269\u5c55\u7684\u9ad8\u6027\u80fd\u6df1\u5ea6\u5b66\u4e60\u63a8\u7406\u5de5\u4f5c\u8d1f\u8f7d<\/p>\n<p>\u6240\u4ee5&#xff0c;\u638c\u63e1Triton \u662f\u5fc5\u987b\u5f97&#xff0c;\u4e5f\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<p>\u6211\u662f\u5c0f\u9c7c&#xff1a;<\/p>\n<ul>\n<li>CSDN \u535a\u5ba2\u4e13\u5bb6&#xff1b;<\/li>\n<li>\u963f\u91cc\u4e91 \u4e13\u5bb6\u535a\u4e3b&#xff1b;<\/li>\n<li>51CTO\u535a\u5ba2\u4e13\u5bb6&#xff1b;<\/li>\n<li>\u4f01\u4e1a\u8ba4\u8bc1\u91d1\u724c\u9762\u8bd5\u5b98&#xff1b;<\/li>\n<li>\u591a\u4e2a\u540d\u4f01\u8ba4\u8bc1&amp;\u7279\u9080\u8bb2\u5e08\u7b49&#xff1b;<\/li>\n<li>\u540d\u4f01\u7b7e\u7ea6\u804c\u573a\u9762\u8bd5\u57f9\u8bad\u3001\u804c\u573a\u89c4\u5212\u5e08&#xff1b;<\/li>\n<li>\u591a\u4e2a\u56fd\u5185\u4e3b\u6d41\u6280\u672f\u793e\u533a\u7684\u8ba4\u8bc1\u4e13\u5bb6\u535a\u4e3b&#xff1b;<\/li>\n<li>\u591a\u6b3e\u4e3b\u6d41\u4ea7\u54c1(\u963f\u91cc\u4e91\u7b49)\u8bc4\u6d4b\u4e00\u7b49\u5956\u83b7\u5f97\u8005&#xff1b;<\/li>\n<\/ul>\n<p>\u5173\u6ce8\u5c0f\u9c7c&#xff0c;\u5b66\u4e60\u3010\u673a\u5668\u89c6\u89c9\u4e0e\u76ee\u6807\u68c0\u6d4b\u3011 \u548c\u3010\u673a\u5668\u5b66\u4e60\u4e0e\u6df1\u5ea6\u5b66\u4e60\u3011\u6700\u65b0\u6700\u5168\u7684\u9886\u57df\u77e5\u8bc6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e35\u6b21\uff0c\u6536\u85cf11\u6b21\u3002YOLO\u7cfb\u5217\u4e4b\uff1a\u4e00\u6587\u638c\u63e1Triton Inference Server_triton yolo<\/p>\n","protected":false},"author":2,"featured_media":23313,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,156,50,43,1782,44],"topic":[],"class_list":["post-23315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-yolo","tag-50","tag-43","tag-1782","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/23315.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e35\u6b21\uff0c\u6536\u85cf11\u6b21\u3002YOLO\u7cfb\u5217\u4e4b\uff1a\u4e00\u6587\u638c\u63e1Triton Inference Server_triton yolo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/23315.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T23:32:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418233202-6802e0f22b91d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23315.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/23315.html\",\"name\":\"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T23:32:03+00:00\",\"dateModified\":\"2025-04-18T23:32:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/23315.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/23315.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23315.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/23315.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e35\u6b21\uff0c\u6536\u85cf11\u6b21\u3002YOLO\u7cfb\u5217\u4e4b\uff1a\u4e00\u6587\u638c\u63e1Triton Inference Server_triton yolo","og_url":"https:\/\/www.wsisp.com\/helps\/23315.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T23:32:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418233202-6802e0f22b91d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/23315.html","url":"https:\/\/www.wsisp.com\/helps\/23315.html","name":"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T23:32:03+00:00","dateModified":"2025-04-18T23:32:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/23315.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/23315.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/23315.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u76ee\u6807\u68c0\u67e5\u3011YOLO\u7cfb\u5217\u4e4b\uff1aTriton \u63a8\u7406\u670d\u52a1\u5668Ultralytics YOLO11"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=23315"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/23313"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=23315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=23315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=23315"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=23315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}