Skip to content

Commit

Permalink
update to latest ultralytics version (#31)
Browse files Browse the repository at this point in the history
* update for latest ultralytics

* update for latest ultralytics
  • Loading branch information
fcakyon authored Jan 21, 2023
1 parent 9b6a0cb commit 74ed05b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
huggingface_hub
fire
ultralytics>=8.0.12,<8.0.14
ultralytics>=8.0.14,<8.0.15
sahi>=0.11.11,<0.12.0
pandas
2 changes: 1 addition & 1 deletion ultralyticsplus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .hf_utils import download_from_hub, push_to_hfhub
from .ultralytics_utils import YOLO, postprocess_classify_output, render_result

__version__ = "0.0.15"
__version__ = "0.0.16"
2 changes: 1 addition & 1 deletion ultralyticsplus/ultralytics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def render_result(
if masks:
img_height = np_image.shape[0]
img_width = np_image.shape[1]
segments = list(reversed(masks.segments))
segments = masks.segments
segments = segments[det_ind] # segments: np.array([[x1, y1], [x2, y2]])
# convert segments into full shape
segments[:, 0] = segments[:, 0] * img_width
Expand Down

0 comments on commit 74ed05b

Please sign in to comment.