ultralytics 8.0.92
updates and fixes (#2361)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com> Co-authored-by: introvin <vinod.4166@gmail.com> Co-authored-by: marinmarcillat <58145636+marinmarcillat@users.noreply.github.com> Co-authored-by: BIGBOSS-FOX <47949596+BIGBOSS-FOX@users.noreply.github.com>
This commit is contained in:
@ -82,8 +82,8 @@ class SamAutomaticMaskGenerator:
|
||||
memory.
|
||||
"""
|
||||
|
||||
assert (points_per_side is None) != (point_grids is
|
||||
None), 'Exactly one of points_per_side or point_grid must be provided.'
|
||||
assert (points_per_side is None) != (point_grids is None), \
|
||||
'Exactly one of points_per_side or point_grid must be provided.'
|
||||
if points_per_side is not None:
|
||||
self.point_grids = build_all_layer_point_grids(
|
||||
points_per_side,
|
||||
|
Reference in New Issue
Block a user