qqwweee / keras-yolo3

A Keras implementation of YOLOv3 (Tensorflow backend)
MIT License
7.13k stars 3.45k forks source link

yolo_video.py RuntimeError: The Session graph is empty #680

Open github2016-yuan opened 4 years ago

github2016-yuan commented 4 years ago

I download the code and want to learn about it. I convert .weights to .h5 and then I run yolo_video.py. I get the error: RuntimeError: The Session graph is empty

I find the error is here: yolo.py

 out_boxes, out_scores, out_classes = self.sess.run(
            [self.boxes, self.scores, self.classes],
            feed_dict={
                self.yolo_model.input: image_data,
                self.input_image_shape: [image.size[1], image.size[0]],
                K.learning_phase(): 0
            })

It seems that session here is empty. I search some solutions but cannot solve it . Would someone can give me some advice?

jiangjiaxiaotianxia commented 4 years ago

666