- 博客(9)
- 收藏
- 关注
原创 webui forge报错:AssertionError: Torch is not able to use GPU;跳过GPU检测
webui forge报错:AssertionError: Torch is not able to use GPU。因为自己的torch安装在自己的conda环境里,实在不想用一个整合包又下一个torch,所以直接跳过检测。./webui/modules/launch_utils.py 中 432行。
2024-05-20 20:18:10
543
原创 在LDA分析时出现AttributeError: ... object has no attribute ‘get_feature_names‘解决方法
【代码】在LDA分析时出现AttributeError: ... object has no attribute ‘get_feature_names‘解决方法。
2023-11-08 18:22:44
492
2
原创 [解决]one of the variables needed for gradient computation has been modified by an inplace operation:
排查下来是.unsqueeze_导致的,因为想将model输出的每次结果都记录下来所以进行了升维,结果他会直接保存升维后的形状,导致后面出错。实现一样的功能, 区别在于unsqueeze_解决办法:将unsqueeze_()在使用LSTM进行学习时出现。和unsqueeze()
2023-03-30 19:26:24
282
原创 走运解决:Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False.
为了使用Visdom做可视化,所以得用cmd运行.py文件,在Pycharm中CUDA正常。但是我的CUDA是肯定能用的。百般排除无果后,在主函数第一句加上。尝试打印一下它是否可用,结果。Visdom也运行正常了。
2023-03-02 18:23:06
249
原创 stack expects each tensor to be equal size, but got [3, x, x] at entry 0 and [3, 224, 224] at
transforms 的 Resize不起作用
2022-11-19 21:50:06
628
原创 机器学习时出现 could not convert string to float:‘xxx‘解决方法
新手进行机器学习时出现 could not convert string to float:'xxx'解决方法
2022-10-09 18:37:04
23524
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人