You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/31 11:50:48 UTC

[GitHub] Mendel1 opened a new issue #9644: mxnet.base.MXNetError: [19:28:21] src/core/symbolic.cc:72: Symbol.ComposeKeyword argument name cls_score not found.

Mendel1 opened a new issue #9644: mxnet.base.MXNetError: [19:28:21] src/core/symbolic.cc:72: Symbol.ComposeKeyword argument name cls_score not found.
URL: https://github.com/apache/incubator-mxnet/issues/9644
 
 
   ## Description
   When I try to use mx.symbol.contrib.Proposal.Error  below occurred:
   mxnet.base.MXNetError: [19:28:21] src/core/symbolic.cc:72: Symbol.ComposeKeyword argument name cls_score not found.
   Candidate arguments:
   	[0]cls_prob
   	[1]bbox_pred
   	[2]im_info
   ## Environment info (Required)
   ```
   ----------Python Info----------
   ('Version      :', '2.7.14')
   ('Compiler     :', 'GCC 7.2.0')
   ('Build        :', ('default', 'Dec  7 2017 17:05:42'))
   ('Arch         :', ('64bit', ''))
   ------------Pip Info-----------
   ('Version      :', '9.0.1')
   ('Directory    :', '/home/mendel/.local/lib/python2.7/site-packages/pip')
   ----------MXNet Info-----------
   ('Version      :', '1.0.0')
   ('Directory    :', '/home/mendel/anaconda3/envs/py2/lib/python2.7/site-packages/mxnet')
   ('Commit Hash   :', '790ed30f834668c673c03d8b5ea0e46a6069576d')
   ----------System Info----------
   ('Platform     :', 'Linux-4.13.0-26-generic-x86_64-with-debian-stretch-sid')
   ('system       :', 'Linux')
   ('node         :', 'server1034')
   ('release      :', '4.13.0-26-generic')
   ('version      :', '#29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018')
   ----------Hardware Info----------
   ('machine      :', 'x86_64')
   ('processor    :', 'x86_64')
   Architecture:          x86_64
   CPU op-mode(s):        32-bit, 64-bit
   Byte Order:            Little Endian
   CPU(s):                16
   On-line CPU(s) list:   0-15
   Thread(s) per core:    2
   Core(s) per socket:    4
   Socket(s):             2
   NUMA node(s):          2
   Vendor ID:             GenuineIntel
   CPU family:            6
   Model:                 79
   Model name:            Intel(R) Xeon(R) CPU E5-2637 v4 @ 3.50GHz
   Stepping:              1
   CPU MHz:               3500.004
   CPU max MHz:           3700.0000
   CPU min MHz:           1200.0000
   BogoMIPS:              7000.00
   Virtualization:        VT-x
   L1d cache:             32K
   L1i cache:             32K
   L2 cache:              256K
   L3 cache:              15360K
   NUMA node0 CPU(s):     0-3,8-11
   NUMA node1 CPU(s):     4-7,12-15
   Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0088 sec, LOAD: 1.9512 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0913 sec, LOAD: 1.7663 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.2344 sec, LOAD: 2.1977 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.1745 sec, LOAD: 1.0718 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.4385 sec, LOAD: 0.5097 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.3323 sec, LOAD: 1.3464 sec.
   ```
   Package used (Python/R/Scala/Julia):
   Python
   
   ## Build info (Required if built from source)
   
   Compiler (gcc/clang/mingw/visual studio):gcc
   
   MXNet commit hash:
   546b73accf1b11cb8c1d0d9f5580a7d10dc83b33
   Build config:
   make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda_env/cuda-8.0 USE_CUDNN=1
   ## Error Message:
   mxnet.base.MXNetError: [19:28:21] src/core/symbolic.cc:72: Symbol.ComposeKeyword argument name cls_score not found.
   Candidate arguments:
   	[0]cls_prob
   	[1]bbox_pred
   	[2]im_info
   ## Minimum reproducible example
   ```
   class PyramidProposal(nn.HybridBlock):
       def __init__(self, cfg, is_training, **kwargs):
           super(PyramidProposal, self).__init__()
           self.cfg = cfg
           self.partial_config = cfg.TRAIN if is_training else cfg.TEST
   
       def hybrid_forward(self, F, im_info, prob, pred):
                   # roi proposal
           rois_dict = {}
           for i in range(len(self.cfg.network.RPN_FEAT_STRIDE)):
               roi = F.contrib.Proposal(prob[i], bbox_pred=pred[i], im_info=im_info, rpn_pre_nms_top_n=self.partial_config.RPN_PRE_NMS_TOP_N,
                                        rpn_post_nms_top_n=self.partial_config.RPN_POST_NMS_TOP_N,threshold=self.partial_config.RPN_NMS_THRESH,          rpn_min_size=self.partial_config.RPN_MIN_SIZE,scales=tuple(self.cfg.network.ANCHOR_SCALES),ratios=tuple(self.cfg.network.ANCHOR_RATIOS),
                                        feature_stride=self.cfg.network.RPN_FEAT_STRIDE[i])
               rois_dict.update('rpn_rois_stride' %
                               (self.cfg.network.RPN_FEAT_STRIDE[i]), roi)
           return rois_dict
   ```
   ## What have you tried to solve it?
   
   1.change the proposal.cc and rebuild it
   ```c
   MXNET_REGISTER_OP_PROPERTY(_contrib_Proposal, ProposalProp)
   .describe("Generate region proposals via RPN")
   // from cls_score to cls_prob
   .add_argument("cls_prob", "NDArray-or-Symbol", "Score of how likely proposal is object.")
   .add_argument("bbox_pred", "NDArray-or-Symbol", "BBox Predicted deltas from anchors for proposals")
   .add_argument("im_info", "NDArray-or-Symbol", "Image size and scale.")
   .add_arguments(ProposalParam::__FIELDS__());
   ```
   But the error still exists.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services