mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2025-12-16 00:17:46 +01:00
This commit resolves compatibility issues in scikit-video caused by NumPy's deprecated type aliases (`np.float`, `np.int`, `np.bool`). ### Issue: - Recent versions of NumPy (>=1.20) removed these deprecated aliases, causing scikit-video to raise warnings and fail in certain cases. - Downgrading NumPy to an older version (e.g., 1.16.0) is not a viable workaround as it fails to build properly in Colab due to pip installation issues. ### Changes: - Updated all instances of `np.float`, `np.int`, `np.bool` to their respective built-in types (`float`, `int`, `bool`). - Ensured compatibility with both older and newer NumPy versions. - Verified functionality in Google Colab and Python 3.10 environments. ### Impact: ✅ Eliminates NumPy deprecation warnings. ✅ Prevents compatibility issues in Google Colab and newer Python versions. ✅ Ensures stability and smooth functioning of scikit-video with NumPy (>=1.20). Fixes: #Issue_Number (Replace with actual issue reference)
3.2 KiB
3.2 KiB