hizhangp / yolo_tensorflow

Tensorflow implementation of YOLO, including training and test phase.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do i fix this?

Mahibro opened this issue · comments

:~/yolo_tensorflow$ python train.py
WARNING:tensorflow:From /home/g5cdevs_gcp/yolo_tensorflow/yolo/yolo_net.py:186: calling reduce_max (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
Processing gt_labels from: data/pascal_voc/VOCdevkit/VOC2007
Traceback (most recent call last):
File "train.py", line 164, in
main()
File "train.py", line 152, in main
pascal = pascal_voc('train')
File "/home/g5cdevs_gcp/yolo_tensorflow/utils/pascal_voc.py", line 26, in init
self.prepare()
File "/home/g5cdevs_gcp/yolo_tensorflow/utils/pascal_voc.py", line 57, in prepare
gt_labels = self.load_labels()
File "/home/g5cdevs_gcp/yolo_tensorflow/utils/pascal_voc.py", line 102, in load_labels
label, num = self.load_pascal_annotation(index)
File "/home/g5cdevs_gcp/yolo_tensorflow/utils/pascal_voc.py", line 138, in load_pascal_annotation
cls_ind = self.class_to_ind[obj.find('name').text.lower().strip()]
KeyError: 'metacarpals'