Skip to content

Commit

Permalink
[Snyk] Security upgrade urllib3 from 2.0.7 to 2.2.2 (#13104)
Browse files Browse the repository at this point in the history
* 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 <glenn.jocher@ultralytics.com>

* Auto-format by https://ultralytics.com/actions

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
  • Loading branch information
3 people committed Jun 19, 2024
1 parent bb27bf7 commit cf8933c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions classify/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf8933c

Please sign in to comment.