# 在应用程序集成定制的 AI 模型

本节介绍了可用于使用 Qualcomm SDK 部署自定义模型的路径。

要在AI应用程序中使用定制模型，您可以使用Qualcomm Intelligent Multimedia SDK或Qualcomm AI Runtime SDK。

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by Microsoft Visio, SVG Export integrate-custom-model-in-app.svg integrate-custom -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/" width="14.2222in" height="9.02778in" viewbox="0 0 1024 650" xml:space="preserve" color-interpolation-filters="sRGB" class="st26" aria-label="../_images/integrate-custom-model-in-app.svg" svgdefaultwidth="1023"><v:documentproperties v:langid="1033" v:viewmarkup="false">	<v:userdefs>		<v:ud v:nameu="msvNoAutoConnect" v:val="VT0(1):26"></v:ud>	</v:userdefs></v:documentproperties>
<style> { fill: #ffffff; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st2 { fill: #d2d7e1; stroke: #d2d7e1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2 }
.svg-1 .st3 { fill: #000000; font-family: Microsoft YaHei UI; font-size: 1.33333em }
.svg-1 .st4 { fill: #2a2aea; stroke: #2a2aea; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2 }
.svg-1 .st5 { fill: #ffffff; font-family: Arial; font-size: 1.33333em }
.svg-1 .st6 { fill: #000000; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2 }
.svg-1 .st7 { font-family: Microsoft YaHei UI; font-size: 1em }
.svg-1 .st8 { font-size: 1em }
.svg-1 .st9 { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st10 { font-family: Arial; font-size: 1em }
.svg-1 .st11 { font-size: 1em; font-weight: bold }
.svg-1 .st12 { font-family: Arial; font-size: 1em; font-style: italic }
.svg-1 .st13 { fill: #000000; font-family: Microsoft YaHei UI; font-size: 1.00001em; font-weight: bold }
.svg-1 .st14 { font-size: 0.0833352em; font-weight: normal }
.svg-1 .st15 { font-size: 1.33332em; font-weight: normal }
.svg-1 .st16 { font-family: Arial; font-size: 1.33332em; font-weight: normal }
.svg-1 .st17 { font-size: 1.33332em }
.svg-1 .st18 { font-family: Arial; font-size: 1.33332em; font-style: italic; font-weight: normal }
.svg-1 .st19 { stroke: #000000; stroke-linecap: butt; stroke-width: 2 }
.svg-1 .st20 { stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2 }
.svg-1 .st21 { marker-end: url("#mrkr4-63"); stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2 }
.svg-1 .st22 { fill: #000000; fill-opacity: 1; stroke: #000000; stroke-opacity: 1; stroke-width: 0.52631578947368 }
.svg-1 .st23 { fill: #000000; font-family: Arial; font-size: 1.33333em }
.svg-1 .st24 { fill: #000000; font-family: Symbol; font-size: 1.33333em }
.svg-1 .st25 { font-family: Microsoft YaHei UI; font-size: 1em; font-weight: bold }
.svg-1 .st26 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }
.svg-1 .st1 { fill: #f8f8f8; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st2 { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st3 { fill: #d2d7e1; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st4 { fill: #000000; font-family: sans-serif; font-size: 1.16666em }
.svg-1 .st5 { fill: #2a2aea; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st6 { fill: #ffffff; font-family: Roboto; font-size: 1.16666em }
.svg-1 .st7 { fill: #020b3f; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st8 { font-family: sans-serif; font-size: 1em }
.svg-1 .st9 { font-size: 1em }
.svg-1 .st10 { font-family: Roboto; font-size: 1em }
.svg-1 .st11 { font-size: 1em; font-weight: bold }
.svg-1 .st12 { font-family: Roboto; font-size: 1em; font-style: italic }
.svg-1 .st13 { fill: none }
.svg-1 .st14 { stroke: #843aff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st15 { marker-end: url("#mrkr4-71"); stroke: #843aff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.749999 }
.svg-1 .st16 { fill: #843aff; fill-opacity: 1; stroke: #843aff; stroke-opacity: 1; stroke-width: 0.29411736192572 }
.svg-1 .st17 { fill: #000000; font-family: Roboto; font-size: 1.08334em }
.svg-1 .st18 { fill: #000000; font-family: Symbol; font-size: 1.00001em }
.svg-1 .st19 { font-family: sans-serif; font-size: 1em; font-weight: bold; text-decoration: underline }
.svg-1 .st20 { fill: #000000; font-family: Roboto; font-size: 1.5em; font-style: italic }
.svg-1 .st21 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }
.svg-1 main { }</style>
<defs id="Markers">	<g id="lend4">		<path d="M 2 1 L 0 0 L 2 -1 L 2 1 " style="stroke:none"></path>	</g>	<marker id="mrkr4-63" class="st22" v:arrowtype="4" v:arrowsize="1" v:setback="3.8" refx="-3.8" orient="auto" markerunits="strokeWidth" overflow="visible">		<use xlink:href="#lend4" transform="scale(-1.9,-1.9) "></use>	</marker></defs><g v:mid="17" v:index="5" v:groupcontext="foregroundPage">	<title>integrate-custom-model-in-app</title>	<v:pageproperties v:drawingscale="0.0138889" v:pagescale="0.0138889" v:drawingunits="29" v:shadowoffsetx="9" v:shadowoffsety="-9"></v:pageproperties>	<g id="shape1-1" v:mid="1" v:groupcontext="shape" transform="translate(8,-24)">		<title>Sheet.1</title>		<rect x="0" y="34" width="1008" height="616" class="st1"></rect>	</g>	<g id="shape2-3" v:mid="2" v:groupcontext="shape" transform="translate(440,-546)">		<title>Sheet.2</title>		<desc>开发者的模型</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" rx="8" ry="8" class="st2"></rect>		<text x="22" y="619.87" class="st3" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>开发者的模型</text>		</g>	<g id="shape3-6" v:mid="3" v:groupcontext="shape" transform="translate(84,-408.644)">		<title>Sheet.3</title>		<desc>IMSDK</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" rx="8" ry="8" class="st4"></rect>		<text x="44.66" y="619.8" class="st5" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape4-9" v:mid="4" v:groupcontext="shape" transform="translate(322,-407.144)">		<title>Sheet.4</title>		<desc>IMSDK</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" rx="8" ry="8" class="st4"></rect>		<text x="44.66" y="619.8" class="st5" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape5-12" v:mid="5" v:groupcontext="shape" transform="translate(562,-408.644)">		<title>Sheet.5</title>		<desc>IMSDK</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" rx="8" ry="8" class="st4"></rect>		<text x="44.66" y="619.8" class="st5" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>IMSDK</text>		</g>	<g id="shape6-15" v:mid="6" v:groupcontext="shape" transform="translate(802,-408.644)">		<title>Sheet.6</title>		<desc>SNPE/QNN 原生 C/C++ 应用程序</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" rx="8" ry="8" class="st6"></rect>		<text x="9.99" y="610.13" class="st5" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>SNPE/QNN <tspan class="st7">原生</tspan> <tspan x="12.66" dy="1.216em" class="st8">C/C++ </tspan><tspan class="st7">应用程序</tspan></text>		</g>	<g id="shape7-21" v:mid="7" v:groupcontext="shape" transform="translate(84,-261.572)">		<title>Sheet.7</title>		<desc>支持的用例 支持的模型 ~15 分钟</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="580" width="140" height="140"></v:textrect>		<rect x="0" y="510" width="140" height="140" class="st9"></rect>		<text x="4" y="532.25" class="st3" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>支持的用例<v:newlinechar></v:newlinechar><tspan x="4" dy="1.52em" class="st8">支持的模型<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.52em" class="st10">~15 </tspan>分钟</text>		</g>	<g id="shape8-26" v:mid="8" v:groupcontext="shape" transform="translate(323,-260.572)">		<title>Sheet.8</title>		<desc>支持的用例 不支持的模型 ~ 2 天*</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="580" width="140" height="140"></v:textrect>		<rect x="0" y="510" width="140" height="140" class="st9"></rect>		<text x="4" y="532.25" class="st3" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>支持的用例<v:newlinechar></v:newlinechar><tspan x="4" dy="1.52em" class="st11">不</tspan>支持的模型<v:newlinechar></v:newlinechar><tspan x="4" dy="1.523em" class="st10">~ 2 </tspan>天<tspan class="st12">*</tspan></text>		</g>	<g id="shape9-32" v:mid="9" v:groupcontext="shape" transform="translate(564,-264.572)">		<title>Sheet.9</title>		<desc>不支持的用例 不支持的模型 ~ 2 周*</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="580" width="140" height="140"></v:textrect>		<rect x="0" y="510" width="140" height="140" class="st9"></rect>		<text x="4" y="532.25" class="st13" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>不<tspan class="st14">支持的</tspan><tspan class="st15">用例</tspan><tspan class="st16"> </tspan><tspan x="4" dy="1.52em" class="st17">不</tspan><tspan class="st15">支持的模型<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.523em" class="st16">~ 2 </tspan><tspan class="st15">周</tspan><tspan class="st18">*</tspan></text>		</g>	<g id="shape10-43" v:mid="10" v:groupcontext="shape" transform="translate(802,-262.428)">		<title>Sheet.10</title>		<desc>无限制 ~ 1 周*</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="580" width="140" height="140"></v:textrect>		<rect x="0" y="510" width="140" height="140" class="st9"></rect>		<text x="4" y="532.25" class="st3" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>无限制<tspan class="st10"> </tspan><tspan x="4" dy="1.523em" class="st10">~ 1 </tspan>周<tspan class="st12">*</tspan></text>		</g>	<g id="shape11-49" v:mid="11" v:groupcontext="shape" transform="translate(1162,106) rotate(90)">		<title>Sheet.11</title>		<path d="M0 650 L32.86 650" class="st19"></path>	</g>	<g id="shape12-52" v:mid="12" v:groupcontext="shape" transform="translate(509.407,788.856) rotate(180)">		<title>Sheet.12</title>		<path d="M0 650 L351.41 650" class="st20"></path>	</g>	<g id="shape13-55" v:mid="13" v:groupcontext="shape" transform="translate(509,-511.144) rotate(4.74434E-06)">		<title>Sheet.13</title>		<path d="M0 650 L364 650" class="st20"></path>	</g>	<g id="shape14-58" v:mid="14" v:groupcontext="shape" transform="translate(808,138.856) rotate(90)">		<title>Sheet.14</title>		<path d="M0 650 L23.04 650" class="st21"></path>	</g>	<g id="shape15-64" v:mid="15" v:groupcontext="shape" transform="translate(1043,138.43) rotate(90)">		<title>Sheet.15</title>		<path d="M0 650 L25.04 650" class="st21"></path>	</g>	<g id="shape16-69" v:mid="16" v:groupcontext="shape" transform="translate(1282,138.856) rotate(90)">		<title>Sheet.16</title>		<path d="M0 650 L23.04 650" class="st21"></path>	</g>	<g id="shape17-74" v:mid="17" v:groupcontext="shape" transform="translate(1523,138.856) rotate(90)">		<title>Sheet.17</title>		<path d="M0 650 L23.04 650" class="st21"></path>	</g>	<g id="shape18-79" v:mid="18" v:groupcontext="shape" transform="translate(84,-210.534)">		<title>Sheet.18</title>		<desc>使用 IMSDK 及 eSDK 编译应用程序</desc>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="308.5" cy="630.553" width="617.01" height="38.8938"></v:textrect>		<rect x="0" y="611.106" width="617" height="38.8938" rx="8" ry="8" class="st2"></rect>		<text x="181.38" y="635.42" class="st3" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>使用<tspan class="st10"> </tspan><tspan class="st10">IMSDK </tspan>及<tspan class="st10"> </tspan><tspan class="st10">eSDK </tspan>编译应用程序</text>		</g>	<g id="shape19-86" v:mid="19" v:groupcontext="shape" transform="translate(84,-125)">		<title>Sheet.19</title>		<desc>11 + 5 – AI Hub 模型</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" class="st9"></rect>		<text x="4" y="602" class="st23" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>11 + 5 – AI Hub <tspan x="4" dy="1.515em" class="st7">模型</tspan></text>		</g>	<g id="shape20-90" v:mid="20" v:groupcontext="shape" transform="translate(322,-125)">		<title>Sheet.20</title>		<desc>03 – AI Hub 模型</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" class="st9"></rect>		<text x="4" y="602.25" class="st23" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>03 – AI Hub <tspan class="st7">模型</tspan></text>		</g>	<g id="shape21-94" v:mid="21" v:groupcontext="shape" transform="translate(562,-125)">		<title>Sheet.21</title>		<desc>05 – AI Hub 模型</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="70" cy="615" width="140" height="70"></v:textrect>		<rect x="0" y="580" width="140" height="70" class="st9"></rect>		<text x="4" y="602.25" class="st23" v:langid="1033"><v:paragraph v:spline="-1.5"></v:paragraph><v:tablist></v:tablist>05 – AI Hub <tspan class="st7">模型</tspan></text>		</g>	<g id="shape22-98" v:mid="22" v:groupcontext="shape" transform="translate(84,-53)">		<title>Sheet.22</title>		<desc>开发者应能在大约 2 小时内复制我们的交付内容。 上述时间为开发者编写自己的新应用程序的时间 有关最近的可用模型请参阅 Q...</desc>		<v:textblock v:margins="rect(4,4,4,4)" v:verticalalign="0"></v:textblock>		<v:textrect cx="306" cy="618.5" width="612" height="63"></v:textrect>		<rect x="0" y="587" width="612" height="63" class="st9"></rect>		<text x="4" y="605.6" class="st24" v:langid="1033"><v:paragraph v:indentfirst="-18" v:indentleft="18" v:bullet="1"></v:paragraph><v:tablist></v:tablist><tspan class="st8" v:isbullet="true">·</tspan> <tspan class="st7">开发者应能在大约</tspan><tspan class="st10"> </tspan><tspan class="st10">2 </tspan><tspan class="st7">小时内复制我们的交付内容</tspan><tspan class="st7">。<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.216em" class="st8" v:isbullet="true">·</tspan> <tspan class="st7">上述时间为开发者编写</tspan><tspan class="st25">自己的新应用程序</tspan><tspan class="st7">的时间<v:newlinechar></v:newlinechar></tspan><tspan x="4" dy="1.216em" class="st8" v:isbullet="true">·</tspan> <tspan class="st7">有关最近的可用模型</tspan><tspan class="st7">，</tspan><tspan class="st7">请参阅</tspan><tspan class="st10"> </tspan><tspan class="st10">Qualcomm AI Hub</tspan></text>		</g></g>
</svg>

**引入自己的模型：部署模型所需的时间**

使用 Qualcomm IM SDK

| SDK 支持的用例？ | SDK支持的模型？ | 可用的 AI Hub 模型数量 | 将模型集成到应用程序中的预期时间 |
| --- | --- | --- | --- |
| 是 | 是 | 16 | 15 分钟 |
| 是 | 否 | 3 | 2 天 |
| 否 | 否 | 5 | ~2 周<br><br><br>这是一个高级用例。 |

使用Qualcomm AI Runtime SDK（SNPE/QNN）

| SDK 支持的用例？ | SDK支持的模型？ | 可用的 AI Hub 模型数量 | 将模型集成到应用程序中的预期时间 |
| --- | --- | --- | --- |
| 无限制 | 无限制 | 0 | ~1周<br><br><br>这是一个高级用例。 |

Note

对于中级和高级开发路径，默认用户已了解 [GStreamer基础知识](https://gstreamer.freedesktop.org/documentation/tutorials/index.html)、具备 [GStreamer pipeline](https://gstreamer.freedesktop.org/documentation/gstreamer/gstpipeline.html?gi-language=c)、C/C++专业知识以及 [Yocto 编译环境](https://docs.yoctoproject.org/2.1/yocto-project-qs/yocto-project-qs.html)。

Last Published: Oct 23, 2025

[Previous Topic
下载源代码以进行开发](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BY/topics/download-source-code.md) [Next Topic
在应用程序中集成 AI Hub 模型](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BY/topics/integrate-ai-hub-models.md)