Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
deepinfer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangxue
deepinfer
Commits
3bce63c6
Commit
3bce63c6
authored
Sep 22, 2022
by
xin.wang.waytous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
7555e7b4
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
49 additions
and
5 deletions
+49
-5
c_cpp_properties.json
.vscode/c_cpp_properties.json
+1
-0
README.md
README.md
+43
-0
bsw.yaml
configs/tasks/bsw/bsw.yaml
+1
-1
dms.yaml
configs/tasks/dms/dms.yaml
+1
-1
fusion.yaml
configs/tasks/fusion/fusion.yaml
+1
-1
mots.yaml
configs/tasks/mots/mots.yaml
+1
-1
thermal.yaml
configs/tasks/thermal/thermal.yaml
+1
-1
blob.h
include/base/blob.h
+0
-0
image.h
include/base/image.h
+0
-0
pipeline.h
include/base/pipeline.h
+0
-0
syncmem.h
include/base/syncmem.h
+0
-0
common.h
include/common/common.h
+0
-0
file.h
include/common/file.h
+0
-0
log.h
include/common/log.h
+0
-0
register.h
include/common/register.h
+0
-0
base_io.h
include/interfaces/base_io.h
+0
-0
base_model.h
include/interfaces/base_model.h
+0
-0
base_task.h
include/interfaces/base_task.h
+0
-0
base_unit.h
include/interfaces/base_unit.h
+0
-0
mots_res.jpg
test/mots_res.jpg
+0
-0
No files found.
.vscode/c_cpp_properties.json
View file @
3bce63c6
...
...
@@ -4,6 +4,7 @@
"name"
:
"Linux"
,
"includePath"
:
[
"${workspaceFolder}/src/**"
,
"${workspaceFolder}/include/**"
,
"/usr/local/cuda/include"
,
"/usr/local/include"
,
"/usr/include/**"
,
...
...
README.md
0 → 100644
View file @
3bce63c6
1.
编译:
git clone https://gitee.com/waytous/deepinfer.git
cd DeepInfer
修改CMakeLists.txt中cuda、tensorrt、yaml、gflag和glog等库的路径
mkdir build
cmake ..
make -j32
2.
测试:
修改需要测试任务的配置文件中的configRootPath和device,configRootPath为配置文件configs的绝对路径,device为运行gpu的id
./main TaskMOTS image ../configs/tasks/mots/mots.yaml ../test/bsw.jpg ../test/mots_res.jpg
./main TaskDetect image ../configs/tasks/thermal/thermal.yaml ../test/thermal2.jpg,../test/thermal2.jpg ../test/t_b1_res.jpg,../test/t_b2_res.jpg
./main TaskFusion image ../configs/tasks/fusion/fusion.yaml ../test/fusion_rgb.png,../test/fusion_thermal.png ../test/fusion_res.jpg
./main TaskDMS image ../configs/tasks/dms/dms.yaml ../test/dms.jpg ../test/dms_res.jpg
./main TaskBSW image ../configs/tasks/bsw/bsw.yaml ../test/bsw.jpg ../test/bsw_res.jpg
3.
扩展
本库可以分为三级扩展:Unit、Model和Task
3.
1 Unit
继承BaseUnit基类,从GlobalIOMap中获取输入,最后将输出加入此map中
每个Unit的输入输出都是继承至BaseIO类,根据不同Unit的需要进行继承。
3.
2 Model
继承基类BaseModel,将输入的图像或者点云等资源进行注册,运行定义好的全部Unit,输出结果
3.
3 Task
继承基类BaseTask,根据不同的任务,将不同模型的输入输出结合并处理
configs/tasks/bsw/bsw.yaml
View file @
3bce63c6
configRootPath
:
/home/wangxin/projects/waytous/DeepInfer
device
:
2
device
:
0
detectorName
:
CameraModel
detectorConfigPath
:
configs/tasks/bsw/rgb_yolov5.yaml
...
...
configs/tasks/dms/dms.yaml
View file @
3bce63c6
configRootPath
:
/home/wangxin/projects/waytous/DeepInfer
device
:
2
device
:
0
faceDetectorName
:
CameraModel
...
...
configs/tasks/fusion/fusion.yaml
View file @
3bce63c6
configRootPath
:
/home/wangxin/projects/waytous/DeepInfer
device
:
2
device
:
0
modelName
:
CameraModel
modelConfigPath
:
configs/tasks/fusion/fusion_model.yaml
...
...
configs/tasks/mots/mots.yaml
View file @
3bce63c6
configRootPath
:
/home/wangxin/projects/waytous/DeepInfer
device
:
2
device
:
0
segmentorName
:
CameraModel
segmentorConfigPath
:
configs/tasks/mots/trades.yaml
configs/tasks/thermal/thermal.yaml
View file @
3bce63c6
configRootPath
:
/home/wangxin/projects/waytous/DeepInfer
device
:
3
device
:
0
detectorName
:
CameraModel
detectorConfigPath
:
configs/tasks/thermal/yolov5.yaml
src
/base/blob.h
→
include
/base/blob.h
View file @
3bce63c6
File moved
src
/base/image.h
→
include
/base/image.h
View file @
3bce63c6
File moved
src
/base/pipeline.h
→
include
/base/pipeline.h
View file @
3bce63c6
File moved
src
/base/syncmem.h
→
include
/base/syncmem.h
View file @
3bce63c6
File moved
src
/common/common.h
→
include
/common/common.h
View file @
3bce63c6
File moved
src
/common/file.h
→
include
/common/file.h
View file @
3bce63c6
File moved
src
/common/log.h
→
include
/common/log.h
View file @
3bce63c6
File moved
src
/common/register.h
→
include
/common/register.h
View file @
3bce63c6
File moved
src
/interfaces/base_io.h
→
include
/interfaces/base_io.h
View file @
3bce63c6
File moved
src
/interfaces/base_model.h
→
include
/interfaces/base_model.h
View file @
3bce63c6
File moved
src
/interfaces/base_task.h
→
include
/interfaces/base_task.h
View file @
3bce63c6
File moved
src
/interfaces/base_unit.h
→
include
/interfaces/base_unit.h
View file @
3bce63c6
File moved
test/mots_res.jpg
View replaced file @
7555e7b4
View file @
3bce63c6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment