Skip to content

Commit

Permalink
check_requirements() exclude opencv-python
Browse files Browse the repository at this point in the history
Duplicate of #3495 merged to `develop`. This PR will be merged to `master`.

Fixes #3494.
  • Loading branch information
glenn-jocher committed Jun 7, 2021
1 parent 4d4a2b0 commit f9d19e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def _create(name, pretrained=True, channels=3, classes=80, autoshape=True, verbo
from utils.google_utils import attempt_download
from utils.torch_utils import select_device

check_requirements(Path(__file__).parent / 'requirements.txt', exclude=('tensorboard', 'pycocotools', 'thop'))
check_requirements(requirements=Path(__file__).parent / 'requirements.txt',
exclude=('tensorboard', 'pycocotools', 'thop', 'opencv-python'))
set_logging(verbose=verbose)

fname = Path(name).with_suffix('.pt') # checkpoint filename
Expand Down

0 comments on commit f9d19e1

Please sign in to comment.