mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 17:17:14 +08:00

* bind success * bind success fix * FDMat pybind, ResizeByShort pybind * FDMat pybind, ResizeByShort pybind, remove initialized_ * override BindProcessorManager::Run in python is available * PyProcessorManager done * vision_pybind fix * manager.py fix * add tutorials * remove Apply() bind * remove Apply() bind and fix * fix reviewed problem * fix reviewed problem * fix reviewed problem readme * fix reviewed problem readme etc * apply return outputs * nits * update readme * fix FDMatbatch * add op pybind: CenterCrop, Pad * add op overload for pass FDMatBatch --------- Co-authored-by: Wang Xinyu <shaywxy@gmail.com>
20 lines
520 B
Markdown
20 lines
520 B
Markdown
English | [中文](README_CN.md)
|
||
|
||
# Preprocessor Python Demo
|
||
|
||
1. [build FastDeploy(Python)](../../../docs/cn/build_and_install), or download[FastDeploy prebuilt library(Python)](../../../docs/cn/build_and_install/download_prebuilt_libraries.md)
|
||
|
||
2. Run the Demo
|
||
```bash
|
||
# Download the test image
|
||
wget https://gitee.com/paddlepaddle/PaddleClas/raw/release/2.4/deploy/images/ImageNet/ILSVRC2012_val_00000010.jpeg
|
||
|
||
# Run the Demo
|
||
|
||
# OpenCV
|
||
python preprocess.py
|
||
|
||
# CV-CUDA
|
||
python preprocess.py --use_cvcuda True
|
||
```
|