机器学习-深度学习のBUG解决
无穷升高的卡农
本硕人工智能方向,之后从事搜推方向的工作。关注CV、RS、大模型。
展开
-
No matching distribution found for dataclasses==0.8
No matching distribution found for dataclasses==0.8原网址:传送门原因:也就是说python3.7不需要安装dataclasses了。而我的就是在3.7上安装dataclasses报了这个错。转载 2021-08-13 11:09:34 · 4166 阅读 · 0 评论 -
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
TypeError: the JSON object must be str, bytes or bytearray, not ‘TextIOWrapper’使用json.loads()时候遇到这个错误解决办法:import jsonwith open(json_dir) as json_file: json_data = json.load(json_file)网上也有说其他方法的,不过我都试了不行,上面的代码才可以解决。...原创 2021-04-06 23:11:25 · 196 阅读 · 0 评论 -
PytorchStreamReader failed reading zip archive: failed finding central directory
原因:主要还是pytorch版本问题。高版本的torch.save保存模型时,使用的新的格式,而torch.load使用的是旧格式。不知道为啥,我在同一个环境下,先save后load也会出这个错。**解决:**加一个参数...原创 2021-04-05 14:32:06 · 21598 阅读 · 6 评论 -
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.解决办法汇总最近,写了一个简单的tensorflow程序来测试新的电脑。由于新电脑是两个不同的nvidia显卡,所以,每次都需要设置一下到底使用哪个gpu,要不然老是弹出无法创建会话的错误,无法创建会话的错误似乎有好几种。解决办法:...原创 2019-08-20 20:27:18 · 1697 阅读 · 1 评论 -
TypeError:slice indices must be integers or None or have an __index__ method
Python遇到TypeError:slice indices must be integers or None or have an index method的解决办法代码如下图错误原因列表数据类型不是int解决将类型强制转换为int。问题解决。以上。...原创 2019-03-09 20:08:33 · 893 阅读 · 0 评论