Ejemplo n.º 1
0
def test_single_default_from_obs(path, *args):
    sample_list, label_type = manifest.get_sample_list(path,
                                                       "object_detection",
                                                       False, *args)
    assert (label_type == field_name.single_lable)
    check_data(sample_list)
    print("Success: test_single_default_from_obs")
Ejemplo n.º 2
0
def test_multi_default(path, *args):
    sample_list, label_type = manifest.get_sample_list(path,
                                                       "image_classification",
                                                       False, *args)
    assert (label_type == field_name.multi_lable)
    check_data(sample_list)
    print("success: test_multi_default ")
Ejemplo n.º 3
0
def test_multi_exactly_match_type_detect(path, *args):
    sample_list, label_type = manifest.get_sample_list(
        path, "modelarts/object_detection", True, *args)
    assert (label_type == field_name.multi_lable)
    check_data_without_label(sample_list)
    print("Success: test_multi_exactly_match_type_detect")
Ejemplo n.º 4
0
def test_multi_exactly_match_type(path, *args):
    sample_list, label_type = manifest.get_sample_list(
        path, "modelarts/image_classification", True, *args)
    assert (label_type == field_name.multi_lable)
    check_data(sample_list)
    print("Success: test_multi_exactly_match_type")
Ejemplo n.º 5
0
def test_single_exactly_match_type(path, *args):
    sample_list, label_type = manifest.get_sample_list(
        path, "modelarts/object_detection", True, *args)
    assert (label_type == field_name.single_lable)
    check_data(sample_list)
    print("Success: test_single_exactly_match_type")