Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Model] Integrate FlyCV image processing library #375

Merged
merged 34 commits into from
Nov 1, 2022
Merged

Conversation

jiangjiajun
Copy link
Collaborator

PR types

PR changes

Describe

@jiangjiajun jiangjiajun changed the title Integrate FalconCV image processing library [Model] Integrate FalconCV image processing library Oct 19, 2022
@jiangjiajun jiangjiajun changed the title [Model] Integrate FalconCV image processing library [Model] Integrate FlyCV image processing library Oct 21, 2022
@jiangjiajun
Copy link
Collaborator Author

jiangjiajun commented Oct 25, 2022

编译

git clone https://github.com/PaddlePaddle/FastDeploy
cd FastDeploy
git checkout falconcv
mkdir build && cd build
cmake .. -DENABLE_LITE_BACKEND=ON -DENABLE_VISION=ON -DENABLE_FLYCV=ON -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy

make -j8
make install

编译完成后,C++ SDK即在当前目录的installed_fastdeploy目录下

测试

下载附件[ demo.tgz](https://bj.bcebos.com/fastdeploy/tests/demo.tgz)

tar xvf demo.zip
cd demo
cmake . -DFASTDEPLOY_INSTALL_DIR=/path/to/installed_fastdeploy
make -j

执行如下命令得到测试时间

./test_picodet picodet_l_320_coco_lcnet 000000014439.jpg

如果执行时,提示找到.so,可执行source /path/to/installed_fastdeploy/fastdeploy_init.sh来导入库路径

默认跑的是flycv库,如若需切换为opencv库,修改test_picodet.cc,注释fastdeploy::vision::EnableFlyCV()即可

代码说明

所有预处理算子封装在fastdeploy/vision/common/processors目录下,可在相应的代码中加日志debug

picodet的预处理函数Preprocessfastdeploy/vision/detection/ppdet/ppyoloe.cc中实现,可在相应的代码中加日志debug

jiangjiajun and others added 8 commits October 25, 2022 21:24
* [Android] integrate flycv into Andorid

* Falconcv (#27)

* [Bug Fix ]Update ppseg visualize python api && demo (#454)

Update ppseg visualize python api && demo

* [Model] update pptracking letterboxresize and add some comment (#438)

* add override mark

* delete some

* recovery

* recovery

* add tracking

* add tracking py_bind and example

* add pptracking

* add pptracking

* iomanip head file

* add opencv_video lib

* add python libs package

Signed-off-by: ChaoII <849453582@qq.com>

* complete comments

Signed-off-by: ChaoII <849453582@qq.com>

* add jdeTracker_ member variable

Signed-off-by: ChaoII <849453582@qq.com>

* add 'FASTDEPLOY_DECL' macro

Signed-off-by: ChaoII <849453582@qq.com>

* remove kwargs params

Signed-off-by: ChaoII <849453582@qq.com>

* [Doc]update pptracking docs

* delete 'ENABLE_PADDLE_FRONTEND' switch

* add pptracking unit test

* update pptracking unit test

Signed-off-by: ChaoII <849453582@qq.com>

* modify test video file path and remove trt test

* update unit test model url

* remove 'FASTDEPLOY_DECL' macro

Signed-off-by: ChaoII <849453582@qq.com>

* fix build python packages about pptracking on win32

Signed-off-by: ChaoII <849453582@qq.com>

* update comment

Signed-off-by: ChaoII <849453582@qq.com>

* add pptracking model explain

Signed-off-by: ChaoII <849453582@qq.com>

Signed-off-by: ChaoII <849453582@qq.com>
Co-authored-by: Jason <jiangjiajun@baidu.com>

Signed-off-by: ChaoII <849453582@qq.com>
Co-authored-by: huangjianhui <852142024@qq.com>
Co-authored-by: ChaoII <849453582@qq.com>
Co-authored-by: Jason <jiangjiajun@baidu.com>

* [cmake] optimize examples CMakeLists.txt

Signed-off-by: ChaoII <849453582@qq.com>
Co-authored-by: huangjianhui <852142024@qq.com>
Co-authored-by: ChaoII <849453582@qq.com>
Co-authored-by: Jason <jiangjiajun@baidu.com>
@jiangjiajun jiangjiajun merged commit bb00e07 into develop Nov 1, 2022
@jiangjiajun jiangjiajun deleted the falconcv branch November 1, 2022 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants