Giter VIP home page Giter VIP logo

Comments (3)

xmba15 avatar xmba15 commented on May 18, 2024

@Joevaen Do you use docker? That should be the fastest way you can reproduce the result for all the apps in this repo, because if you directly build using the scripts I provided locally, it might mess with the softwares you already have in your system.

Here is the procedure to build using the dockerfile I already prepared for a CPU system:

# cd /to/this/repo

# build docker image, this will install all the depedencies
docker build -f ./dockerfiles/ubuntu2004.dockerfile -t onnx_runtime .

# start a docker container
docker run -it --rm -v `pwd`:/workspace onnx_runtime

# inside docker, build apps with
make apps

# download yolov3 models from 
# https://github.com/onnx/models/tree/main/vision/object_detection_segmentation/yolov3

# run the app with
./build/examples/yolov3 [path/to/yolov3/onnx/model] ./data/images/no_way_home.jpg

from onnx_runtime_cpp.

xmba15 avatar xmba15 commented on May 18, 2024

If you don't use docker and want to build directly in your local system. Here is how you build the apps for CPU.

# cd /to/this/repo

# onnx library needs a rather new cmake version so first you need to update your cmake version
bash ./scripts/install_latest_cmake.bash

# here is the script to build onnx version v1.10.0
bash ./scripts/install_onnx_runtime.bash

# you need opencv to run the apps, hence you need to run the following script
bash ./scripts/install_apps_dependencies.bash
 
make apps

# download yolov3 models from 
# https://github.com/onnx/models/tree/main/vision/object_detection_segmentation/yolov3

# run the app with
./build/examples/yolov3 [path/to/yolov3/onnx/model] ./data/images/no_way_home.jpg

But as I mentioned above, there might be a conflict with your local environment, you need to check the contents of the 3 bash scripts above.

from onnx_runtime_cpp.

Joevaen avatar Joevaen commented on May 18, 2024

Thanks, I have figured out. Actually, I need delete last line annotation in cmakelist.

from onnx_runtime_cpp.

Related Issues (20)

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.