-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: torchvision version to avoid compatibility issue #866
Conversation
Codecov Report
@@ Coverage Diff @@
## main #866 +/- ##
==========================================
- Coverage 80.28% 78.26% -2.03%
==========================================
Files 22 22
Lines 1633 1633
==========================================
- Hits 1311 1278 -33
- Misses 322 355 +33
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
server/setup.py
Outdated
@@ -45,7 +45,7 @@ | |||
'ftfy', | |||
'torch', | |||
'regex', | |||
'torchvision', | |||
'torchvision<=0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', |
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.
what about
'torchvision<=0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', | |
'torchvision==0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', |
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.
'torchvision<=0.13.0' if sys.version_info <= (3, 7, 2) else 'torchvision',
server/setup.py
Outdated
@@ -45,7 +45,7 @@ | |||
'ftfy', | |||
'torch', | |||
'regex', | |||
'torchvision', | |||
'torchvision<=0.13.0' if sys.version_info == (3, 7, 0) else 'torchvision', |
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.
'torchvision<=0.13.0' if sys.version_info <= (3, 7, 2) else 'torchvision',
@@ -45,7 +45,7 @@ | |||
'ftfy', | |||
'torch', | |||
'regex', | |||
'torchvision', | |||
'torchvision<=0.13.0' if sys.version_info <= (3, 7, 2) else 'torchvision', |
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.
'torchvision<=0.13.0' if sys.version_info <= (3, 7, 2) else 'torchvision', | |
'torchvision<=0.13.0' if sys.version_info[:2] <= (3, 7) else 'torchvision', |
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.
what's the difference between these two?
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.
python 3.7.x: x ∈ [0, 15]
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.
This pr resolves the issue. We fix the
torchvision
version to avoid this.