Skip to content

Commit 90b7895

Browse files
authored
check_requirements() exclude opencv-python (#3495)
Fix for 3rd party or contrib versions of installed OpenCV as in #3494.
1 parent a1c3572 commit 90b7895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hubconf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def _create(name, pretrained=True, channels=3, classes=80, autoshape=True, verbo
3030
from utils.google_utils import attempt_download
3131
from utils.torch_utils import select_device
3232

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

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

0 commit comments

Comments
 (0)