From b72efd2306e5b8cac4e1d1a78dcf384a8ba230ff Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 11 May 2023 18:50:06 +0200 Subject: [PATCH] Fix `check_requirements()` txt not found bug (#11518) Fix check_requirements() txt not found bug @AyushExel @kalenmike fixes "requirements.txt" not found warning. Signed-off-by: Glenn Jocher --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 3d7fd20..42c6d8c 100644 --- a/utils/general.py +++ b/utils/general.py @@ -388,7 +388,7 @@ def check_version(current='0.0.0', minimum='0.0.0', name='version ', pinned=Fals @TryExcept() -def check_requirements(requirements=ROOT.parent / 'requirements.txt', exclude=(), install=True, cmds=''): +def check_requirements(requirements=ROOT / 'requirements.txt', exclude=(), install=True, cmds=''): """ Check if installed dependencies meet YOLOv5 requirements and attempt to auto-update if needed.