- 博客(16)
- 问答 (1)
- 收藏
- 关注
原创 RuntimeError: Error(s) in loading state_dict for Dual_net: Missing key(s) in state_dict:
问题:模型是对的,但是还是报错。
2024-12-20 09:53:13
223
原创 RuntimeError: one of the variables needed for gradient computation has been modified by an inplace o
报错:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [2, 3, 288, 299]] is at version 12;解决:怀疑是模型有原地操作,在模型前后加输出梯度和版本。输出确定是模型有错,将模型喂GPT可能有哪些原地操作。
2024-12-19 20:03:12
567
原创 服务器matplotlib无法显示中文且无sudo命令清除缓存
找到服务器中.cache/matplotlib/fontlist-vXXX.json,将其删除,清除缓存。下完发现没有sudo命令清除字体缓存。再次运行代码,自动生成新的字体列表。下载simhei字体,参考。
2024-11-03 20:59:14
214
原创 PyCharm同时连接服务器的不同项目,解释器添加后为空,且代码一堆红线
网上找了很多方法,包括但不限于重新添加解释器、清除PyCharm缓存、增加PyCharm运行内存等都无济于事。想要实现PyCharm同时连接服务器的不同项目。,在解释器那添加相同的python但映射不同。添加完后该解释器的软件包为空且代码一堆红线。以为是软件包没有从服务器那添加。后来发现即使爆红线但可以运行。
2024-11-02 22:43:48
134
1
原创 matplotlib图形输出为SVG,文本为文本,而不是曲线
将matplotlib图形输出为SVG,文本为文本,而不是曲线-腾讯云开发者社区-腾讯云 (tencent.com)
2024-07-29 22:41:10
452
原创 plt显示不了中文
Mac上的中文乱码问题_findfont: generic family 'sans-serif' not found be-优快云博客
2024-07-19 22:22:04
183
原创 一些pytorch图像模型
Mayurji/Image-Classification-PyTorch: Learning and Building Convolutional Neural Networks using PyTorch (github.com)
2024-07-07 22:29:29
222
原创 存 本地git到github
本地文件上传github - 知乎 (zhihu.com)error: src refspec master does not match any error: failed to push some refs to……-优快云博客
2024-07-06 17:20:20
158
1
原创 logging.info突然不记录在文件里只在控制台显示
pip install --upgrade numpy 升到最新版解决。发现是我改了numpy版本的问题。
2023-12-04 10:05:06
606
原创 Pycharm远程执行cv2.imshow()无图像无反应
Pycharm远程执行无法显示cv2.imshow()无法显示原因分析 - 简书 (jianshu.com)
2023-12-02 16:34:10
1050
1
原创 问题RuntimeError: GET was unable to find an engine to execute this computation
改代码 device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')为 device = torch.device('cuda:2' if torch.cuda.is_available() else 'cpu')解决。命令nvidia-smi查看服务器。发现cuda0内存被占满了。
2023-11-29 15:59:01
2036
3
原创 小白记录深度学习之旅1——配服务器
xshell连接建立:注意服务器用校外地址,且用校园网或VPN。出现问题:source ~/.bashrc一直无反应——解决。xftp同样建立连接。
2023-10-10 16:00:20
68
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人