Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/instruct_pix2pix/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ torchvision
transformers>=4.25.1
datasets
ftfy
tensorboard
tensorboard
torch>=2.10.0 # not directly required, pinned by Snyk to avoid a vulnerability
wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability
Comment on lines +7 to +8
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The versions specified for torch and wheel appear to be incorrect and will likely cause the dependency installation to fail as these versions do not exist.

  • The torch version is specified as >=2.10.0, but this version does not exist. The vulnerabilities mentioned in the PR description (SNYK-PYTHON-TORCH-10332644, SNYK-PYTHON-TORCH-10332645) are fixed in version 2.1.0.
  • The wheel version is specified as >=0.46.2, but this version does not exist. The vulnerability (SNYK-PYTHON-WHEEL-15053866) is fixed in version 0.42.0.

I recommend correcting these versions to allow for a successful installation while still addressing the vulnerabilities.

torch>=2.1.0 # not directly required, pinned by Snyk to avoid a vulnerability
wheel>=0.42.0 # not directly required, pinned by Snyk to avoid a vulnerability