Skip to content

Commit

Permalink
[PY-558] add e2e-test for darwin convert yolo ... (#734)
Browse files Browse the repository at this point in the history
* add e2e-test for `darwin convert yolo ...`

* add `darknet.labels`

* [bug] fix e2e convert tests - remove unwanted files, force add correct .txt files as they are git ignored

* add darknet.labels back

* fix darknet.labels
  • Loading branch information
saurbhc authored Dec 6, 2023
1 parent 6b8acf7 commit de76996
Show file tree
Hide file tree
Showing 5 changed files with 854 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e_tests/cli/convert/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def compare_directories(self, path: Path, expected_path: Path) -> Tuple[bool, st

@pytest.mark.parametrize(
"format, input_path, expectation_path",
[("yolo_segmented", data_path / "yolov8/from", data_path / "yolov8/to")],
[
("yolo_segmented", data_path / "yolov8/from", data_path / "yolov8/to"),
("yolo", data_path / "yolo/from", data_path / "yolo/to"),
],
)
def test_darwin_convert(
self, format: str, input_path: Path, expectation_path: Path, tmp_path: Path
Expand Down
Loading

0 comments on commit de76996

Please sign in to comment.