From cf8933cacab6c74aa083526c1a27bdbff8e1ba33 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 19 Jun 2024 02:26:10 +0200 Subject: [PATCH] [Snyk] Security upgrade urllib3 from 2.0.7 to 2.2.2 (#13104) * fix: requirements.txt to reduce vulnerabilities The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-7267250 * Update requirements.txt Signed-off-by: Glenn Jocher * Auto-format by https://ultralytics.com/actions --------- Signed-off-by: Glenn Jocher Co-authored-by: snyk-bot Co-authored-by: UltralyticsAssistant --- classify/train.py | 1 + requirements.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/classify/train.py b/classify/train.py index 6f9eda40be62..5ae6980716a4 100644 --- a/classify/train.py +++ b/classify/train.py @@ -177,6 +177,7 @@ def train(opt, device): # Scheduler lrf = 0.01 # final lr (fraction of lr0) + # lf = lambda x: ((1 + math.cos(x * math.pi / epochs)) / 2) * (1 - lrf) + lrf # cosine def lf(x): return (1 - x / epochs) * (1 - lrf) + lrf # linear diff --git a/requirements.txt b/requirements.txt index e496ad8206b6..3b2674596258 100644 --- a/requirements.txt +++ b/requirements.txt @@ -47,4 +47,3 @@ setuptools>=65.5.1 # Snyk vulnerability fix # mss # screenshots # albumentations>=1.0.3 # pycocotools>=2.0.6 # COCO mAP -wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability