levan92 / deep_sort_realtime

A really more real-time adaptation of deep sort
MIT License
167 stars 51 forks source link

Change Embedder import to on-demand #12

Closed ang-zy closed 3 years ago

ang-zy commented 3 years ago

Currently the file imports Embedder even if it's not in use. This is an issue if we are using an external embedder and do not have PyTorch/Tensorflow installed. It also bloats up the process memory unnecessarily. This commit changes the import to happen only if the Embedder is required.

levan92 commented 3 years ago

LGTM, thanks!