Open lfdeep opened 6 years ago
Make sure that your cfgs.DATASET_NAME in the /lib/config/cfgs.py has corresponding NAME_LABEL_MAP in the /lib/label_name_dict and the key in the NAME_LABEL_MAP dict contains all object class in your own dataset.
@powermano Thank you!i solved this problems! Ask, what is your version of tensorflow and python? My tensorflow is 1.1.0, python is 2.7, when I run train.py, the following problems occur:
Traceback (most recent call last):
File "train.py", line 230, in
I don't how to solve it?
@lfdeep Refer to issues 13
@yangxue0827 ,There is another problem: InvalidArgumentError (see above for traceback): No OpKernel was registered to support Op 'CropAndResize' with these attrs. Registered devices: [CPU,GPU], Registered kernels: device='CPU'; T in [DT_FLOAT] device='GPU'; T in [DT_FLOAT]
[[Node: fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/crop_img_object = CropAndResize[T=DT_UINT8, extrapolation_value=0, method="bilinear"](fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/ExpandDims, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/transpose, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/zeros, fast_rcnn_loss/fast_rcnn_minibatch/roi_visualize/crop_img_object/crop_size)]]
****when i run convert_data_to_tfrecord.py, Traceback (most recent call last): File "convert_data_to_tfrecord.py", line 134, in
convert_pascal_to_tfrecord()
File "convert_data_to_tfrecord.py", line 106, in convert_pascal_to_tfrecord
img_height, img_width, gtbox_label = read_xml_gtbox_and_label(xml)
File "convert_data_to_tfrecord.py", line 64, in read_xml_gtbox_and_label
label = NAME_LABEL_MAP[child_item.text]
KeyError: '5'
I don't know how to solve this probelms