Skip to content

Commit

Permalink
check_requirements() exclude opencv-python (#3495)
Browse files Browse the repository at this point in the history
Fix for 3rd party or contrib versions of installed OpenCV as in ultralytics/yolov5#3494.
  • Loading branch information
MichaelAnderson-AI committed Jun 7, 2021
1 parent 287acf4 commit 81c5a65
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 81c5a65

Please sign in to comment.