eragonruan / text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
MIT License
3.43k stars 1.33k forks source link

report the flowing error( KeyError: 'max_overlaps') while training my own dataset(contain about 10000 photos) #128

Open Fourmiiy opened 6 years ago

Fourmiiy commented 6 years ago

Traceback (most recent call last): File "ctpn/train_net.py", line 36, in restore=bool(int(cfg.TRAIN.restore))) File "/home/chendali1/gaoshengjun/text-detection-ctpn-master/lib/fast_rcnn/train.py", line 232, in train_net sw = SolverWrapper(sess,network, imdb, roidb, output_dir,log_dir, pretrained_model=pretrained_model) File "/home/chendali1/gaoshengjun/text-detection-ctpn-master/lib/fast_rcnn/train.py", line 26, in init self.bbox_means, self.bbox_stds = rdl_roidb.add_bbox_regression_targets(roidb) File "/home/chendali1/gaoshengjun/text-detection-ctpn-master/lib/roi_data_layer/roidb.py", line 56, in add_bbox_regression_targets max_overlaps = roidb[im_i]['max_overlaps']

Fourmiiy commented 6 years ago

I delete the file cache ,but it doesn't work , could anyone help me ? thanks

czh0001 commented 6 years ago

delete the foler text-detection-ctpn/data/cache may helps.

SophieSongSong commented 6 years ago

delete the foler text-detection-ctpn/data/cache works for me. thanks!