python 内存不足报错_python相关bug

1.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 2: invalid continuation byte 处理文件中包含中文路径,删除中文字符即可。

2. ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

在命令行输入unset PYTHONPATH

3. ImportError: cannot import name '_validate_lengths'

pip install --upgrade scikit-image

4.AttributeError:module 'scipy.misc' has no attribute 'imread'

可能是scipy版本的问题,降级到1.2.1即可。pip install scipy==1.2.1

5. numpy.AxisError: axis 3 is out of bounds for array of dimension 3

可能是numpy版本的问题,降级到1.13.3即可。

6.lableme json文件批量转换,在Anaconda3\envs\labelme\Lib\site-packages\labelme\cli修改json_to_dataset.py

7. CUDA_LAUNCH_BLOCKING=1 python train.py 输出详细的错误信息

8. pytorch出现内存不足&

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值