mxnet-yolo
mxnet-yolo copied to clipboard
'module' object has no attribute 'Yolo2Output'
This error is caused when running symbol_resnet50_yolo.py
line 72 : out=mx.contrib.symbol.Yolo2Output(...)
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
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
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.
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.
@zhreshold Do you mean get into mxnet-yolo/mxnet
and run make
?
@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
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 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!