-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VTA][Relay] Reshape mismatch and Compile fail when running yolo-v3-tiny model in tutorial deploy_detection.py #7301
Comments
some new discoveries: As an strong infer , some changes in 'Relay transform or vta packing' might lead to the error on latest version wrote in the bug above. could any 'good soul' offer some help ?
|
Hey i am trying to deploy my own NN on VTA and i am having this exact problem, how did @huajsj fix this ? |
Reproduce code:
config
set(USE_VTA_FSIM ON)
in build/config.cmake , build tvm with vta on hostcd ${TVM_HOME} && python vta/tutorials/frontend/legacy/deploy_detection.py
description:
I am using the newest version code on 'Fri Jan 15 07:59:28 2021' with pynq Z1 board. Error occurs inside
graph_pack()
when running yolo-v3-tiny in deploy_detection.py.I've added more shape info in
src/relay/op/tensor/transform.cc
as follows:problem:
A relay IR is trying to reshape source tensor with shape
[1, 1, 16, 16, 26, 26]
in to shape [1, 255, 26, 26] while the high demision is 16*16=256.I've tried to find the error op, it seems the %162-th op in compiled module has output shape of (1, 255, 26, 26), The error problem is why it's shape is transformed into 256 at previous stages? Hoping programers knowing vta or relay could offer some help, thanks a lot!
related changes:
after some searching, this is some related issues i’ve found.
@fprotopapa had fixed another issue #7059 in
pack_dict
configure, change the cast inedx from 185 to 186. 👍 Did yourdeploy_detection.py
run successfully after this change? looking forward to your practice, many thanks!@huajsj had add the yolo-v3-tiny support in this commit
some additional configs are:
I‘ve verified
deploy_detection.py
my macbook proDarwin Kernel Version 16.4.0:
and ubuntu linux serverUbuntu 18.04.2 LTS (GNU/Linux 5.4.0-58-generic x86_64)
, the same problem occurs.The text was updated successfully, but these errors were encountered: