YOLO_tensorflow icon indicating copy to clipboard operation
YOLO_tensorflow copied to clipboard

conv weights -> ckpt have some error

Open haoran1062 opened this issue 8 years ago • 2 comments

hi,I try to convert the yolo-tiny.weights(download form YOLO),and it success to create the yolo-tiny.ckpt ,but when I test that yolo-tiny.ckpt(python YOLO_tiny_tf.py): Detect from person.jpg class : aeroplane , [x,y,w,h]=[168759,167882,13921232896,8060527616], Confidence = 92084104.0 Traceback (most recent call last): File "YOLO_tiny_tf.py", line 237, in <module> main(sys.argv) File "YOLO_tiny_tf.py", line 232, in main yolo = YOLO_TF(argvs) File "YOLO_tiny_tf.py", line 30, in __init__ if self.fromfile is not None: self.detect_from_file(self.fromfile) File "YOLO_tiny_tf.py", line 124, in detect_from_file self.detect_from_cvmat(img) File "YOLO_tiny_tf.py", line 116, in detect_from_cvmat self.show_results(img,self.result) File "YOLO_tiny_tf.py", line 203, in show_results cv2.rectangle(img_cp,(x-w,y-h),(x+w,y+h),(0,255,0),2) OverflowError: signed integer is less than minimum

haoran1062 avatar Nov 10 '16 08:11 haoran1062

I get the same error while trying to use the converted weights on the network. Any possible workaround to this problem? @haoran1062 Were you able to find a solution?

suryafyi avatar Feb 22 '17 05:02 suryafyi

I realized I was doing a huge mistake directly converting the weights with the default network configuration. The key is to change your YOLO_tensorflow according to your own cfg. Otherwise, obviously it is going to produce such junk results

suryafyi avatar Feb 27 '17 06:02 suryafyi