GithubHelp home page GithubHelp logo

fdcexample's Introduction

FDCExample

PaddlePaddle/FastDeploy的capi简易封装example,使用该例子可以使用其它语言进行调用,其它模型同理 模型文件百度网盘下载并解压在根目录

1.环境准备

1.1 FastDeploy安装
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy
mkdir build && cd build
cmake .. -G Ninja -DENABLE_VISION=ON -DENABLE_ORT_BEAKEND=ON -DOPENCV_DIRECTORY="your opencv directory" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
cmake --build . --config Relase -j20
cmake --build . --config Relase --target install
1.2 jsoncpp安装
1.2.1 windows
  • 源码编译
git clone https://github.com/open-source-parsers/jsoncpp.git
cd jsoncpp
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=install
cmake --build . --config Release -j12
cmake --build . --config Release --target install
1.2.2 linux(ubuntu为例)
  • 源码编译
git clone https://github.com/open-source-parsers/jsoncpp.git
cd jsoncpp
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=install
make -j4
sudo make install
  • 直接安装
sudo apt install libjsoncpp-dev
1.3 安装gflag
git clone  https://github.com/gflags/gflags.git
cd gflags
mkdir bd && cd bd
cmake .. -DCMAKE_BUILD_PREFIX=install
cmake --build . --config Release -j12
cmake --build . --config Release --target install

2. 编译安装

git clone https://github.com/ChaoII/FDCExample.git
cd FDCExample
git submodule update --init
mkdir build && cd build
# 其中FASTDEPLOY_DIR为第一步源码编译FastDeploy得到的install路径
# DUSE_SUBMODULE可以不依赖于本地编译gflags和jsoncpp
camke .. -DFASTDEPLOY_DIR="Fastdeploy directory" -DBUILD_TESTING=fasle -DUSE_SUBMODULE=ON
cmake --build . --config Release -j12

fdcexample's People

Contributors

chaoii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.