mxnet train multi-label error

ggj@ggj-All-Series:~/ggj/pro/end-to-end-for-chinese-plate-recognition-master$ python train.py
here
here2
[10:11:57] src/io/iter_image_recordio.cc:211: ImageRecordIOParser: /home/ggj/ggj/data/carplant/carplant.rec, use 3 threads for decoding..
[10:11:57] src/io/iter_image_recordio.cc:211: ImageRecordIOParser: /home/ggj/ggj/data/carplant/carplant.rec, use 3 threads for decoding..
get_iterator() finished
[10:11:58] src/operator/./reshape-inl.h:249: Using target_shape will be deprecated.
Traceback (most recent call last):
  File "train.py", line 111, in <module>
    train();
  File "train.py", line 105, in train
    model.fit(X = data_train, eval_data = data_test, eval_metric = Accuracy, batch_end_callback=mx.callback.Speedometer(batch_size, 50))
  File "/home/ggj/ggj/pro/mxnet/python/mxnet/model.py", line 745, in fit
    self._init_params(dict(data.provide_data+data.provide_label))
  File "/home/ggj/ggj/pro/mxnet/python/mxnet/model.py", line 485, in _init_params
    arg_shapes, _, aux_shapes = self.symbol.infer_shape(**input_shapes)
  File "/home/ggj/ggj/pro/mxnet/python/mxnet/symbol.py", line 453, in infer_shape
    return self._infer_shape_impl(False, *args, **kwargs)
  File "/home/ggj/ggj/pro/mxnet/python/mxnet/symbol.py", line 513, in _infer_shape_impl
    ctypes.byref(complete)))
  File "/home/ggj/ggj/pro/mxnet/python/mxnet/base.py", line 77, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: InferShape Error in softmax's label argument


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值