1.训练好模型之后,进行预测时出现这种错误:

1 mxnet.base.MXNetError: [15:05:50] src/ndarray/ndarray.cc:239: Check failed: from.shape() == to->shape() operands shape mismatchfrom.shape = (63,) to.shape=(11,)

这种问题的解决方法,在全链接层fc中设置num_hidden你需要分类的个数和训练的模型的实际分类的个数参数不匹配,查看模型json,修改为对应值即可,这里修改成63及63个分类即可!

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
  • 2021-12-17
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2021-06-23
  • 2022-01-19
  • 2022-12-23
  • 2021-12-17
  • 2021-11-12
相关资源
相似解决方案