mirror of https://github.com/open-mmlab/mmocr.git
Add a message when annotation is empty (#165)
Signed-off-by: lizz <lizz@sensetime.com>pull/166/head
parent
85b821ab79
commit
6a1d1020f6
|
@ -80,6 +80,7 @@ class KIEDataset(BaseDataset):
|
|||
"""
|
||||
|
||||
assert utils.is_type_list(annotations, dict)
|
||||
assert len(annotations) > 0, 'Please remove data with empty annotation'
|
||||
assert 'box' in annotations[0]
|
||||
assert 'text' in annotations[0]
|
||||
|
||||
|
|
Loading…
Reference in New Issue