Traceback (most recent call last):


 "trainval_net.py", line 209, in <module>

imdb.num_classes, training=True)


 "/home/wuwenfu/faster-rcnn.pytorch-master/lib/roi_data_layer/roibatchLoader.py", line 54, in __init__

self.ratio_list_batch[left_idx:(right_idx+1)] = torch.tensor(target_ratio.astype(np.float64)) # trainset ratio list ,each batch is same number
AttributeError: 'int' object has no attribute 'astype'

Traceback (most recent call last):


 "demos\python_demos\text_spotting_demo\text_spotting_demo.py", line 376, in <module>

sys.exit(main() or 0)


 "demos\python_demos\text_spotting_demo\text_spotting_demo.py", line 241, in main

(round(cap.get(cv2.CAP_PROP_FRAME_WIDTH) / 4), round(cap.get(cv2.CAP_PROP_FRAME_HEIGHT) / 8)))
AttributeError: 'FolderCapture' object has no attribute 'get'
