Skip to content

Commit

Permalink
check_requirements() exclude pycocotools, thop (ultralytics#2571)
Browse files Browse the repository at this point in the history
Exclude non-critical packages from dependency checks in detect.py. pycocotools and thop in particular are not required for inference.

Issue first raised in ultralytics#1944 and also raised in ultralytics#2556
  • Loading branch information
glenn-jocher authored Mar 23, 2021
1 parent 71eb4dd commit a01b0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def detect(save_img=False):
parser.add_argument('--exist-ok', action='store_true', help='existing project/name ok, do not increment')
opt = parser.parse_args()
print(opt)
check_requirements()
check_requirements(exclude=('pycocotools', 'thop'))

with torch.no_grad():
if opt.update: # update all models (to fix SourceChangeWarning)
Expand Down

0 comments on commit a01b0b0

Please sign in to comment.