Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

English | 中文

Preprocessor Python Demo

  1. Compile FastDeploy and open CV-CUDA option

    Compile FastDeploy
    Open CV-CUDA option

  2. Run the demo

# Download the test image
wget https://gitee.com/paddlepaddle/PaddleClas/raw/release/2.4/deploy/images/ImageNet/ILSVRC2012_val_00000010.jpeg

# Compile the Demo
mkdir build
cd build
cmake .. -DFASTDEPLOY_INSTALL_DIR=${PWD}/../../../../build/compiled_fastdeploy_sdk/ # if build sdk in `FastDeploy/build/compiled_fastdeploy_sdk`
make -j

# Run the demo

# Use OpenCV
./preprocessor_demo ILSVRC2012_val_00000010.jpeg 0

# Use CV-CUDA
./preprocessor_demo ILSVRC2012_val_00000010.jpeg 1