endernewton / tf-faster-rcnn

Tensorflow Faster RCNN for Object Detection
https://arxiv.org/pdf/1702.02138.pdf
MIT License
3.65k stars 1.57k forks source link

Error in `python': corrupted size vs. prev_size: 0x0000000000ec3240 #220

Open zdm123 opened 7 years ago

zdm123 commented 7 years ago

I only do the 25000 iteration, and test the model, but have the following problem. Do you have any ideal what is the problem? Writing aeroplane VOC results file Writing bicycle VOC results file Writing bird VOC results file Writing boat VOC results file Writing bottle VOC results file Writing bus VOC results file Writing car VOC results file Writing cat VOC results file Writing chair VOC results file Writing cow VOC results file Writing diningtable VOC results file Writing dog VOC results file Writing horse VOC results file Writing motorbike VOC results file Writing person VOC results file Writing pottedplant VOC results file Writing sheep VOC results file Writing sofa VOC results file Writing train VOC results file Writing tvmonitor VOC results file VOC07 metric? Yes Traceback (most recent call last): File "./tools/test_net.py", line 117, in test_net(sess, net, imdb, filename, max_per_image=args.max_per_image) File "/home2/sdin7632/shanshan/tf-faster-rcnn-r1.0/tools/../lib/model/test.py", line 196, in test_net imdb.evaluate_detections(all_boxes, output_dir) File "/home2/sdin7632/shanshan/tf-faster-rcnn-r1.0/tools/../lib/datasets/pascal_voc.py", line 281, in evaluate_detections self._do_python_eval(output_dir) File "/home2/sdin7632/shanshan/tf-faster-rcnn-r1.0/tools/../lib/datasets/pascal_voc.py", line 244, in _do_python_eval use_07_metric=use_07_metric) File "/home2/sdin7632/shanshan/tf-faster-rcnn-r1.0/tools/../lib/datasets/voc_eval.py", line 134, in voc_eval R = [obj for obj in recs[imagename] if obj['name'] == classname] KeyError: '1' Error in `python': corrupted size vs. prev_size: 0x0000000000ec3240 Command terminated by signal 6 198.54user 187.98system 8:45.24elapsed 73%CPU (0avgtext+0avgdata 1548152maxresident)k 406352inputs+1688outputs (0major+1913505minor)pagefaults 0swaps

Hsy1996 commented 6 years ago

@zdm123 I have the same problem. Did you solve it ?

AliceLcz commented 6 years ago

I also have the same problem. Following is my logs: li@li-RESCUER-Y720-15IKB:~/tf-faster-rcnn$ ./experiments/scripts/test_faster_rcnn.sh 0 pascal_voc vgg16

000017 is a image name of my test set, did you solve it?

dnd88 commented 6 years ago

Hi, I also had the similar problem. In my case, there were two data-sets(directory) in the same directory. (/tf-faster-rcnn/data/VOCdevkit2007/) One was face data, the other one was license plate data. When I wanted to test about license plate detection, I faced the similar problem.

When I printed "recs" by "print(recs)" at (File "/tf-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 134, in voc_eval), it didn't read license plate data, but read face data. So I just removed the directory for face data, it worked after that.