
【3-0】AI应用问题集
总结AI应用中的所有问题
阿颖&阿伟
这个作者很懒,什么都没留下…
展开
-
pytorch 报错:RuntimeError: Invalid device string: ‘0‘
具体原因:windows下不支持函数 torch.cuda.set_device(args.gpu),在linux下支持。因此需要替换这行代码(怎么改不会)。如下:# torch.cuda.set_device(args.gpu)# model = model.cuda(args.gpu)cuda = torch.cuda.is_available()if cuda: model.cuda()...原创 2021-06-17 00:57:22 · 5179 阅读 · 1 评论 -
pd.read_csv报错:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc8 in position 0: invalid contin
报错代码:data = pd.read_csv('90data.csv') # 读取数据解决方案:data = pd.read_csv('90data.csv', encoding= 'ISO-8859-1') # 读取数据原创 2022-03-05 21:23:41 · 734 阅读 · 0 评论 -
【pytorch】报错:RuntimeError: one of the variables needed for gradient computation has been modified···
修改网络时pytroch报错:RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1600, 16, 256]], which is output 0 of CudnnConvolutionBackward, is at version 1; expected version 0 ins原创 2022-04-13 01:51:49 · 4668 阅读 · 0 评论 -
【keras2onnx】报错:AttributeError: ‘str‘ object has no attribute ‘decode‘
将h5py软件包降级(在我的情况下降级为 2.10.0),显然仅将 Keras 和 Tensorflow 恢复到正确的版本是不够的。在利用keras2onnx工具对h5格式文件进行转换时,在。tensorflow版本: 2.1。keras版本: 2.3.1。原创 2023-02-15 20:26:08 · 817 阅读 · 0 评论 -
【labelme】 程序正常启动,但是没有窗口
以前使用扩展屏的时候,labelme的窗口移动到扩展屏。然后在单屏幕状态下看不到窗口。windows系统打开labelme程序,任务栏已经出现,但是没有窗口。然后按“Alt”+空格键,弹出窗口选择最大化。然后就可以看到窗口了。原创 2024-02-21 15:09:32 · 681 阅读 · 0 评论