Skip to content

Commit

Permalink
fix a bug in export_coco_as_yolov5 (#262)
Browse files Browse the repository at this point in the history
* fix a bug in `export_coco_as_yolov5`

* update to v0.8.8
  • Loading branch information
fcakyon committed Nov 2, 2021
1 parent 91e8b80 commit 9c634e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sahi/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.7"
__version__ = "0.8.8"
4 changes: 1 addition & 3 deletions sahi/utils/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,9 +2230,7 @@ def export_coco_as_yolov5(
ValueError("'train_coco' have to be provided")

# check train_split_rate
if 0 < train_split_rate and train_split_rate < 1:
split_mode = "SPLIT"
else:
if split_mode and not (0 < train_split_rate < 1):
ValueError("train_split_rate cannot be <0 or >1")

# split dataset
Expand Down

0 comments on commit 9c634e9

Please sign in to comment.