Traceback (most recent call last):


 "/media/test/5C283BCA283BA1C6/yeyupiaoling/PyCharm/PaddlePaddle-MTCNN/train_PNet/train_PNet.py", line 12, in <module>

image, label, bbox_target, landmark_target, label_cost, bbox_loss, landmark_loss, conv4_1, conv4_2, conv4_3 = P_Net()


 "/media/test/5C283BCA283BA1C6/yeyupiaoling/PyCharm/PaddlePaddle-MTCNN/train_PNet/model.py", line 67, in P_Net

label_cost = cls_ohem(cls_prob=cls_prob, label=label)


 "/media/test/5C283BCA283BA1C6/yeyupiaoling/PyCharm/PaddlePaddle-MTCNN/train_PNet/model.py", line 114, in cls_ohem

while_op = fluid.layers.While(cond=cond)


 "/usr/local/lib/python3.5/dist-packages/paddle/fluid/layers/control_flow.py", line 693, in __init__

raise TypeError("condition should be a bool scalar")
TypeError: condition should be a bool scalar

Traceback (most recent call last):



 "<ipython-input-1-313faeab8ddf>", line 1, in <module>

runfile('G:/法国第二年下/stage/Faster-RCNN-TensorFlow-Python3.5/train.py', wdir='G:/法国第二年下/stage/Faster-RCNN-TensorFlow-Python3.5')



 "C:\ProgramData\Anaconda\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile

execfile(filename, namespace)



 "C:\ProgramData\Anaconda\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)



 "G:/法国第二年下/stage/Faster-RCNN-TensorFlow-Python3.5/train.py", line 210, in <module>

train.train()



 "G:/法国第二年下/stage/Faster-RCNN-TensorFlow-Python3.5/train.py", line 148, in train

blobs = self.data_layer.forward()



 "G:\法国第二年下\stage\Faster-RCNN-TensorFlow-Python3.5\lib\layer_utils\roi_data_layer.py", line 75, in forward

blobs = self._get_next_minibatch()



 "G:\法国第二年下\stage\Faster-RCNN-TensorFlow-Python3.5\lib\layer_utils\roi_data_layer.py", line 71, in _get_next_minibatch

return get_minibatch(minibatch_db, self._num_classes)



 "G:\法国第二年下\stage\Faster-RCNN-TensorFlow-Python3.5\lib\utils\minibatch.py", line 30, in get_minibatch

im_blob, im_scales = _get_image_blob(roidb, random_scale_inds)



 "G:\法国第二年下\stage\Faster-RCNN-TensorFlow-Python3.5\lib\utils\minibatch.py", line 65, in _get_image_blob

im = im[:, ::-1, :]

TypeError: 'NoneType' object is not subscriptable