-
Notifications
You must be signed in to change notification settings - Fork 3.8k
#7058 [Tutorial] Import errors in deploy_detection.py and deploy_classification.py #7059
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
Conversation
Changed import paths
changed import paths and stop layer id
tmoreau89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for catching these bugs, LGTM
Set working directory to TVM base.
Set working directory to TVM base. Changed layer id in comment to 186.
liangfu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching the bug. Please resolve the CI errors before we could merge the PR.
Reversed changes in import path. Imports working as expected.
Imports working as expected.
liangfu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @fprotopapa. The changes look good.
| from tvm.relay.testing import yolo_detection, darknet | ||
| from tvm.relay.testing.darknet import __darknetffi__ | ||
| from tvm.contrib import graph_runtime, graph_runtime, util | ||
| from tvm.contrib import graph_runtime, graph_runtime, utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind remove the duplicated graph_runtime here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated import is removed.
Duplicated graph_runtime import removed.
|
Thank you @fprotopapa and @liangfu and @vegaluisjose for reviewing the PR! |
|
Thanks for fixing it! I've run into this bug too on Dec 10 01:26:05 2020 version code. After this fix, I am using the newest version code of 'Fri Jan 15 07:59:28 2021', there is another error when running Did your |
…y_classification.py (apache#7059) * Update deploy_classification.py Changed import paths * Update deploy_detection.py changed import paths and stop layer id * Update deploy_classification.py Set working directory to TVM base. * Update deploy_detection.py Set working directory to TVM base. Changed layer id in comment to 186. * reverse changes in deploy_classification.py Reversed changes in import path. Imports working as expected. * Reverse change in import paths Imports working as expected. * Update deploy_detection.py Duplicated graph_runtime import removed.
…y_classification.py (apache#7059) * Update deploy_classification.py Changed import paths * Update deploy_detection.py changed import paths and stop layer id * Update deploy_classification.py Set working directory to TVM base. * Update deploy_detection.py Set working directory to TVM base. Changed layer id in comment to 186. * reverse changes in deploy_classification.py Reversed changes in import path. Imports working as expected. * Reverse change in import paths Imports working as expected. * Update deploy_detection.py Duplicated graph_runtime import removed.
…y_classification.py (apache#7059) * Update deploy_classification.py Changed import paths * Update deploy_detection.py changed import paths and stop layer id * Update deploy_classification.py Set working directory to TVM base. * Update deploy_detection.py Set working directory to TVM base. Changed layer id in comment to 186. * reverse changes in deploy_classification.py Reversed changes in import path. Imports working as expected. * Reverse change in import paths Imports working as expected. * Update deploy_detection.py Duplicated graph_runtime import removed.
I ran into import errors while following the
VTA tutorial for 'Deploy Pretrained Vision Model from MxNet on VTA'under Ubuntu 18.04.5 LTS and Docker images created with Dockerfile.ci_cpu. Scripts launched from tvm base directory.File: tvm/vta/tutorials/frontend/deploy_classification.pyIn line 59 to 61:
import vtafrom vta.testing import simulator
from vta.top import graph_pack
Import paths have changed and function call for graph_pack in line 181.Changed to:import vtafrom vta.python.vta.testing import simulator
from vta.python.vta.top import graphpack as graph_pack
from vta.python import vta
and in line 181relay_prog = graph_pack.graph_pack(Issue in file tvm/vta/tutorials/frontend/legacy/deploy_detection.py
Line 61:
Changed to:
Also layer id for stop layer 'cast' changed from 185 to 186 in line 126 and in the comment.