7e4f77acc37b5d963fba5be5229dc3b42f89e28b,tests/unittests/test_data_datasets.py,,test_pascal_voc_detection,#,13

Before Change




def test_pascal_voc_detection():
    if not osp.isdir(osp.expanduser("~/.mxnet/datasets/voc")):
        return

    train = data.VOCDetection(splits=((2007, "trainval"), (2012, "trainval")))
    name = str(train)
    val = data.VOCDetection(splits=((2007, "test"), ))
    name = str(val)

    assert train.classes == val.classes

    for _ in range(10):
        index = np.random.randint(0, len(train))
        _ = train[index]

    for _ in range(10):
        index = np.random.randint(0, len(val))
        _ = val[index]


def test_coco_detection():

After Change


def test_pascal_voc_detection():
    train = VOCDetectionTiny()
    name = str(train)
    val = VOCDetectionTiny(splits=(("tiny_motorbike", "test"), ))
    name = str(val)

    assert train.classes == val.classes

    for _ in range(10):
        index = np.random.randint(0, len(train))
        _ = train[index]

    for _ in range(10):
        index = np.random.randint(0, len(val))
        _ = val[index]


def test_coco_detection():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: 7e4f77acc37b5d963fba5be5229dc3b42f89e28b
Time: 2020-11-06
Author: wyin@ucdavis.edu
File Name: tests/unittests/test_data_datasets.py
Class Name:
Method Name: test_pascal_voc_detection


Project Name: allenai/allennlp
Commit Name: 02d5ddeef16a767bc77f9845bccc9ad4c47ad239
Time: 2020-03-17
Author: wuzhaofeng1997@gmail.com
File Name: allennlp/tests/data/token_indexers/pretrained_transformer_mismatched_indexer_test.py
Class Name: TestPretrainedTransformerMismatchedIndexer
Method Name: test_bert


Project Name: catalyst-team/catalyst
Commit Name: e9905e975cbaf0c71fd7e9aab113e196122c6027
Time: 2020-01-27
Author: tez.romach@gmail.com
File Name: catalyst/utils/image.py
Class Name:
Method Name: tensor_to_ndimage


Project Name: keras-team/keras
Commit Name: 6f53d0ab98e0fe0b7d51eb5a14eaa5b04dd91925
Time: 2018-08-31
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_none_shape_operations