Skip to content
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

AttributeError: module 'mxnet.contrib.symbol' has no attribute 'YoloOutput' #32

Closed
Baozhang-Ren opened this issue Jan 31, 2018 · 10 comments

Comments

@Baozhang-Ren
Copy link

Got AttributeError: module 'mxnet.contrib.symbol' has no attribute 'YoloOutput' when trying to run the demo.

@DavoFranco
Copy link

I am having the same issue.....

@zhreshold
Copy link
Owner

same as #34

@vikash0837
Copy link

Even after building mxnet from source ,i am getting the same error.
AttributeError: module 'mxnet.contrib.symbol' has no attribute 'YoloOutput'

I followed the following link for building the mxnet from source.
http://mxnet.incubator.apache.org/install/index.html

@vikash0837
Copy link

Hi,
I looked into the file mxnet/python/mxnet/contrib/symbol.py
There is no function called YoloOutput. But demo.py is redirecting to
out = mx.contrib.symbol.YoloOutput(data=pred, num_class=num_classes,
num_anchor=num_anchor, object_grad_scale=5.0, background_grad_scale=1.0,
coord_grad_scale=1.0, class_grad_scale=1.0, anchors=anchors,
nms_topk=400, warmup_samples=12800, name='yolo_output')

I checked for 'YoloOutput' in dir(mx.contrib.symbol)
which returns False only.

@zhreshold
Copy link
Owner

@vikash0837 Checkout the latest master, I forgot to update darknet symbol file in the previous update
It should be called Yolo2Output

@vikash0837
Copy link

@zhreshold ,I rebuild with latest master. Still after building ,i am not getting the Yolo2Output function.
After build i tried
import mxnet as mx
'Yolo2Output' in dir(mx.contrib.symbol) which returns False only

@vikash0837
Copy link

@zhreshold apart from the existing error there is also a bug in your latest changes.
inside symbol/symbol_darknet19_yolo.py
from symbol.symbol_darknet19 import conv_act_layer, stack_neighbor
you can't import stack_neighbor from symbol_darknet19.py as stack_neighbor function is not present in symbol_darknet19 .py
it has to be imported from common.py

@zhreshold
Copy link
Owner

@vikash0837 By latest master I mean the submodule mxnet in master branch, not official incubator-mxnet. Maybe you are mixing different mxnet.
Try

python -c "import mxnet; print(mxnet)"

to see where it locates.
Anyways, thanks for spotting the errors.

@vikash0837
Copy link

@zhreshold Thanks for your prompt reply. I am using submodule mxnet from your git only.
Here is the link . You can correct me if i am wrong.
https://github.com/zhreshold/mxnet.git

I couldn't find the module Yolo2Output anywhere in that repository. It is not populating after build as well .
Response of <python -c "import mxnet; print(mxnet)">

<module 'mxnet' from '/home/ubuntu/yoloDemo/updated-yolo/mxnet/python/mxnet/init.pyc'>

@ssridhar2065
Copy link

@zhreshold, could you please tell me how to resolve this problem. I am still getting this error.
Am I missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants