debug
兢兢业业小码农
深度学习+python+有意思的小东西
分享爬坑经验
展开
-
Debug:Error loading notebook An unknown error occurred while loading this notebook.
Error loading notebookAn unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.这个错误的弥补方法是修改~/.local/share/jupyter原创 2017-11-20 17:02:53 · 2577 阅读 · 0 评论 -
SMPL模型改用python3+numpy计算
SMPL自带的代码是用python2+chumpy,不太方便,还难理解,在github上发现了同样想改用python3+numpy计算的同道中人:https://github.com/CalciferZh/SMPL但要调不多不少的bug,分享给大家。首先就是chumpy库只支持python2,从安装到运行都要改成python3的,不然就会各种报错,我就是就着报错一路改过来的: ...原创 2018-07-31 19:36:48 · 15184 阅读 · 27 评论 -
Segmentation fault (core dumped)
Segmentation fault (core dumped)这个bug调的我有点懵。因为是pytorch训练时,跑着跑着突然停了,然后用的ecllipse也没有任何报错信息,就开始查网页,说是Dataloader、Dataparallel的事,就把他们都换了,结果还是出问题。就用gdb找:gdb python3r train.py这时出现了这个报错:Segmentation fault (co...原创 2018-06-14 19:22:15 · 12229 阅读 · 0 评论 -
opencv3与opencv2代码区别总结
总是在caffe编译时遇到opencv的版本问题,继续总结记录一波。基本上都是opencv3与opencv2版本差距问题。本人常常遇到的是:cvtColor函数中颜色转换系的宏,全替换为”COLOR_”前缀,如CV_BGR2HSV改为COLOR_BGR2HSV在caffe有时还要在前加cv::,不然还是找不到。caffe2 报错:caffe2/image/image_input_op.h:521:...原创 2018-06-22 12:39:40 · 9457 阅读 · 1 评论 -
Debug:intel realsense sdk2.0 Ubuntu18.04 modprobe: could not insert 'videodev': Exec format error
在Ubuntu18.04上安装intel realsense sdk2.0,运行系统补丁文件./scripts/patch-realsense-ubuntu-lts.sh,会有如下报错modprobe: could not insert 'videodev': Exec format error 多谢大佬们的讨论:https://github.com/IntelRealSense/libreals...转载 2018-06-04 10:12:19 · 3152 阅读 · 0 评论 -
python3 cv2.VideoCapture 无法获取usb摄像头图像
之前做的一些利用摄像头的工作,结果python3下怎么弄都cv2.VideoCapture 无法获取usb摄像头图像,但在python2下能用。解决方案:1.从opencv的github上git clone最新的源码,自行编译安装:打开cmake,选好路径,configure , generate ,然后就sudo make install 要编译一阵。。2.编译好的文件:sudo cp <...原创 2018-05-22 19:57:38 · 6905 阅读 · 0 评论 -
lightGBM、caffe等 编译报错:expected '{' before _GLIBCXX_VISIBILITY 系g++版本问题
之前为了编译cuda,需要用低版本的g++,就安装了g++-5,并且通过如下命令提高了它的优先级,使它成为默认的g++:sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5所以cmake就默认用g++5了,但好像最新的软件都不支持老版...原创 2018-05-10 10:12:09 · 1212 阅读 · 0 评论 -
Debug: mayavi Cannot contour: No scalars in input data!
报错:AttributeError: 'ImageChangeInformation' object has no attribute 'set_update_extent'Cannot contour: No scalars in input data!traits.trait_errors.TraitError: The 'vector_component' trait of a SmartV...原创 2018-05-02 19:38:35 · 813 阅读 · 0 评论 -
ubuntu更新错误:dists/artful/main/binary-arm64/Packages 404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/artful/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.162 80]困扰了很久的ubuntu更新错误,后来终于找到了答案:https://askubuntu.com/questions/705895/how-to-...原创 2018-04-07 20:12:40 · 6451 阅读 · 5 评论 -
Debug:pytorch module 'torch' has no attribute 'form_numpy'
在torch的主页上有这样一句话,经过仔细分析才明白其中的意思:Pylint isn't picking up that torch has the member function from_numpy. It's because torch.from_numpy is actually torch._C.from_numpy as far as Pylint is concern转载 2018-01-15 11:51:08 · 3810 阅读 · 2 评论 -
Debug:cuda error gcc 版本过高不支持
error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!错误的解决方式很简单,就是安装低版本gcc和g++,并创建链接或更改gcc各版本的优先级。 此处为以后考虑安装了gcc-6和g++-6,大家可以自行决定版本,只要比错误中提到的支持上限小就没问题sudo apt-...原创 2017-12-03 18:55:05 · 12751 阅读 · 1 评论 -
Pytorch图像分割BUG心得汇总(一)
用了一段时间PYTORCH,感觉这个开始用着很得劲的,所以把BUG梳理一下,再接再厉,祝大家写的一手好BUG,并能调的通。- —— -图像分割任务相对特殊的就是他的标签,是类别图,这也是pytorch有意思的一点。pytorch的NLLLoss2d用来做n类图像分割,接受的每个数据的标签是 W x H 的标签图,每个像素上是该元素的类别号从0开始,到C-1,官方文档是这么描述的:#原创 2017-12-09 00:49:39 · 19427 阅读 · 2 评论 -
ubuntu更新Debug:E: Some index files failed to download, they have been ignored, or old ones used inst
ubuntu更新Debug:E: Some index files failed to download, they have been ignored, or old ones used inst这个错误是由于你的软件源有没法链接到的或者已经停止服务的,所以去掉这个错误就是删除这个软件源即可。1.打开系统设置:选择软件更新(software update)。2.删除不想要原创 2017-11-29 21:22:03 · 3135 阅读 · 0 评论 -
HumanevaI dataset part15下载链接失效解决方法
HumanevaI dataset官网的Linux版下载链接part15下载链接失效,最蛋疼的是缺一个就没办法解压: 经过博主思索后发现,是它的链接地址存错了,所以只要把下面的报错网址http://humaneva.is.tue.mpg.de/main/download?file=HumanEvaI_Data_CD25.tar改成http://humaneva.is.t...原创 2018-08-11 16:25:55 · 1368 阅读 · 4 评论