About OpenVX Graph Cache

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About OpenVX Graph Cache

722 次查看
at_akihito
Contributor I

Hi.

I'm using a board with i.MX8MPlus.

I have created a model and a Python script to segment humans from captured images using machine learning.

I tried the OpenVX graph cache to reduce the warm-up time before running the inference, but it stopped working on the second and subsequent runs.

I'm attaching the source code and model that reproduces the situation.

logs from the run are as follows:

# tar xf cache_error.tar.gz
# cd image_segmentation
# export VIV_VX_ENABLE_CACHE_GRAPH_BINARY="1"                                                      
# export VIV_VX_CACHE_BINARY_GRAPH_DIR=`pwd`
# python3 image_segmentation.py
INFO: Created TensorFlow Lite delegate for NNAPI.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
Applied NNAPI delegate.

# ls *.nb
7defa710c26bc71d88b66e629b41d231.nb  883db2f3bfce82bede17e5bed2e4a6b5.nb  ca661c9048851a6b2755fa0982d07102.nb
# python3 image_segmentation.py
INFO: Created TensorFlow Lite delegate for NNAPI.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
WARNING: Operator RESIZE_BILINEAR (v2) refused by NNAPI delegate: Operator refused due performance reasons.
Applied NNAPI delegate.  # <- freeze

 

Thanks.

0 项奖励
回复
2 回复数

703 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @at_akihito 

Which bsp you use?

I tried it on L5.10.72_2.2.0,fail to use NNAPI even i use libvx_delegate in code.

nxf65025_0-1647832846294.png

nxf65025_1-1647832872001.png

 

nxf65025_3-1647832997215.png

 

 

 

0 项奖励
回复

694 次查看
at_akihito
Contributor I

@Zhiming_Liu 

thaks for your reply.

 

I'm using library based on gatesgarth-5.10.9-1.0.0

 

Thanks.

0 项奖励
回复