fix: broken onnx versions halting ByteTrack install #212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the change and which issue is fixed or implemented. Please also include relevant motivation and context (e.g. links, docs, tickets etc.).
I added a simple function to go over a requirements.txt file and remove the hardcoded version for a library and called this for the
onnx
,onnxruntime
andonnx-simplifier
libraries right after cloning the ByteTrack lib. When trying to run thehow-to-track-football-players
notebook I found that the versions provided for the onnx libs are incompatible with newer python versions used by google colab.There is also a PR open for the ByteTrack lib for fixing this on ifzhang/ByteTrack#368, but as it seems to have lots of stale PRs and issues, I would suggest adding this fix while we wait for the lib to accept the fix.
List any dependencies that are required for this change.
No dependencies
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
I ran this code on my google colab, which was failing the bytetrack install and throwing an error when I tried to import anything from there. In my case it fixed that.
If you wish to test this fix too, you can copy this notebook to google colab and attempt to run the ByteTrack install sections and import both before and after the fixes.
Any specific deployment considerations
For example, documentation changes, usability, usage/costs, secrets, etc.
No.
Docs