-
Notifications
You must be signed in to change notification settings - Fork 39
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
assert float(tf.__version__[:3]) >= 2.3 triggers because actual version is > 2.10 #25
Comments
How to solve it for keep it running? |
Version numbers as floats are always a bad idea. Something like this should fix it: from packaging import version
assert version.parse(tf.__version__) >= version.parse("2.3"), "TensorFlow version is not >= 2.3" Alternatively if you prefer less dependencies: version_numbers = tuple(map(int, tf.__version__.split('.')))
assert version_numbers >= (2, 3, 0), "TensorFlow version is not >= 2.3" |
Hello, I have already managed to create a model. Now, how to run the model for live classification using web camera? I have following this tutorial https://coral.ai/docs/dev-board/camera/#view-with-a-streaming-server but the model cannot run. Thanks |
Description
In retrain_classification_ptq_tf2.ipynb, there is a check
assert float(tf.__version__[:3]) >= 2.3
that should check whether the used tensorflow version is at least 2.3 or higher. Now colab uses 2.13 as its standard. That is higher than 2.3 but the assert triggers, because it makes 2.13 seem like 2.1. And also the float number 2.13 is smaller than 2.3. But as a version number it is higher.Click to expand!
Issue Type
Bug
Operating System
No response
Coral Device
No response
Other Devices
No response
Programming Language
No response
Relevant Log Output
The text was updated successfully, but these errors were encountered: