ijkguo / mx-rcnn

Parallel Faster R-CNN implementation with MXNet.
Other
671 stars 290 forks source link

when running "python demo.py --prefix final ............ ", ModuleNotFoundError: No module named 'symbol_vgg' #84

Closed hdjsjyl closed 6 years ago

hdjsjyl commented 6 years ago

No module named 'symbol_vgg'.........

SaptaGit commented 6 years ago

Same issue

taurenexcrement commented 6 years ago

Got past this by just moving symbol_vgg.py into source but then it can't find 'bbox' module. Apparently this has something to do with cython but reinstalling it didn't help.

RSevumyan commented 6 years ago

Have the same issue

ijkguo commented 6 years ago

It could mean import failed for some reason especially if using Python3. Cython should produce rcnn/cython/bbox.so but please check out dev branch on how to just disable cython.

Ram-Godavarthi commented 6 years ago

@hdjsjyl @SaptaGit @ijkguo @taurenexcrement @dovatron Hello Guys, Did you guys solve the problem of

File "/home/ubuntu/MXnet/rcnn/symbol/init.py", line 1, in from symbol_vgg import * ModuleNotFoundError: No module named 'symbol_vgg'

I got the above error when i try to run this command bash script/vgg_voc07.sh 0 ´ Any help is really appreciated

ijkguo commented 6 years ago

Python 3? I think change to from .symbol_vgg import * should work

Ram-Godavarthi commented 6 years ago

@ijkguo I got it now. But now i am getting new error.

Traceback (most recent call last): File "test.py", line 5, in from rcnn.tools.test_rcnn import test_rcnn File "/home/ubuntu/MXnet/rcnn/tools/test_rcnn.py", line 7, in from ..symbol import File "/home/ubuntu/MXnet/rcnn/symbol/init.py", line 1, in from .symbol_vgg import File "/home/ubuntu/MXnet/rcnn/symbol/symbol_vgg.py", line 3, in import proposal ModuleNotFoundError: No module named 'proposal'

what is the issue?

ijkguo commented 6 years ago

Check the version. I fixed python 3 compatibility. The current master is different from the error you provide.

Ram-Godavarthi commented 6 years ago

Yaa I corrected it.

Now i m getting this error after 1 epoch. How to solve this? Is it related to mxnet version?

Traceback (most recent call last): File "train_end2end.py", line 178, in main() File "train_end2end.py", line 175, in main lr=args.lr, lr_step=args.lr_step) File "train_end2end.py", line 137, in train_net arg_params=arg_params, aux_params=aux_params, begin_epoch=begin_epoch, num_epoch=end_epoch) File "/home/ubuntu/anaconda3/envs/mxnet_p27/lib/python2.7/site-packages/mxnet/module/base_module.py", line 517, in fit self.set_params(arg_params, aux_params) File "/home/ubuntu/anaconda3/envs/mxnet_p27/lib/python2.7/site-packages/mxnet/module/base_module.py", line 652, in set_params allow_extra=allow_extra) TypeError: init_params() got an unexpected keyword argument 'allow_extra'

ijkguo commented 6 years ago

Yeah working on new mxnet api right now. Checkout dev branch symnet/module.py. Should be just syntax fix.

Ram-Godavarthi commented 6 years ago

@ijkguo Thank you for your previous solution

Now I have done training on my own data. But when i run a demo on single image to check my model.

I am not able to detect 2 classes on same image.. I could only able to detect one object per image.

while training i have given images with single object only. 300 images with pedestrians and 300 images with bicycle. so total 600 images.

Is it because of this?

what would be the problem?

Please help me in this..

ijkguo commented 6 years ago

The original issue is related to cython modules, which are removed in the new release.

As for training on your own dataset, you are welcome to open a new issue to detail your modifications.