[Fix] Remove depreciated image sanity check ()

pull/663/head
Tong Gao 2021-12-10 12:50:41 +08:00 committed by GitHub
parent 6d1a5ce046
commit bdbeb69076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions
tools/data/textdet

View File

@ -344,10 +344,6 @@ def load_img_info(files):
img_file, gt_file = files
# read imgs with ignoring orientations
img = mmcv.imread(img_file, 'unchanged')
# read imgs with orientations as dataloader does when training and testing
img_color = mmcv.imread(img_file, 'color')
# make sure imgs have no orientation info, or annotation gt is wrong.
assert img.shape[0:2] == img_color.shape[0:2]
split_name = osp.basename(osp.dirname(img_file))
img_info = dict(