Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

MxNet/example/rcnn/demo.py error #2694

Closed
hollyholly5 opened this issue Jul 14, 2016 · 12 comments
Closed

MxNet/example/rcnn/demo.py error #2694

hollyholly5 opened this issue Jul 14, 2016 · 12 comments

Comments

@hollyholly5
Copy link

demo.py error shows:
Traceback (most recent call last):
File "E:\2016prog\rcnnpython\demo.py", line 33, in
demo_net(detector, os.path.join(os.getcwd(), 'data', 'demo', '000004'))
File "E:\2016prog\rcnnpython\tools\demo_net.py", line 33, in demo_net
scores, boxes = detector.im_detect(im_array, roi_array)
File "E:\2016prog\rcnnpython\rcnn\detector.py", line 46, in im_detect
aux_states=None)#self.aux_params
File "C:\Python27\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet\symbol.py", line 783, in bind
args_handle, args = self._get_ndarray_inputs('args', args, listed_arguments, False)
File "C:\Python27\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet\symbol.py", line 625, in _get_ndarray_inputs
raise ValueError('Must specify all the arguments in %s' % arg_key)
ValueError: Must specify all the arguments in args

How can I deal with it ?

@piiswrong
Copy link
Contributor

@precedenceguo

@ijkguo
Copy link
Contributor

ijkguo commented Jul 23, 2016

Bind will issue this error when arguments are missing. Try listing arg_params.keys() and see if anything is missing. We uploaded a new demo for faster rcnn with a pretrained model. You are welcome to check that out.

@hollyholly5
Copy link
Author

@precedenceguo Thank you very much for your response.
I tried the pretrained model
python demo.py --prefix final --epoch 0 --image 000004.jpg --gpu 0
I got errors:
File "C:\Python27\lib\site-packages\mxnet-0.7.0-py2.7.egg\mxnet\base.py", line 77, in check_call
raise MXNetError(py_str(LIB.MXGetLastError()))
mxnet.base.MXNetError: [15:33:23] d:\chhong\mxnet\src\operator./convolution-inl.h:279: Check failed: (param
.workspace) >= (required_size)
Minimum workspace size: 1135104000 Bytes
Given: 536870912 Bytes
[15:33:23] D:\chhong\mxnet\src\engine\naive_engine.cc:28: Engine shutdown

so I wonder this pretrained model requires what size of workspace. Sorry for the low level of my GPU: GTX 965

@ijkguo
Copy link
Contributor

ijkguo commented Jul 29, 2016

Please consider use cudnn to avoid this problem.

@marcociccone
Copy link

Hi have the same issue, I cannot use cudnn on my board. Could you elaborate on this problem? What is related to?

@ijkguo
Copy link
Contributor

ijkguo commented Oct 21, 2016

Please follow http://mxnet.io/api/python/symbol.html#mxnet.symbol.Convolution to set proper workspace for convolution.

@marcociccone
Copy link

Thank you for you help, now it’s working.

Il giorno 21 ott 2016, alle ore 05:22, Jian Guo [email protected] ha scritto:

Please follow http://mxnet.io/api/python/symbol.html#mxnet.symbol.Convolution http://mxnet.io/api/python/symbol.html#mxnet.symbol.Convolution to set proper workspace for convolution.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #2694 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABECRC8X1ziZ6tDHRWfOk4VS7JpHw75uks5q2C_6gaJpZM4JMEOZ.

@wengyc
Copy link

wengyc commented Dec 2, 2016

I got the same error ValueError: Must specify all the arguments in args,but i don't know how to deal with it.I use it in windows 10.I ran the command python demo.py --prefix final --epoch 0 --image myimage.jpg --gpu 0

@ijkguo
Copy link
Contributor

ijkguo commented Dec 2, 2016

It means some parameters are missing. Please check everything is there in arg_params and aux_params.

@yasenvlsim
Copy link

How and where can I set proper workspace for convolution?

@ijkguo
Copy link
Contributor

ijkguo commented Jan 17, 2017

@phunterlau
Copy link
Contributor

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

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

No branches or pull requests

7 participants