Skip to content

Commit

Permalink
Add torchvision dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge committed Jan 5, 2023
1 parent 113cc26 commit 9425aa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
"tokenizers>=0.11.1,!=0.11.3,<0.14",
"torch>=1.7,!=1.12.0",
"torchaudio",
"torchvision",
"pyctcdecode>=0.4.0",
"tqdm>=4.27",
"unidic>=1.0.2",
Expand Down Expand Up @@ -285,6 +286,7 @@ def run(self):
extras["flax-speech"] = extras["audio"]
extras["vision"] = deps_list("Pillow")
extras["timm"] = deps_list("timm")
extras["torchvision"] = deps_list("torchvision")
extras["natten"] = deps_list("natten")
extras["codecarbon"] = deps_list("codecarbon")
extras["video"] = deps_list("decord")
Expand Down Expand Up @@ -331,6 +333,7 @@ def run(self):
+ extras["vision"]
+ extras["integrations"]
+ extras["timm"]
+ extras["torchvision"]
+ extras["codecarbon"]
+ extras["accelerate"]
+ extras["video"]
Expand All @@ -351,6 +354,7 @@ def run(self):
+ extras["vision"]
+ extras["integrations"]
+ extras["timm"]
+ extras["torchvision"]
+ extras["codecarbon"]
+ extras["quality"]
+ extras["ja"]
Expand Down
1 change: 1 addition & 0 deletions src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"tokenizers": "tokenizers>=0.11.1,!=0.11.3,<0.14",
"torch": "torch>=1.7,!=1.12.0",
"torchaudio": "torchaudio",
"torchvision": "torchvision",
"pyctcdecode": "pyctcdecode>=0.4.0",
"tqdm": "tqdm>=4.27",
"unidic": "unidic>=1.0.2",
Expand Down

0 comments on commit 9425aa5

Please sign in to comment.