-
Notifications
You must be signed in to change notification settings - Fork 137
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
Tests on more real datasets for some datasets #707
Open
yasakova-anastasia
wants to merge
10
commits into
develop
Choose a base branch
from
ay/tests
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1af3a50
Add tests for MNIST
yasakova-anastasia 0e4b923
Add tests for WiderFace
yasakova-anastasia 9b477f0
Add tests for Cityscapes
yasakova-anastasia 578bba9
Remove unused file
yasakova-anastasia d01c8be
Add dataset mangling function
yasakova-anastasia 85abad6
Fixes
yasakova-anastasia 5abcfff
Fix dataset_mangling
yasakova-anastasia 7e5a772
Fixes
yasakova-anastasia edcd287
Add test
yasakova-anastasia 11bd377
Add file with labels for WiderFace dataset
yasakova-anastasia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright (C) 2022 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
import numpy as np | ||
|
||
from datumaro.components.annotation import AnnotationType, Mask | ||
from datumaro.components.dataset import Dataset | ||
from datumaro.components.media import Image | ||
from datumaro.plugins.sampler.random_sampler import RandomSampler | ||
|
||
|
||
def dataset_mangling(dataset, count=-1, image_size=(3, 1, 3)): | ||
if count > 0: | ||
dataset = RandomSampler(dataset, count) | ||
dataset = Dataset.from_extractors(dataset) | ||
|
||
id = 1 | ||
for subset in dataset.subsets().values(): | ||
for item in subset: | ||
item.id = str(id) | ||
id += 1 | ||
|
||
item.media = Image(data=np.ones(image_size)) | ||
|
||
annotations = [] | ||
|
||
labels = [anno for anno in item.annotations if anno.type == AnnotationType.label] | ||
for label in labels: | ||
label.label = (label.label + np.random.randint(0, 10)) % len( | ||
dataset.categories()[AnnotationType.label] | ||
) | ||
|
||
annotations += labels | ||
|
||
bboxes = [anno for anno in item.annotations if anno.type == AnnotationType.bbox] | ||
for bbox in bboxes: | ||
x0 = bbox.points[0] | ||
bbox.points[0] = np.random.uniform(max(x0 - x0 / 2, 0), x0 + x0 / 2) | ||
y0 = bbox.points[1] | ||
bbox.points[1] = np.random.uniform(max(y0 - y0 / 2, 0), y0 + y0 / 2) | ||
x1 = bbox.points[2] | ||
bbox.points[2] = np.random.uniform(max(x1 - x1 / 2, 0), x1 + x1 / 2) | ||
y1 = bbox.points[3] | ||
bbox.points[3] = np.random.uniform(max(y1 - y1 / 2, 0), y1 + y1 / 2) | ||
|
||
annotations += bboxes | ||
|
||
masks = [anno for anno in item.annotations if anno.type == AnnotationType.mask] | ||
if masks: | ||
mask_size = image_size[:2] | ||
|
||
mask = np.random.randint( | ||
0, len(dataset.categories()[AnnotationType.mask]), size=mask_size | ||
) | ||
|
||
segm_ids = np.unique(mask) | ||
for segm_id in segm_ids: | ||
annotations.append(Mask(image=lazy_extract_mask(mask, segm_id), label=segm_id)) | ||
|
||
item.annotations = annotations | ||
|
||
return dataset | ||
|
||
|
||
def lazy_extract_mask(mask, c): | ||
return lambda: mask == c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,20 +92,23 @@ def __enter__(self) -> str: | |
return path | ||
|
||
|
||
def compare_categories(test, expected, actual): | ||
test.assertEqual(sorted(expected, key=lambda t: t.value), sorted(actual, key=lambda t: t.value)) | ||
def compare_categories(test, expected, actual, externally_comparison=False): | ||
if not externally_comparison: | ||
test.assertEqual( | ||
sorted(expected, key=lambda t: t.value), sorted(actual, key=lambda t: t.value) | ||
) | ||
|
||
if AnnotationType.label in expected: | ||
if AnnotationType.label in expected and AnnotationType.label in actual: | ||
test.assertEqual( | ||
expected[AnnotationType.label].items, | ||
actual[AnnotationType.label].items, | ||
) | ||
if AnnotationType.mask in expected: | ||
if AnnotationType.mask in expected and AnnotationType.mask in actual: | ||
test.assertEqual( | ||
expected[AnnotationType.mask].colormap, | ||
actual[AnnotationType.mask].colormap, | ||
) | ||
if AnnotationType.points in expected: | ||
if AnnotationType.points in expected and AnnotationType.points in actual: | ||
test.assertEqual( | ||
expected[AnnotationType.points].items, | ||
actual[AnnotationType.points].items, | ||
|
@@ -137,15 +140,49 @@ def _compare_annotations(expected, actual, ignored_attrs=None): | |
return r | ||
|
||
|
||
def _compare_annotations_externally(expected, actual, ignored_attrs=None): | ||
a_attr = expected.attributes | ||
b_attr = actual.attributes | ||
|
||
if ignored_attrs != IGNORE_ALL: | ||
expected.attributes = filter_dict(a_attr, exclude_keys=ignored_attrs) | ||
actual.attributes = filter_dict(b_attr, exclude_keys=ignored_attrs) | ||
elif ignored_attrs: | ||
expected.attributes = {} | ||
actual.attributes = {} | ||
|
||
a_id = expected.id | ||
b_id = actual.id | ||
a_group = expected.group | ||
b_group = actual.group | ||
|
||
expected.id = 0 | ||
actual.id = 0 | ||
expected.group = 0 | ||
actual.group = 0 | ||
|
||
r = expected == actual | ||
|
||
expected.attributes = a_attr | ||
actual.attributes = b_attr | ||
expected.id = a_id | ||
actual.id = b_id | ||
expected.group = a_group | ||
actual.group = b_group | ||
|
||
return r | ||
|
||
|
||
def compare_datasets( | ||
test, | ||
expected: IDataset, | ||
actual: IDataset, | ||
ignored_attrs: Union[None, Literal["*"], Collection[str]] = None, | ||
require_media: bool = False, | ||
require_images: bool = False, | ||
externally_comparison=False, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not clear what |
||
): | ||
compare_categories(test, expected.categories(), actual.categories()) | ||
compare_categories(test, expected.categories(), actual.categories(), externally_comparison) | ||
|
||
test.assertTrue(issubclass(actual.media_type(), expected.media_type())) | ||
|
||
|
@@ -187,9 +224,19 @@ def compare_datasets( | |
ann_b_matches = [x for x in item_b.annotations if x.type == ann_a.type] | ||
test.assertFalse(len(ann_b_matches) == 0, "ann id: %s" % ann_a.id) | ||
|
||
ann_b = find( | ||
ann_b_matches, lambda x: _compare_annotations(x, ann_a, ignored_attrs=ignored_attrs) | ||
) | ||
if externally_comparison: | ||
ann_b = find( | ||
ann_b_matches, | ||
lambda x: _compare_annotations_externally( | ||
x, ann_a, ignored_attrs=ignored_attrs | ||
), | ||
) | ||
else: | ||
ann_b = find( | ||
ann_b_matches, | ||
lambda x: _compare_annotations(x, ann_a, ignored_attrs=ignored_attrs), | ||
) | ||
Comment on lines
+227
to
+238
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cmp_anns = ...
...
cmp_anns(a, b, ...) I suggest to use the strategy pattern here. |
||
|
||
if ann_b is None: | ||
test.fail("ann %s, candidates %s" % (ann_a, ann_b_matches)) | ||
item_b.annotations.remove(ann_b) # avoid repeats | ||
|
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/13_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/13_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/13_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/14_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/14_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/14_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/15_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/15_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/15_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+104 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/16_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/16_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/16_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+104 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/17_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/17_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/17_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/18_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/18_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/18_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/19_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/19_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/19_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/test/20_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/test/20_gtFine_instanceIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/test/20_gtFine_labelIds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/10_gtFine_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94 Bytes
...sets/cityscapes_dataset/mangling_dataset/gtFine/train/10_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
.../assets/cityscapes_dataset/mangling_dataset/gtFine/train/10_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/11_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...sets/cityscapes_dataset/mangling_dataset/gtFine/train/11_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
.../assets/cityscapes_dataset/mangling_dataset/gtFine/train/11_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/12_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...sets/cityscapes_dataset/mangling_dataset/gtFine/train/12_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
.../assets/cityscapes_dataset/mangling_dataset/gtFine/train/12_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+104 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/1_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/1_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/1_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+103 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/2_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+93 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/2_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/2_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/3_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/3_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/3_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/4_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+93 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/4_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/4_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/5_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/5_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/5_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+105 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/6_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/6_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/6_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+106 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/7_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/7_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/7_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/8_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/8_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/8_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+108 Bytes
tests/assets/cityscapes_dataset/mangling_dataset/gtFine/train/9_gtFine_color.png
Oops, something went wrong.
Binary file added
BIN
+94 Bytes
...ssets/cityscapes_dataset/mangling_dataset/gtFine/train/9_gtFine_instanceIds.png
Oops, something went wrong.
Binary file added
BIN
+81 Bytes
...s/assets/cityscapes_dataset/mangling_dataset/gtFine/train/9_gtFine_labelIds.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/13_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/14_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/15_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/16_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/17_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/18_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/19_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/test/20_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...tyscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/10_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...tyscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/11_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...tyscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/12_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/1_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/2_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/3_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/4_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/5_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/6_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/7_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/8_leftImg8bit.png
Oops, something went wrong.
Binary file added
BIN
+83 Bytes
...ityscapes_dataset/mangling_dataset/imgsFine/leftImg8bit/train/9_leftImg8bit.png
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+74 Bytes
tests/assets/mnist_dataset/mangling_dataset/t10k-images-idx3-ubyte.gz
Binary file not shown.
Binary file added
BIN
+54 Bytes
tests/assets/mnist_dataset/mangling_dataset/t10k-labels-idx1-ubyte.gz
Binary file not shown.
Binary file added
BIN
+86 Bytes
tests/assets/mnist_dataset/mangling_dataset/train-images-idx3-ubyte.gz
Binary file not shown.
Binary file added
BIN
+67 Bytes
tests/assets/mnist_dataset/mangling_dataset/train-labels-idx1-ubyte.gz
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+631 Bytes
tests/assets/widerface_dataset/mangling_dataset/WIDER_test/images/0--face/7.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
tests/assets/widerface_dataset/mangling_dataset/WIDER_test/images/0--face/9.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...ets/widerface_dataset/mangling_dataset/WIDER_test/images/1--Demonstration/3.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
tests/assets/widerface_dataset/mangling_dataset/WIDER_test/images/3--Picnic/2.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...s/assets/widerface_dataset/mangling_dataset/WIDER_test/images/4--Baseball/4.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...s/assets/widerface_dataset/mangling_dataset/WIDER_test/images/4--Baseball/8.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...assets/widerface_dataset/mangling_dataset/WIDER_test/images/5--Car_Racing/1.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
.../assets/widerface_dataset/mangling_dataset/WIDER_test/images/7--Interview/5.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...ts/widerface_dataset/mangling_dataset/WIDER_test/images/8--Award_Ceremony/6.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
tests/assets/widerface_dataset/mangling_dataset/WIDER_train/images/0--face/16.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...s/widerface_dataset/mangling_dataset/WIDER_train/images/1--Demonstration/18.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...ts/widerface_dataset/mangling_dataset/WIDER_train/images/2--Family_Group/15.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...s/assets/widerface_dataset/mangling_dataset/WIDER_train/images/3--Picnic/19.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...assets/widerface_dataset/mangling_dataset/WIDER_train/images/4--Baseball/12.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...assets/widerface_dataset/mangling_dataset/WIDER_train/images/4--Baseball/13.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
tests/assets/widerface_dataset/mangling_dataset/WIDER_train/images/6--Group/17.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...ssets/widerface_dataset/mangling_dataset/WIDER_train/images/7--Interview/11.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
...ssets/widerface_dataset/mangling_dataset/WIDER_train/images/7--Interview/20.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
.../widerface_dataset/mangling_dataset/WIDER_train/images/8--Award_Ceremony/10.jpg
Oops, something went wrong.
Binary file added
BIN
+631 Bytes
.../widerface_dataset/mangling_dataset/WIDER_train/images/8--Award_Ceremony/14.jpg
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
face | ||
Demonstration | ||
Family_Group | ||
Picnic | ||
Baseball | ||
Car_Racing | ||
Group | ||
Interview | ||
Award_Ceremony |
9 changes: 9 additions & 0 deletions
9
tests/assets/widerface_dataset/mangling_dataset/wider_face_split/wider_face_test_bbx_gt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
5--Car_Racing/1.jpg | ||
3--Picnic/2.jpg | ||
1--Demonstration/3.jpg | ||
4--Baseball/4.jpg | ||
7--Interview/5.jpg | ||
8--Award_Ceremony/6.jpg | ||
0--face/7.jpg | ||
4--Baseball/8.jpg | ||
0--face/9.jpg |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reuse the regular comparison function?