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

'module' object has no attribute 'Yolo2Output' #34

Open
miraclewkf opened this issue Feb 9, 2018 · 8 comments
Open

'module' object has no attribute 'Yolo2Output' #34

miraclewkf opened this issue Feb 9, 2018 · 8 comments

Comments

@miraclewkf
Copy link

This error is caused when running symbol_resnet50_yolo.py line 72 : out=mx.contrib.symbol.Yolo2Output(...)

@zhreshold
Copy link
Owner

You need to build the mxnet module rather than official one.
I am thinking of providing a docker with prebuilt mxnet so it's available out of box

@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

@tholcman
Copy link

tholcman commented Feb 24, 2018

Pull request which adds Yolo2Output is still open ...

https://github.com/apache/incubator-mxnet/pull/8582/files

so you have to build mxnet from source of pull request.

@insanegtp
Copy link

It's the problem that the contrib.YoloOutput is defined in the zhreshold/mxnet-yolo/mxnet/src/...., however, you run the script in the environment of new mxnet verison which has no contrib.YoloOutput. I encounter the same error. I solved it by copy src/..... .cu .h .cc(3 files related to YoloOutput) to my newer version mxnet source code and recompile the source code of the newer version of mxnet.

@miraclewkf
Copy link
Author

@zhreshold Do you mean get into mxnet-yolo/mxnet and run make?

@miraclewkf
Copy link
Author

@insanegtp I run git clone --recursive https://github.com/zhreshold/mxnet-yolo.git to get the project, can you give the specific name of zhreshold/mxnet-yolo/mxnet/src/.... .cu .h .cc for mx.contrib.symbol.Yolo2Output

@ssridhar2065
Copy link

Can someone help in this case. We are not able to proceed from this issue.
Any help in this regard would be greatly appreciated.
@zhreshold can you give detailed steps on how to solve this issue.

@qilicun
Copy link

qilicun commented Mar 23, 2018

@ssridhar2065
Copy all the related .c file from
https://github.com/zhreshold/mxnet/tree/f377e54c4aff6a1ce6868d4e58f73de1958f40b8/src/operator/contrib to /your/mxnet_path/src/operator/contrib re-compile mxnet follow the step in https://mxnet.incubator.apache.org/install/index.html the problem will be solved. Good Luck!

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

7 participants