Open Source Computer Vision Library https://opencv.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jiangjiajun 1fb3133ec5 Update requirements and README for PaddlePaddle sample 4 years ago
..
data Merge pull request #19976 from jiangjiajun:master 4 years ago
README.md Update requirements and README for PaddlePaddle sample 4 years ago
paddle_resnet50.py Merge pull request #19976 from jiangjiajun:master 4 years ago

README.md

Run PaddlePaddle model by OpenCV

This tutorial shows how to run PaddlePaddle model by opencv.

Environment Setup

pip install paddlepaddle-gpu
pip install paddlehub
pip install paddle2onnx

Run PaddlePaddle model demo

Run the example code as below,

python paddle_resnet50.py

there are 3 part of this execution

    1. Export PaddlePaddle ResNet50 model to onnx format;
    1. Use cv2.dnn.readNetFromONNX load model file;
    1. Preprocess image file and do inference.