mxnet-yolo icon indicating copy to clipboard operation
mxnet-yolo copied to clipboard

'module' object has no attribute 'Yolo2Output'

Open miraclewkf opened this issue 6 years ago • 8 comments

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

miraclewkf avatar Feb 09 '18 03:02 miraclewkf

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

zhreshold avatar Feb 13 '18 01:02 zhreshold

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 avatar Feb 14 '18 06:02 vikash0837

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.

tholcman avatar Feb 24 '18 16:02 tholcman

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.

insanegtp avatar Mar 10 '18 00:03 insanegtp

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

miraclewkf avatar Mar 12 '18 06:03 miraclewkf

@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

miraclewkf avatar Mar 12 '18 06:03 miraclewkf

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.

ssridhar2065 avatar Mar 23 '18 07:03 ssridhar2065

@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!

qilicun avatar Mar 23 '18 08:03 qilicun