Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in ICDAR dataset format #174

Merged
merged 9 commits into from
Mar 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
yasakova-anastasia committed Mar 18, 2021

Verified

This commit was signed with the committer’s verified signature.
BryanttV Bryann Valderrama
commit 26fe59678f37046998371d1fa66bddde46f6eedd
7 changes: 4 additions & 3 deletions tests/test_icdar_format.py
Original file line number Diff line number Diff line change
@@ -191,12 +191,13 @@ def test_can_save_and_load_with_no_subsets(self):

def test_can_save_dataset_with_cyrillic_and_spaces_in_filename(self):
expected_dataset = Dataset.from_iterable([
DatasetItem(id='кириллица с пробелом', image=np.ones((8, 8, 3)),
annotations=[
DatasetItem(id='кириллица с пробелом',
image=np.ones((8, 8, 3)), annotations=[
Bbox(0, 1, 3, 5),
]),
])

with TestDir() as test_dir:
self._test_save_and_load(expected_dataset,
IcdarTextLocalizationConverter.convert, test_dir)
partial(IcdarTextLocalizationConverter.convert, save_images=True),
test_dir)