
others
ngy321
这个作者很懒,什么都没留下…
展开
-
VS Code报错Module 'xx' has no 'xx' member pylint(no-member)
最近发现vscode比较好用,像是介于ide和编辑器之间的一个工具,可以运行调试,支持多种语言,比较忙轻量化,不过在写python的时候发现红色提示problems,pylint(no-member)pylint是vscode的python语法检查器,pylint是静态检查,在用第三方库的时候有些成员只有在运行代码的时候才会被建立,它就找不到成员,在设置(settings.json)里添加...原创 2019-04-02 15:00:02 · 17935 阅读 · 12 评论 -
sklearn svm
https://www.cnblogs.com/huanping/p/9330849.html转载 2019-06-20 12:02:16 · 224 阅读 · 0 评论 -
linux教程
http://c.biancheng.net/view/950.html转载 2019-06-20 12:00:45 · 436 阅读 · 0 评论 -
vim多行注释和多行删除
https://www.cnblogs.com/chinalorin/p/5830375.html转载 2019-06-20 11:59:17 · 153 阅读 · 0 评论 -
RuntimeError: Invalid DISPLAY variable
在服务器上用matplotlib绘制,由于没有gui,报错:Traceback (most recent call last): File "test/refinedet_demo.py", line 120, in <module> ShowResults(image, image_file, result, labelmap, 0.6, save_fig=ar...原创 2019-05-09 17:38:09 · 1694 阅读 · 0 评论 -
Mac 终端颜色设置
mac默认的终端是所有文本黑字白底,分辨目录和文件很累,修改.bash_profile,使终端彩色显示open -e ~/.bash_profile打开.bash_profile后添加:export CLICOLOR=1export LSCOLORS='ExfxcxdxbxegedabagEhEh'export PS1='\[\033[01;32m\]\u@\h:\[\033[...原创 2019-05-08 13:59:03 · 842 阅读 · 0 评论 -
error::make_unique is not a member of ‘std’
将std::make_unique<T>(...)替换为std::unique_ptr<T>(new T(...))原创 2019-04-24 15:52:28 · 13805 阅读 · 1 评论 -
markdown语法
https://www.jianshu.com/p/191d1e21f7ed转载 2019-04-26 15:39:01 · 161 阅读 · 0 评论 -
PyTorch使用cpu加载模型运算
没gpu没cuda支持的时候加载模型到cpu上计算将model = torch.load(path, map_location=lambda storage, loc: storage.cuda(device))改为model = torch.load(path, map_location='cpu')然后删掉所有变量后面的.cuda()方法...原创 2019-03-29 12:05:49 · 11398 阅读 · 2 评论 -
ffmpeg 图片>视频 / 视频>图片
安装ffmpeg视频转为图片ffmpeg -i test.mp4 -r 1 -ss 00:00:20 -t 00:00:05 %03d.jpg-i:输入-r:每隔1秒抽取一帧-ss:从20秒起抽图-t:抽图持续5秒%3d:命名为3位数字的形式,序号不足3位的前面补0,例如001,002,···,100,101,···图片合成视频ffmpeg -i ~/out...原创 2019-03-29 12:04:08 · 1034 阅读 · 0 评论 -
beyond compare Mac破解
https://www.jianshu.com/p/009e10209fba转载 2019-07-11 17:14:41 · 304 阅读 · 0 评论