Closed stefanklut closed 1 week ago
@wat3rBro has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
This pull request has been merged in facebookresearch/detectron2@70f454304e1a38378200459dd2dbca0f0f4a5ab4.
This pull request fixes a ValueError that occurs when creating an array (changed in numpy 2.0.0) The issue is resolved by replacing np.array with np.asarray. As copy was always set to False anyways. See: https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword