notebooks
notebooks copied to clipboard
Fix: Pin NumPy to 1.24.3 for YOLOv8 compatibility
Description
Pinned NumPy to version 1.24.3 to fix a compatibility issue with YOLOv8 in Google Colab. Colab’s default NumPy version (1.26.4) causes a ValueError: numpy.dtype size changed when importing YOLOv8 models built against NumPy 1.24.x.
Dependency: numpy==1.24.3
List any dependencies that are required for this change.
Type of change
- Bug fix (non-breaking change which fixes an issue)
How has this change been tested, please provide a testcase or example of how you tested the change?
Tested in a fresh Google Colab environment by adding the fix to the top of the notebook and running all cells. YOLOv8 loaded and ran successfully with no dtype errors.
Any specific deployment considerations
None
Docs
None
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB