
错误error
adrianna_xy
假如编程易懂得,那么程序员就不会热情地写出注释,也不会有得到编程的快乐。
展开
-
vs2013+opencv2.4 imread相对路径读取图片失败Unhandled exception
Unhandled exception报错:OpenCV Error: Assertion failed (npoints >= 0 && (depth == CV_32S || depth == CV_32F)) in cv::approxPolyDP, file C:\builds\2_4_PackSlave-win32-vc12-shared\opencv\modules\imgproc\s原创 2017-02-17 16:36:10 · 4774 阅读 · 1 评论 -
tensorflow 报错 InternalError: Blas SGEMM launch failed
报错的原因是有其他的python进程在使用GPU,可以把其他进程关掉,或者在代码中加入:if 'session' in locals() and session is not None: print('Close interactive session') session.close() Reference: https://stackoverflow.com/questi原创 2017-11-17 14:47:30 · 15661 阅读 · 0 评论 -
Tensorflow ValueError: Attempt to reuse RNNCell with a different variable scope than its first
Reference: https://stackoverflow.com/questions/42669578/tensorflow-1-0-valueerror-attempt-to-reuse-rnncell-with-a-different-variable-s原本代码:cell = tf.contrib.rnn.LSTMCell(state_size, state_is_tuple=转载 2017-10-17 19:37:36 · 636 阅读 · 0 评论 -
jupyter notebook import error但是命令提示符import正常
基本上是因为jupyter notebook的kernel所用的python和命令提示符中的python环境不一样。首先分别在cmd和jupyter notebook下查看所用python版本:import syssys.executable如果不一样的话就进行下一步,更改jupyter notebook的kernel环境: 在命令行输入:ipython kernelspec list可以看到指原创 2017-09-14 16:41:18 · 8966 阅读 · 4 评论 -
安装pytorch后报错非法指令Illegal instruction (core dumped)
环境: unbuntu 14.04 anaconda3 cuda:7.5 CPU:AMD 安装方法: 根据官网: conda install pytorch torchvision -c soumith报错import torchx=torch.Tensor(5,3)print(x)Illegal instruction (core dumped)一般来说,SIGILL 错误在b原创 2017-08-03 10:26:21 · 13294 阅读 · 1 评论 -
ubuntu conda install ERROR missing write permission错误
reference: https://askubuntu.com/questions/726184/missing-write-permissions-in-home-user-anaconda2 报错:CondaIOError: Missing write permissions in: /usr/local/anaconda3## You don't appear to have t原创 2017-08-01 15:40:29 · 8540 阅读 · 4 评论 -
Tensorflow 报错 CUBLAS_STATUS_ALLOC_FAILED
windows环境下,tf不会分配所有可用的内存,因此需要手动设置,允许动态内存分配增长。config = tf.ConfigProto()config.gpu_options.allow_growth = Truesession = tf.Session(config=config, ...)reference:https://stackoverflow.com/questions/41117转载 2017-07-13 14:57:44 · 6509 阅读 · 0 评论 -
windows下nmake一些错误的解决办法
最近编译工程用到了windows下nmake工具,遇到了很多的问题,在网上苦寻答案,终于得到解决。现在把遇到的问题及解决办法写下来,希望给大家一些帮助。1.NMAKE:fatal error U1077.“cl.exe” return code 0xc0000135产生原因:在安装visual studio的时候没有勾选注册环境变量导致的。解决办法:在系统环境变量中加入visual studio的安转载 2017-03-01 14:38:08 · 15899 阅读 · 2 评论 -
avrdude: stk500_recv(): programmer is not responding是怎么回事
如果你的IDE出现avrdude: stk500_recv(): programmer is not responding的提示的时候,注意看看你的数字0和数字1是不是插着东西。如果你将数码管接到了数字0和数字1上,每次上传代码时,都要拔下来才行。因为数据交互借用了这两个脚做事情。也就是说,如果你接线时用了串行,upload时需要先拔下0,1口的接线,上传完成后再接回去。原创 2016-03-22 22:19:54 · 58439 阅读 · 12 评论 -
fatal error: wiring.h: No such file or directory
Arduino 自 1.0.5 和 1.5.x 開始不支援 wiring.h 所以,#include “wiring.h” 要換成 #include “Arduino.h”還有, 如果有 #include “WProgram.h” 也是換成 #include “Arduino.h”转载 2016-05-02 13:17:05 · 4736 阅读 · 0 评论 -
ubuntu14.04+caffe+cuda7.5 出现unmet dependencies错误
官网上下载deb(local)安装包,并且完全按照官方文档安装,然后出现如下错误: The following packages have unmet dependencies: cuda : Depends: cuda-7-5 (= 7.5-18) but it is not going to be installed unity-control-center : Depend原创 2016-10-29 15:52:01 · 5687 阅读 · 1 评论 -
tensorflow 报错 libcusolver.so.8.0: cannot open shared object file: No such file or directory
检查LD_LIBRARY_PATHecho $LD_LIBRARY_PATH/usr/local/cuda-8.0/lib64发现libcusolver.so.8.0是在cuda-8.0/lib64目录的。执行以下命令解决问题:sudo ldconfig /usr/local/cuda-8.0/lib64 Reference: https://stackoverflow.com/qu原创 2017-11-30 13:46:04 · 9634 阅读 · 0 评论