Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve requirements and import handling #502

Merged
merged 9 commits into from
Jun 19, 2022
Merged

improve requirements and import handling #502

merged 9 commits into from
Jun 19, 2022

Conversation

fcakyon
Copy link
Collaborator

@fcakyon fcakyon commented Jun 19, 2022

env command usage:

Print related package versions in the current env as:

>> sahi env
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   torch version 1.11.0 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   torchvision version 0.12.0 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   yolov5 version 6.1.3 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   mmdet version 2.25.0 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   mmcv version 1.5.3 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   detectron2 version 0.6+cpu is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   transformers version 4.20.0 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   timm version 0.4.12 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   layer version 0.10.2510447650 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   fiftyone version 0.14.2 is available.
06/19/2022 21:24:52 - INFO - sahi.utils.import_utils -   norfair version 1.0.0 is available.

version command usage:

Print your SAHI verison as:

>> sahi version
0.10.0

get_package_info function usage:

>>> from sahi.utils.import_utils import get_package_info
>>> get_package_info("torch", verbose=False)
(True, '1.11.0')

@fcakyon fcakyon added the enhancement New feature or request label Jun 19, 2022
@fcakyon fcakyon self-assigned this Jun 19, 2022
@fcakyon fcakyon added documentation Improvements or additions to documentation cli labels Jun 19, 2022
@fcakyon fcakyon merged commit 4934db9 into main Jun 19, 2022
@fcakyon fcakyon deleted the reqs branch June 19, 2022 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant