notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

Fix: Pin NumPy to 1.24.3 for YOLOv8 compatibility

Open mralamdari opened this issue 7 months ago • 2 comments

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

mralamdari avatar Jun 05 '25 17:06 mralamdari

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 08 '25 00:06 CLAassistant