-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
addict | ||
diffusers | ||
gradio | ||
huggingface_hub | ||
matplotlib | ||
numpy | ||
onnxruntime | ||
opencv_python | ||
Pillow | ||
pycocotools | ||
PyYAML | ||
requests | ||
setuptools | ||
supervision | ||
termcolor | ||
timm | ||
torch | ||
torchvision | ||
transformers | ||
yapf |
e28455d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Andy1621
In my humble oppions, adding specific version is more suitable, because torch/torchvison 's default version is CPU, but when you use CPU you will face some issues in this app
I suggest to use:
torch==2.0.0+cu117
torchvision==0.15.1+cu117
Or adding some 说明 in README.md
e28455d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I do not add specific versions since either
pytorch>=1.7
andtorchvision>=0.8
is ok. Just make sure to add cuda version when install torch-related packages.