1、AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
解决方法:将utils文件夹下面的datasets.py文件中的np.int 改为 int 。
2、OSError: [WinError 1455] 页面文件太小,无法完成操作。
解决方法:将train.py文件下“batch-size”的值调小,或者将“workers”的值设置为0。
3、TypeError: No loop matching the specified signature and casting was found for ufunc greater
问题的原因:依赖包版本不兼容。
解决方法:按照requirements.txt文件中依赖包的版本重新安装依赖包。
pip uninstall 依赖包的名称
pip install 依赖包的名称==指定的版本号