Skip to content

ImportError: cannot import name 'box_iou_batch' from 'supervision.detection.utils'Β #139

@SlawekTT

Description

@SlawekTT

When importing trackers, the following error occurs:

ImportError: cannot import name 'box_iou_batch' from 'supervision.detection.utils'

This happens because box_iou_batch was recently moved in supervision package (>=0.26) to "supervision.detection.utils.iou_and_nms", while trackers still tries to import it from the old location supervision.detection.utils.

Possible fixes: Update import paths in trackers or pin supervision<0.26 in trackers dependencies.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions