Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
Opencv Zoo
提交
63ac96cf
O
Opencv Zoo
项目概览
张重言
/
Opencv Zoo
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv Zoo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
63ac96cf
编写于
1月 11, 2023
作者:
Y
Yuantao Feng
提交者:
GitHub
1月 11, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add benchmark results for object detection (#106)
上级
06df9754
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
68 addition
and
9 deletion
+68
-9
README.md
README.md
+11
-3
benchmark/config/object_detection_nanodet.yaml
benchmark/config/object_detection_nanodet.yaml
+21
-0
benchmark/config/object_detection_yolox.yaml
benchmark/config/object_detection_yolox.yaml
+22
-0
benchmark/download_data.py
benchmark/download_data.py
+4
-0
models/__init__.py
models/__init__.py
+5
-0
models/object_detection_nanodet/README.md
models/object_detection_nanodet/README.md
+3
-1
models/object_detection_nanodet/nanodet.py
models/object_detection_nanodet/nanodet.py
+1
-1
models/object_detection_yolox/README.md
models/object_detection_yolox/README.md
+1
-4
未找到文件。
README.md
浏览文件 @
63ac96cf
...
...
@@ -15,11 +15,13 @@ Guidelines:
## Models & Benchmark Results
| Model | Task | Input Size | INTEL-CPU (ms) | RPI-CPU (ms) | JETSON-GPU (ms) | KV3-NPU (ms) | D1-CPU (ms) |
| ---------------------------------------------------- | ----------------------------- | ---------- | -------------- | ------------ | --------------- | ------------ | ----------- |
| Model
| Task | Input Size | INTEL-CPU (ms) | RPI-CPU (ms) | JETSON-GPU (ms) | KV3-NPU (ms) | D1-CPU (ms) |
| ----------------------------------------------------
---
| ----------------------------- | ---------- | -------------- | ------------ | --------------- | ------------ | ----------- |
|
[
YuNet
](
./models/face_detection_yunet
)
| Face Detection | 160x120 | 1.45 | 6.22 | 12.18 | 4.04 | 86.69 |
|
[
SFace
](
./models/face_recognition_sface
)
| Face Recognition | 112x112 | 8.65 | 99.20 | 24.88 | 46.25 | --- |
|
[
LPD-YuNet
](
./models/license_plate_detection_yunet/
)
| License Plate Detection | 320x240 | --- | 168.03 | 56.12 | 29.53 | |
|
[
LPD-YuNet
](
./models/license_plate_detection_yunet/
)
| License Plate Detection | 320x240 | --- | 168.03 | 56.12 | 29.53 | --- |
|
[
YOLOX
](
./models/object_detection_yolox/
)
| Object Detection | 640x640 | 176.68 | 1496.70 | 388.95 | 420.98 | --- |
|
[
NanoDet
](
./models/object_detection_nanodet/
)
| Object Detection | 416x416 | 157.91 | 220.36 | 64.94 | 116.64 | --- |
|
[
DB-IC15
](
./models/text_detection_db
)
| Text Detection | 640x480 | 142.91 | 2835.91 | 208.41 | --- | --- |
|
[
DB-TD500
](
./models/text_detection_db
)
| Text Detection | 640x480 | 142.91 | 2841.71 | 210.51 | --- | --- |
|
[
CRNN-EN
](
./models/text_recognition_crnn
)
| Text Recognition | 100x32 | 50.21 | 234.32 | 196.15 | 125.30 | --- |
...
...
@@ -68,6 +70,12 @@ Some examples are listed below. You can find more in the directory of each model
![
license plate detection
](
./models/license_plate_detection_yunet/examples/lpd_yunet_demo.gif
)
### Object Detection with [NanoDet](./models/object_detection_nanodet/) & [YOLOX](./models/object_detection_yolox/)
![
nanodet demo
](
./models/object_detection_nanodet/samples/1_res.jpg
)
![
yolox demo
](
./models/object_detection_yolox/samples/3_res.jpg
)
### Object Tracking with [DaSiamRPN](./models/object_tracking_dasiamrpn/)
![
webcam demo
](
./models/object_tracking_dasiamrpn/examples/dasiamrpn_demo.gif
)
...
...
benchmark/config/object_detection_nanodet.yaml
0 → 100644
浏览文件 @
63ac96cf
Benchmark
:
name
:
"
Object
Detection
Benchmark"
type
:
"
Detection"
data
:
path
:
"
benchmark/data/object_detection"
files
:
[
"
1.png"
,
"
2.png"
,
"
3.png"
]
sizes
:
-
[
416
,
416
]
metric
:
warmup
:
30
repeat
:
10
reduction
:
"
median"
backend
:
"
default"
target
:
"
cpu"
Model
:
name
:
"
NanoDet"
modelPath
:
"
models/object_detection_nanodet/object_detection_nanodet_2022nov.onnx"
prob_threshold
:
0.35
iou_threshold
:
0.6
benchmark/config/object_detection_yolox.yaml
0 → 100644
浏览文件 @
63ac96cf
Benchmark
:
name
:
"
Object
Detection
Benchmark"
type
:
"
Detection"
data
:
path
:
"
benchmark/data/object_detection"
files
:
[
"
1.png"
,
"
2.png"
,
"
3.png"
]
sizes
:
-
[
640
,
640
]
metric
:
warmup
:
30
repeat
:
10
reduction
:
"
median"
backend
:
"
default"
target
:
"
cpu"
Model
:
name
:
"
YoloX"
modelPath
:
"
models/object_detection_yolox/object_detection_yolox_2022nov.onnx"
confThreshold
:
0.35
nmsThreshold
:
0.5
objThreshold
:
0.5
benchmark/download_data.py
浏览文件 @
63ac96cf
...
...
@@ -205,6 +205,10 @@ data_downloaders = dict(
url
=
'https://drive.google.com/u/0/uc?id=1cf9MEyUqMMy8lLeDGd1any6tM_SsSmny&export=download'
,
sha
=
'997acb143ddc4531e6e41365fb7ad4722064564c'
,
filename
=
'license_plate_detection.zip'
),
object_detection
=
Downloader
(
name
=
'object_detection'
,
url
=
'https://drive.google.com/u/0/uc?id=1LUUrQIWYYtiGoNAL_twZvdw5NkC39Swe&export=download'
,
sha
=
'4161a5cd3b0be1f51484abacf19dc9a2231e9894'
,
filename
=
'object_detection.zip'
),
)
if
__name__
==
'__main__'
:
...
...
models/__init__.py
浏览文件 @
63ac96cf
...
...
@@ -12,6 +12,8 @@ from .image_classification_mobilenet.mobilenet_v2 import MobileNetV2
from
.palm_detection_mediapipe.mp_palmdet
import
MPPalmDet
from
.handpose_estimation_mediapipe.mp_handpose
import
MPHandPose
from
.license_plate_detection_yunet.lpd_yunet
import
LPD_YuNet
from
.object_detection_nanodet.nanodet
import
NanoDet
from
.object_detection_yolox.yolox
import
YoloX
class
Registery
:
def
__init__
(
self
,
name
):
...
...
@@ -39,3 +41,6 @@ MODELS.register(MobileNetV2)
MODELS
.
register
(
MPPalmDet
)
MODELS
.
register
(
MPHandPose
)
MODELS
.
register
(
LPD_YuNet
)
MODELS
.
register
(
NanoDet
)
MODELS
.
register
(
YoloX
)
models/object_detection_nanodet/README.md
浏览文件 @
63ac96cf
...
...
@@ -24,7 +24,9 @@ Here are some of the sample results that were observed using the model,
![
test1_res.jpg
](
./samples/1_res.jpg
)
![
test2_res.jpg
](
./samples/2_res.jpg
)
Check
[
benchmark/download_data.py
](
../../benchmark/download_data.py
)
for the original images.
Video inference result,
![
WebCamR.gif
](
./samples/WebCamR.gif
)
...
...
models/object_detection_nanodet/nanodet.py
浏览文件 @
63ac96cf
...
...
@@ -37,7 +37,7 @@ class NanoDet:
def
name
(
self
):
return
self
.
__class__
.
__name__
def
setBackend
(
self
,
backenId
):
def
setBackend
(
self
,
backen
d
Id
):
self
.
backend_id
=
backendId
self
.
net
.
setPreferableBackend
(
self
.
backend_id
)
...
...
models/object_detection_yolox/README.md
浏览文件 @
63ac96cf
...
...
@@ -33,10 +33,7 @@ Here are some of the sample results that were observed using the model (**yolox_
![
2_res.jpg
](
./samples/2_res.jpg
)
![
3_res.jpg
](
./samples/3_res.jpg
)
<!--
Video inference result,
![
WebCamR.gif
](
./examples/results/WebCamR.gif
)
-->
Check
[
benchmark/download_data.py
](
../../benchmark/download_data.py
)
for the original images.
## Model metrics:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录