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")
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 ")
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")
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")
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")