mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
G-API with PlaidML2 build instruction
parent
ff6628aab0
commit
f04e60439e
20
Graph-API.md
20
Graph-API.md
@ -31,8 +31,24 @@ cmake /path-to-opencv -DWITH_INF_ENGINE=ON -DINF_ENGINE_RELEASE=2021030000
|
||||
```
|
||||
|
||||
## Building with PlaidML support
|
||||
|
||||
TBD
|
||||
* Follow instruction to build PlaidML2: https://plaidml.github.io/plaidml/docs/building
|
||||
```bash
|
||||
bazelisk build //plaidml2:wheel
|
||||
pip install -U bazel-bin/plaidml2/wheel.pkg/tmp/dist/*
|
||||
```
|
||||
* Setup PLAIDML_DEVICE
|
||||
```bash
|
||||
python3 /path-to-plaidml/plaidml/plaidml2/plaidml_setup.py
|
||||
export `cat ~/.plaidml2`
|
||||
```
|
||||
* Build G-API with PlaidML2 support:
|
||||
```bash
|
||||
cmake /path-to-opencv -DPlaidML2_DIR=path-to-miniconda3/share/plaidml2 -DWITH_PLAIDML=ON
|
||||
```
|
||||
* Run tests:
|
||||
```bash
|
||||
/path-to-opencv-build/bin/opencv_test_gapi --gtest_filter=*GAPI_PlaidML_Pipelines*
|
||||
```
|
||||
|
||||
## Building with Microsoft ONNX Runtime support:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user