- 博客(7)
- 收藏
- 关注
原创 pyplot 使用 latex 报错:xelatex not found……
错误提示发生异常: RuntimeErrorxelatex not found. Install it or change rcParams['pgf.texsystem'] to an available TeX implementation.原始参数:plt.rcParams.update({ "pgf.texsystem": "xelatex", "text.usetex": True,# use default xelatex})解决方法可能是未安
2022-01-28 01:21:21
2728
原创 Linux运行python报错:Could not connect to any X display.
具体错误:QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'qt.qpa.screen: QXcbConnection: Could not connect to display 192.168.2.1:0Could not connect to any X display.可能是因为使用了matplotlib的plot函数。解决方法:找到调用plot()函数的文件,添加如下代码impo
2021-01-27 00:51:28
1837
原创 运行DrQA时报错pexpect.exceptions.TIMEOUT
错误代码我忘记截图了,大概类似GitHub上的这个错误,长这样:GitHub中错误截图问题排查:1. 检查是否将CoreNLP加入CLASSPATHexport CLASSPATH=$CLASSPATH:/path/to/stanford-corenlp-4.2.0/*:2. 检查java版本。我用的java 8 ,理论上应该>=8就能用。3. 检查pexpect版本.pip install pexpect==4.2.13. 这个方法是我下琢磨出来的,不保证正确o
2021-01-21 21:56:33
447
原创 解决WSL Ubuntu20.4+xfce4 图形界面一段时间后黑屏
进入图形界面,点击右上角Applications--->Settings--->Light Locker Settings。设置Automatically lock the session为Never。
2021-01-14 16:11:06
7453
1
原创 tensorflow报错:no kernel image is available for execution on the device
报错时配置: cuda: 10.1 cudnn: 7.6 tensorflow: 2.3 NVIDIA GTX 960m system: win10 踩了很多坑,最后发现,把tensorflow滚回2.1就可以了。orzpip install tensorflow==2.1pip install tensorflow-gpu==2.1...
2020-11-07 13:37:42
973
原创 灰度图像、比特深度、图像分辨率
目录灰度图像比特深度图像分辨率灰度图像灰度图像即图像只有黑白两色的图像。灰度图像分为两种:一种为单通道灰度图像,一种为三通道灰度图像。单通道灰度图像中,每个像素点的颜色采样只用一个通道表示。单通道灰度图像的通道三通道灰度图像中,每个像素点颜色采样用三个数值表示,三个数值分别为红、绿、蓝通道(RGB)。三通道灰度图像中,每个像素点RGB三通道值均相...
2019-11-16 16:50:47
8209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人