Skip to content

Commit 4eedb02

Browse files
committed
fix: translate error and import name error
1 parent acb4856 commit 4eedb02

File tree

2 files changed

+2
-136
lines changed

2 files changed

+2
-136
lines changed

i18n/en/docusaurus-plugin-content-docs/current/common/ai/_convnext_tiny_qai-app-builder.mdx

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -127,137 +127,3 @@ pip3 install requests tqdm qai-hub py3_wget opencv-python torch torchvision
127127
The printed results show that `Samoyed` has the highest confidence, which matches the input image content.
128128

129129
---
130-
131-
## English Translation (For Review)
132-
133-
This document describes using the [QAI AppBuilder](../qai-appbuilder) Python API to perform inference with the [ConvNext-Tiny](https://aihub.qualcomm.com/models/convnext_tiny)
134-
target recognition model using Qualcomm® Hexagon™ Processor (NPU).
135-
136-
**Supported Devices**
137-
138-
| Device | SoC |
139-
| ---------- | ------- |
140-
| Dragon Q6A | QCS6490 |
141-
142-
## Install QAI AppBuilder
143-
144-
:::tip
145-
146-
1. Please install QAI AppBuilder according to [**QAI AppBuilder Installation Guide**](../qai-appbuilder#installation-methods).
147-
148-
2. Please configure QAIRT environment variables according to [**Configure QAIRT Environment Variables**](../qai-appbuilder#configure-qairt-environment-variables).
149-
:::
150-
151-
## Run Example
152-
153-
### Install Dependencies
154-
155-
<NewCodeBlock tip="Device" type="device">
156-
157-
```bash
158-
pip3 install requests tqdm qai-hub py3_wget opencv-python torch torchvision
159-
```
160-
161-
</NewCodeBlock>
162-
163-
### Run Script
164-
165-
- Navigate to the example directory
166-
167-
<Tabs>
168-
169-
<TabItem value="QCS6490">
170-
171-
<NewCodeBlock tip="Device" type="device">
172-
173-
```bash
174-
cd ai-engine-direct-helper/samples/linux/python
175-
```
176-
177-
</NewCodeBlock>
178-
179-
</TabItem>
180-
181-
</Tabs>
182-
183-
- Prepare input image, using the following image as input example
184-
185-
{" "}
186-
187-
<div style={{ textAlign: "center" }}>
188-
<img src="/en/img/dragon/q6a/test_image.webp" style={{ width: "65%" }} />
189-
input image
190-
</div>
191-
192-
- Execute inference
193-
194-
<NewCodeBlock tip="Device" type="device">
195-
196-
```bash
197-
python3 convnext_tiny/convnext_tiny.py
198-
```
199-
200-
</NewCodeBlock>
201-
202-
```bash
203-
$ python3 convnext_tiny/convnext_tiny.py
204-
Current file directory: /mnt/ssd/qualcomm/701/zzf_fork/ai-engine-direct-helper/samples/linux/python/convnext_tiny
205-
0.0ms [WARNING] <W> Initializing HtpProvider
206-
207-
/prj/qct/webtech_scratch20/mlg_user_admin/qaisw_source_repo/rel/qairt-2.37.1/point_release/SNPE_SRC/avante-tools/prebuilt/dsp/hexagon-sdk-5.4.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc
208-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
209-
210-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
211-
212-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
213-
214-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
215-
216-
132.1ms [WARNING] Time: Read model file to memory. 15.88
217-
218-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
219-
220-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
221-
222-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
223-
224-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
225-
226-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
227-
228-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
229-
230-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
231-
232-
176.1ms [WARNING] Time: contextCreateFromBinary. 44.01
233-
234-
176.2ms [WARNING] Time: UnmapViewOfFile. 0.00
235-
236-
176.6ms [WARNING] Time: model_initialize convnext_tiny 176.53
237-
238-
245.2ms [WARNING] Time: model_inference convnext_tiny 11.95
239-
240-
Top 5 predictions for image:
241-
242-
Samoyed 0.637629509
243-
Pomeranian 0.1382825226
244-
keeshond 0.0217001885
245-
Arctic fox 0.0138142202
246-
white wolf 0.0115938596
247-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
248-
249-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
250-
251-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
252-
253-
0.0ms [WARNING] <W> This META does not have Alloc2 Support
254-
255-
/prj/qct/webtech_scratch20/mlg_user_admin/qaisw_source_repo/rel/qairt-2.37.1/point_release/SNPE_SRC/avante-tools/prebuilt/dsp/hexagon-sdk-5.4.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:42:dummy call to rpcmem_deinit, rpcmem APIs will be used from libxdsprpc
256-
263.1ms [WARNING] Time: model_destroy convnext_tiny 15.29
257-
```
258-
259-
The printed results show that `Samoyed` has the highest confidence, which matches the input image content.
260-
261-
```
262-
263-
```

i18n/en/docusaurus-plugin-content-docs/current/dragon/q6a/app-dev/npu-dev/qai-appbuilder-demo/fcn_resnet50.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ sidebar_position: 0
44

55
# FCN-ResNet50 Example
66

7-
import FCNRESNRT50QAIAPPBUILDER from '../../../../../common/ai/\_fcn-resnet50_qai-app-builder.mdx';
7+
import FCNRESNET50QAIAPPBUILDER from '../../../../../common/ai/\_fcn-resnet50_qai-app-builder.mdx';
88

9-
<FCNRESNRT50QAIAPPBUILDER />
9+
<FCNRESNET50QAIAPPBUILDER />

0 commit comments

Comments
 (0)