Skip to content

Commit a01b0b0

Browse files
authored
check_requirements() exclude pycocotools, thop (ultralytics#2571)
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
1 parent 71eb4dd commit a01b0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def detect(save_img=False):
164164
parser.add_argument('--exist-ok', action='store_true', help='existing project/name ok, do not increment')
165165
opt = parser.parse_args()
166166
print(opt)
167-
check_requirements()
167+
check_requirements(exclude=('pycocotools', 'thop'))
168168

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

0 commit comments

Comments
 (0)