
debug
PinkAir
这个作者很懒,什么都没留下…
展开
-
sbatch error: batch script contains dos line breaks
sbatch error: batch script contains dos line breaks转载 2022-07-28 01:23:00 · 1158 阅读 · 0 评论 -
docker: The connection to the server was reset while the page was loading.
After changingthe command from docker run -p 3000:3000app to docker run -p 8080:8080 app, I can finally open this webpage on my local computer.The possible reason is "The 'listening on 8080' is a message coming from the container. It is listening on ..原创 2022-02-01 05:04:55 · 2067 阅读 · 0 评论 -
Postgresql:could not connect to server: Connection refused Is the server running on host “lo
On windows, Just go to the 'Services'. Start/Restart the postgresql-X64 service. It worked for me as my service was in a stopped state somehow.转载 2021-10-28 04:59:32 · 1636 阅读 · 0 评论 -
Taberror inconsistent use of tabs and spaces in indentation
pip install autopep8then, autopep8 -i my_file.py原创 2021-10-06 11:32:36 · 190 阅读 · 0 评论 -
scipy.misc module has no attribute imread
imread is deprecated in scipy.misc; use imageio.imread instead.imageio provides the same functionality as Scipy. But keep in mind that some arguments need to be changed (for detailed information please checkhere):Instead ofmode, use thepilmodekeywo...原创 2021-10-05 02:51:32 · 202 阅读 · 0 评论 -
tensorflow==2.0, module ‘tensorflow._api.v2.train‘ has no attribute ‘NewCheckpointReader‘
Use tf.compat.v1.train.NewCheckpointReader and it works.原创 2021-10-04 23:43:44 · 661 阅读 · 0 评论 -
userwarning : h5py is running against HDF5 1.10.5 when it was built against 1.10.4, this may cause
C:\Users\marietto2020\Desktop\MMD\OpenMMD\OpenMMD 1.0\3d-pose-baseline-vmd(tensorflow) λ openposeto3d´╗┐es (40 sloc) 1.62 KB"´╗┐es" is not recognized as an internal or external command or as a batch file.Please input the path of result from OpenPose .转载 2021-10-04 23:35:33 · 2084 阅读 · 0 评论 -
keras-vis InvalidArgumentError: input_1_2:0 is both fed and fetched.
pip install git+https://github.com/raghakot/keras-vis.gitInvalidArgumentError: input_1_2:0 is both fed and fetched. · Issue #127 · raghakot/keras-vis · GitHub转载 2021-10-02 11:56:35 · 686 阅读 · 0 评论 -
Error: cannot import name ‘imresize‘ error while this function importing from scipy.misc
install scipy 1.1.0 by :pip install scipy==1.1.0原创 2021-10-02 11:25:28 · 212 阅读 · 0 评论 -
terminate called after throwing an instance of ‘std::bad_alloc
The error implies that your running out memory.原创 2021-09-22 11:39:28 · 621 阅读 · 0 评论 -
TypeError: __init__() got an unexpected keyword argument ‘name‘
When I wrote a custom class of Keras, I met this error.Solution:change from the snippetbelow class custconv2d(keras.layers.Layer): def __init__(self): super(custconv2d, self).__init__() self.k = self.add_weight(shape=(1, ), in...原创 2021-09-17 10:10:53 · 2401 阅读 · 0 评论 -
attributeerror: ‘str‘ object has no attribute ‘decode‘ keras mode.load_weights
Solution: downgrading theh5pypackage (in my case to 2.10.0), apparently putting back only Keras (2.3.1) and Tensorflow (1.15) to the correct versions was not enough.原创 2021-09-09 10:29:44 · 213 阅读 · 0 评论 -
‘numpy.ndarray‘ object has no attribute ‘convert‘
First convert it to image object byImage.fromarraythen useconvert原创 2021-05-31 18:31:42 · 9301 阅读 · 1 评论 -
Cannot open C:\.xxxx\Anaconda3\envs\gan\Scripts\tensorboard-script.py
My tesorflow is1.15, tensorboard is 2.0. This may be caused by version incompatible.solution: unistalltensorboard 2.0, and installtensorboard 1.15then runtensorboard --logdir you/log/dir/path原创 2021-04-10 19:27:20 · 369 阅读 · 0 评论 -
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xf2 in position 4: ordinal not in range(128)
I am trying to use the WESAD dataset, however, the programthrows an error when I read the .pkl data.p='WESAD/S9/S9.pkl'with open(p, 'rb') as f: s9_data = pickle.load(f)Solution:p='WESAD/S9/S9.pkl'with open(p, 'rb') as f: s9_data = pickle.原创 2021-02-28 16:32:13 · 260 阅读 · 0 评论 -
valueerror: cannot set tensor: got tensor of type notype but expected type float32 for input 1, name
Error:valueerror: cannot set tensor: got tensor of type notype but expected type float32 for input 1, name: input_2Solution:When using cv2.imread(/your/image/path) to read an image, the data type is Uint8, you need to change it to float32.under_exp.原创 2020-12-26 11:54:58 · 2358 阅读 · 1 评论 -
What does if __name__ == “__main__”: do?
转:https://stackoverflow.com/questions/419163/what-does-if-name-main-do这个回答写的简单易懂,转出来分享一下~~(^_._^)~~Whenever the Python interpreter reads a source file, it does two things: it sets a few special variables like__name__, and then it executes all .转载 2020-10-24 09:19:06 · 209 阅读 · 0 评论 -
an exception occured while executing a transact-sql statement or batch
本来想从外部导入.mdf文件,结果出现这个报错。我的原因是因为没有正确连接服务器,可以写一个“新建查询”,里面写脚本代码,然后运行一下看看是否正常运行。一定要试一下,我本来以为自己连接正常,结果试了一下报错无法启动T-SQL调试。未能连接到计算机"."。...原创 2020-05-05 08:40:57 · 2438 阅读 · 0 评论 -
无法启动T-SQL调试。未能连接到计算机"."。
我连接本机数据库时,计算机名称根据网上的教程写的是“(local)”,结果报错。解决方法:关闭退出SSMS, 用计算机名称登录SSMS,一定要退出之后再重新用计算机名称登录,不然没用。...原创 2020-05-05 08:37:37 · 1403 阅读 · 0 评论 -
mysql登录 ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
只需要打开computer management,然后找到mysql,点击运行就好原创 2020-05-03 09:23:17 · 207 阅读 · 0 评论 -
cmd下出现java.lang.UnsupportedClassVersionError 错误的原因
今天在通过cmd运行java文件,结果出现这个错误,网上很多答案是jdk跟jre版本不匹配。但是换过jdk,两者的版本号匹配之后还是报这个错,原因是我之前在版本号不匹配的时候运行过,生成的.class文件是用原来的配置生成的,所以会有冲突。正确方法是删除生成的.class文件,重新运行。...原创 2020-04-30 08:24:27 · 503 阅读 · 1 评论 -
QTP测试web:打开ie浏览器进行录制,点击网页没有反应,qtp中没有脚本生成的解决办法
首先打开的时候:只需加载web,不要附加别的第一步:关闭ie的保护模式:设置——internet选项——安全——取消勾选“启用保护模式” 可以试试再次录制qtp是否有响应了,如果可以就不用看下面了(我是这个原因)第二步:关闭防火墙:控制面板里第三步:启用BHOManger Class插件:设置——管理加载项——工具栏和扩展——找到"BHOManger Class"并启用第四步:关闭...转载 2020-04-18 09:37:10 · 1365 阅读 · 0 评论 -
-unknown filesystem type vboxsf virtualbox 共享文件设置 ubuntu+windows
分享一个写的很好的解决方法https://segmentfault.com/a/1190000004362463转载 2020-03-17 09:18:58 · 878 阅读 · 0 评论 -
fcitx Ctrl+space 无法切换中文
安装fcitx后不能切换到中文输入法,在.bashrc或者.profile中添加以下代码:#fcitxexportGTK_IM_MODULE=fcitxexportQT_IM_MODULE=fcitxexportXMODIFIERS="@im=fcitx"...原创 2020-03-17 07:06:36 · 1581 阅读 · 0 评论 -
Virtualbox安装Debian 安装VBoxGuestAdditions增强工具
1.按照以下两个网站安装Debianhttps://www.myxzy.com/post-470.htmlhttps://www.linuxidc.com/Linux/2017-11/148909p2.htm2.按照一下网站修改用户权限https://blog.youkuaiyun.com/AttaGain/article/details/119872973.修改 gedit/etc/a...原创 2020-03-16 20:04:08 · 1201 阅读 · 0 评论 -
pycharm Ubuntu 设置快捷键 shortcut copy
在tools点击 vim Emulator,然后 对钩去掉就行。原创 2019-06-12 02:15:45 · 341 阅读 · 0 评论 -
pycharm中同时注释多行代码快捷键
快捷键:代码选中的条件下,同时按住 Ctrl+/,被选中行被注释;再次按下Ctrl+/,注释被取消原创 2019-05-09 04:18:25 · 10368 阅读 · 0 评论 -
tensorboard attempted to bind to port 6006,but it was already in use
指定一个新的端口给它tensorboard --logdir=logs --port=8800then点击这个link原创 2019-05-09 01:54:36 · 232 阅读 · 0 评论 -
vs2017 中文乱码
VS菜单项的工具-->自定义,打开“自定义”对话框,然后选中“命令”选项卡,点击“添加命令”按钮然后在[文件]种找到[高级保存选项],点确定,可以发现VS菜单栏多了高级保存选项一栏,点击该菜单项。把编码改成简体中文(GB2312),然后重新编译运行,显示就正确了。 ...原创 2018-12-22 08:06:44 · 3928 阅读 · 0 评论 -
解决org.apache.jasper.JasperException: The following has evaluated to null or missing异常
做struts2的标签打开注册界面时出现的bug,经过百度发现是标签内容写错了,大家要仔细检查,不要像我一样犯低级错误正确格式: <s:radio name="loginUser.sex" list="#{1:'男',0:'女'}" label="请输入性别"/> ...原创 2018-11-10 10:32:19 · 1526 阅读 · 0 评论 -
myeclipse+sql server hibernate.customer 无效
这是配置文件出错的问题,2005以上的sql sever要加上dbo 如下原创 2018-11-10 09:39:02 · 178 阅读 · 0 评论 -
严重: Exception starting filter struts2解决方法!
网上有很多方法 如下:方法一:首先:看看有没有导入Struts2相应的jar包,是否齐全。最少要导入五个基本包:commons-logging-api-1.1.jarfreemarker-2.3.8.jarognl-2.6.11.jarstruts2-core-2.0.12.jarxwork-2.0.6.jar方法二:如果该包含的jar包都引入了,再看,配置文件web.xml是...原创 2018-11-10 09:33:36 · 3659 阅读 · 1 评论 -
MFC 为按钮加载位图 CBitmapButton
点击转移看的这篇文章,但是方法太多太杂,用的其中下面这个方法有效1、在资源编辑的时候选中按钮的 Owner draw 属性,不需要选择 Bitmap 属性. 按钮右键-->Styles-->Owner draw 2、在程序中定义一个CBitmapButton成员变量。 注意:不能使用ClassWizard为按钮映射一个CButton变量,然后改为CBitmap...转载 2018-06-13 19:08:59 · 1318 阅读 · 0 评论 -
哪里能下载到bmp格式的图片
如果你电脑里已经有图片了,那你就右击你的图片--打开方式--画图,打开图片后再点文件--另存为,把保存类型改为bmp格式就可以了,如果。要网上下的话很多写着是bmp,下载下来还是JPG什么的,气!学到了学到了...原创 2018-06-13 07:21:12 · 54515 阅读 · 5 评论 -
VC++6.0 无法打开、无法添加工程文件完美解决
1.下载FileTool.压缩包后,解压得到FileTool.exe,双击FileTool.exe文件再次解压,指定解压路径E:\filetool\,解压后到目录E:\filetool\下有个文件:FileTool.dsw文件。点击打开链接 <--此处下载2.打开VC++6.0,点击【文件】,【打开工作空间】,选择刚解压出来的目录E:\filetool\下的FileTool.dsw,并确定...原创 2018-06-09 09:06:17 · 16480 阅读 · 3 评论 -
Win10系统专业版激活失败提示错误代码0x80070005解决方案
1、打开此电脑,以此定位到C:\Windows\System32下找到cmd; 2、在cmd上单击右键,选择“以管理员身份运行”; 3、打开CMD窗口后,在窗口中输入命令按回车执行,就可以执行任意slmgr命令,即可正常执行!...原创 2018-06-09 08:54:43 · 7240 阅读 · 0 评论 -
(应用程序无法正常启动0xc0000142) 关于win10周年版更新后无法正常使用vc6.0问题的解决方法
点击打开链接 最近win10周年版更新后很多人问我关于vc6.0不能正常使用怎样解决的问题,经过我的亲自测试发现了解决这种问题的最好方法(不过说句实在话vc6.0实在太老的,完全可以选择dev c++ codeblock 这样轻便又好用的编译器。)闲话不多说开始具体的步骤。第一步: 找到vc6.0图标 右击——》选择“属性”——》再选择 “打开文件所在的位置”如下图第二步:打开文件夹后,在文件夹...转载 2018-06-08 09:24:21 · 4440 阅读 · 0 评论 -
AttributeError: type object ‘TFLiteConverterV2‘ has no attribute ‘from_keras_model_file‘
Solution:After loading a keras model instance, you can use "tf.lite.TFLiteConverter.from_keras_model"to replace "from_keras_model_file".from tensorflow import kerasmodel = keras.models.load_model('path/to/location')converter = tf.lite.TFLiteConver.原创 2020-12-25 15:54:04 · 2141 阅读 · 0 评论 -
anaconda UnavailableInvalidChannel: The channel is not accessible or is invalid.
Solution: Restore the default source using the following command.conda config --remove-key channels原创 2020-12-25 15:33:00 · 532 阅读 · 0 评论 -
Python 3.6 urllib has no attribute request
Reference:https://stackoverflow.com/questions/37042152/python-3-5-1-urllib-has-no-attribute-requestYou have to use the following:import urllib.requestThe reason is:With packages, like this, you sometimes need to explicitly import the piece you w原创 2020-12-02 21:30:34 · 166 阅读 · 0 评论