在CNTK中训练对象检测时出错

时间:2018-05-30 05:58:32

标签: python cntk

我是使用CNTK认知工具包的新手。当试图训练更快的RCNN。它因错误而停止: ValueError:除串联轴之外的所有输入数组维度必须完全匹配

读取代码,也许它在输入时发生,只有一个对象。因为模块在处理向量时有问题。我该如何修理它?

我使用的是2.2版。完整的代码说明:

C:\Users\USER\AppData\Local\Programs\Python\Python35\Lib\site-packages\CNTK-    Samples-        2-\Examples\Image\Detection\utils\annotations>python                          annotations_helper.py
Traceback (most recent call last):
File "annotations_helper.py", line 137, in 
create_map_files(data_set_path, class_dict, training_set=True)
   File "annotations_helper.py", line 75, in create_map_files
   gt_annotations = _load_annotation(abs_img_path, class_dict)
   File "annotations_helper.py", line 59, in _load_annotation
   annotations = np.hstack((bboxes, label_idxs))
   File "C:\Users\USER\AppData\Local\Programs\Python\Python35\lib\site-       packages\numpy\core\shape_base.py", line 288, in hstack
   return _nx.concatenate(arrs, 1)
   ValueError: all the input array dimensions except for the 

   oncatenation axis must match exactly

0 个答案:

没有答案