File size: 619 Bytes
b18cd74
 
 
 
 
 
67c84d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b18cd74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
tags:
- ax650
- pulsar2
- rf-detr
---
# RF-DETR.axera
RF-DETR DEMO on AXERA NPU

### 1. 工程下载
```  
gh repo clone AXERA-TECH/Deformable-Detr.axera
```

### 2. 模型导出
```
pip3 install -r tools/requirements.txt
python3 export_onnx.py --variant small --out-dir onnx
```
### 3. Pulsar2 
```
onnxsim rf-detr-small.onnx sim.onnx
pulsar2 build --config onnx/config.json
```
### 4. 板端运行
```
python src/infer.py --model detr.axmodel --img ./assets/test.jpg  --thresh 0.5
```
### 5. 结果展示
#### AXMODEL
![axmodel_result](./asserts/ax_result.jpg)

#### ONNX
![onnx_result](./asserts/onnx_result.jpg)