rsummers11 / CADLab

Imaging Biomarkers and Computer-Aided Diagnosis Laboratory

Home Page:https://www.cc.nih.gov/meet-our-doctors/rsummers.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: integer argument expected, got float & infer_shape error.

TomSirLiu opened this issue · comments

I try to use ‘python rcnn/tools/train.py’ but I get this wrong information. It's been bothering me for days......
'''
Error in proposal.infer_shape: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/mxnet/operator.py", line 751, in infer_shape_entry
array('i', rshape[i])),
TypeError: integer argument expected, got float

infer_shape error. Arguments:
data: (2, 3, 288, 349)
im_info: (2, 3)
gt_boxes: (2, 1, 5)
label: (2, 23220)
bbox_target: (2, 60, 36, 43)
bbox_weight: (2, 60, 36, 43)
Traceback (most recent call last):
File "rcnn/tools/train.py", line 265, in
train_net(default)
File "rcnn/tools/train.py", line 196, in train_net
arg_params, aux_params = init_params(args, sym, train_data)
File "rcnn/tools/train.py", line 74, in init_params
arg_shape, out_shape, aux_shape = sym.infer_shape(**data_shape_dict)
File "/usr/local/lib/python3.6/site-packages/mxnet/symbol/symbol.py", line 1076, in infer_shape
res = self._infer_shape_impl(False, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/mxnet/symbol/symbol.py", line 1210, in _infer_shape_impl
ctypes.byref(complete)))
File "/usr/local/lib/python3.6/site-packages/mxnet/base.py", line 253, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: Error in operator rois: [08:37:02] src/operator/custom/custom.cc:152: Check failed: reinterpret_cast( params.info->callbacks[kCustomOpPropInferShape])( shapes.size(), ndims.data(), shapes.data(), params.info->contexts[kCustomOpPropInferShape]):
Stack trace:
[bt] (0) /usr/local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x4a148b) [0x7fe23f31e48b]
[bt] (1) /usr/local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x895896) [0x7fe23f712896]
[bt] (2) /usr/local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x26baef2) [0x7fe241537ef2]
[bt] (3) /usr/local/lib/python3.6/site-packages/mxnet/libmxnet.so(+0x26bd7c5) [0x7fe24153a7c5]
[bt] (4) /usr/local/lib/python3.6/site-packages/mxnet/libmxnet.so(MXSymbolInferShapeEx+0x103e) [0x7fe2414a0ebe]
[bt] (5) /usr/local/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(ffi_call_unix64+0x4c) [0x7fe2aee943a6]
[bt] (6) /usr/local/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(ffi_call+0x3f1) [0x7fe2aee93101]
[bt] (7) /usr/local/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(_ctypes_callproc+0x2cf) [0x7fe2aee8a7bf]
[bt] (8) /usr/local/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so(+0x9719) [0x7fe2aee81719]
'''