shinTB icon indicating copy to clipboard operation
shinTB copied to clipboard

question about runner.test()

Open funmv opened this issue 7 years ago • 3 comments

Hi, Thank you for great code!!, I am newbie in Textboxes. After training runner.train(..), I have evaluated runner.test(2) and then I have error like:


TypeError Traceback (most recent call last) in () ----> 1 runner.test(2)

E:\shinTB\shintb\runner.py in test(self, iter) 194 output_boxes, output_confidence = self.outputdrawer.format_output(pred_conf[0], pred_loc[0]) 195 --> 196 self.outputdrawer.draw_outputs(test_imgs[0], output_boxes, output_confidence, wait=1) 197 198 step += 1

E:\shinTB\shintb\output_drawer.py in draw_outputs(self, img, boxes, confidences, wait) 102 rect_start = (x,y) 103 rect_end = (x+w, y+h) --> 104 I = cv2.rectangle(I, rect_start, rect_end, (255, 0, 0) , 5 ) 105 106 print("Textboxes information!")

TypeError: integer argument expected, got float

Can you fix it?

funmv avatar Aug 02 '17 04:08 funmv

I got the same error,have you solved it ? @funmv

yingning avatar Dec 28 '17 08:12 yingning

@funmv @yingning when i test,i have the same problem ,have you solve it?

fanw52 avatar Jan 29 '18 10:01 fanw52

@funmv @yingning @kstys @shinjayne I got same issue? Please guide

Thanks in Advance.

saifhassan avatar Apr 30 '18 14:04 saifhassan