Spaces:
Running
Running
Add ONNX Runtime timing to performance comparison
Browse files- index.html +18 -6
index.html
CHANGED
|
@@ -58,25 +58,37 @@
|
|
| 58 |
<p class="caption">以上皆為 CC0 授權素材。照片中人物的同意與肖像權由原作者與來源平台負責,使用時請自行確認。</p>
|
| 59 |
</div>
|
| 60 |
|
| 61 |
-
<h2>效能</h2>
|
| 62 |
<div class="card">
|
|
|
|
| 63 |
<table>
|
| 64 |
<thead>
|
| 65 |
-
<tr><th>版本</th><th>
|
| 66 |
</thead>
|
| 67 |
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
<tr>
|
| 69 |
<td>OpenVINO 版 (CPU)</td>
|
| 70 |
-
<td class="num">1280x720 · 125 幀 · 換臉 125 次</td>
|
| 71 |
<td class="num">16 秒</td>
|
| 72 |
<td class="num">約 0.13 秒</td>
|
| 73 |
-
<td class="num">
|
| 74 |
</tr>
|
| 75 |
</tbody>
|
| 76 |
</table>
|
| 77 |
-
<p class="caption">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
<p class="warn">
|
| 79 |
-
|
|
|
|
|
|
|
| 80 |
</p>
|
| 81 |
</div>
|
| 82 |
|
|
|
|
| 58 |
<p class="caption">以上皆為 CC0 授權素材。照片中人物的同意與肖像權由原作者與來源平台負責,使用時請自行確認。</p>
|
| 59 |
</div>
|
| 60 |
|
| 61 |
+
<h2>效能比較</h2>
|
| 62 |
<div class="card">
|
| 63 |
+
<p>同一支 1280x720、125 幀影片、同一組目錄與參數,兩版在同一台機器上依序執行。</p>
|
| 64 |
<table>
|
| 65 |
<thead>
|
| 66 |
+
<tr><th>版本</th><th>總耗時</th><th>每幀耗時</th><th>相對速度</th></tr>
|
| 67 |
</thead>
|
| 68 |
<tbody>
|
| 69 |
+
<tr>
|
| 70 |
+
<td>ONNX Runtime 版 (CPU)</td>
|
| 71 |
+
<td class="num">1753 秒 (約 29 分鐘)</td>
|
| 72 |
+
<td class="num">約 14 秒</td>
|
| 73 |
+
<td>1x</td>
|
| 74 |
+
</tr>
|
| 75 |
<tr>
|
| 76 |
<td>OpenVINO 版 (CPU)</td>
|
|
|
|
| 77 |
<td class="num">16 秒</td>
|
| 78 |
<td class="num">約 0.13 秒</td>
|
| 79 |
+
<td class="num">約 108x</td>
|
| 80 |
</tr>
|
| 81 |
</tbody>
|
| 82 |
</table>
|
| 83 |
+
<p class="caption">
|
| 84 |
+
OpenVINO 的 16 秒為逐幀處理迴圈的時間,不含三個模型編譯 (約 1.6 秒) 與 ffmpeg 合併聲音。
|
| 85 |
+
ONNX Runtime 的 1753 秒為整個程序的實際耗時,包含模型載入與 ffmpeg 合併。
|
| 86 |
+
兩版換臉次數皆為 125 次,輸出外觀幾乎一致。
|
| 87 |
+
</p>
|
| 88 |
<p class="warn">
|
| 89 |
+
ONNX Runtime 在此測試環境的速度明顯偏慢。單獨測量時,其偵測與換臉的單次推論時間遠高於一般預期,
|
| 90 |
+
並非 onnxruntime 本身的正常表現。此倍數只代表本機、本次測試的結果,不應直接外推到其他硬體。
|
| 91 |
+
測試機器:16 核心 CPU、只使用 CPU 裝置。
|
| 92 |
</p>
|
| 93 |
</div>
|
| 94 |
|