摘要:
一、finetune命令: 二、快照命令: 三、待修改: 1、train.prototxt中 train的input层: train的input路径,包括图片的prefix和train.txt的绝对路径;train的batch_size test的input层: test的input路径,包括图片的 阅读全文
随笔档案-2018年08月
caffe自定义layer
2018-08-25 21:40 by ZealouSnesS, 456 阅读, 收藏, 编辑
摘要:
caffe自带layers: http://caffe.berkeleyvision.org/tutorial/layers.html Layers: Image Data - read raw images. Database - read data from LEVELDB or LMDB. H 阅读全文
【Linux command reference】
2018-08-25 21:14 by ZealouSnesS, 346 阅读, 收藏, 编辑
摘要:
ubuntu16.04安装中文输入法: https://blog.csdn.net/singleyellow/article/details/77448246 ubuntu16.04 用vi编辑代码,可以打开,但是内容都是白色: sudo apt install vim 常用工具 1. gdb 调试 阅读全文
ssh登陆gitlab
2018-08-24 10:54 by ZealouSnesS, 534 阅读, 收藏, 编辑
摘要:
官方文档:https://docs.gitlab.com/ee/ssh/ Generating a new SSH key pair To generate a new SSH key pair, use the following command:Git Bash on Windows / GNU 阅读全文
c++ 命名参数
2018-08-24 10:45 by ZealouSnesS, 1399 阅读, 收藏, 编辑
摘要:
命名参数指的是函数调用清晰地指明调用参数的名字,支持命名参数的语言有JAVA、python、 C#、Object-C 等等,C++ 是不支持的。本文作者总结了一些经典的方法,同时也提出一些新方法,模拟 C++ 的命名参数。值得一看,不在于命名参数,而是利用了很多 C++ 的最新特性。 https:/ 阅读全文
caffe使用(2)
2018-08-22 14:21 by ZealouSnesS, 233 阅读, 收藏, 编辑
摘要:
总体流程 https://blog.csdn.net/hjimce/article/details/48933813 https://zhuanlan.zhihu.com/p/24087905 1、编译安装 caffe编译完后,在caffe目录下会生成一个build目录,在build目录下有个too 阅读全文
c++编译/连接/运行
2018-08-21 22:41 by ZealouSnesS, 536 阅读, 收藏, 编辑
摘要:
1、gcc命令&makefile语法&makefile编写: https://www.cnblogs.com/ycloneal/p/5230266.html 2、头文件&库文件: 一般的文件都有.h和.cpp文件,前者用于声明,后者用于定义。 声明也可以卸载.cpp文件里面,只是不方便其他.cpp文 阅读全文
module使用
2018-08-21 22:31 by ZealouSnesS, 285 阅读, 收藏, 编辑
摘要:
官方文档:http://modules.sourceforge.net/ 加载 module load 卸载 module unload 查看已加载 module list 查看可用 module avail 自定义模块: https://blog.csdn.net/kongxx/article/d 阅读全文
slurm使用
2018-08-21 22:18 by ZealouSnesS, 6772 阅读, 收藏, 编辑
摘要:
官方文档:https://slurm.schedmd.com/ 用户命令cheatsheet:https://slurm.schedmd.com/pdfs/summary.pdf 占用GPU salloc -n 8 -N 1 --gres=gpu:8 --partition=matrix1 -n C 阅读全文
ssh
2018-08-19 21:06 by ZealouSnesS, 157 阅读, 收藏, 编辑
摘要:
login: ssh username@server_ip -A -A means takes the local private keys to server ( so you have no need to login gitlab/github in server again ) start 阅读全文
【shell脚本 读取命令行参数】shell function/for in/for (())/string concat/has dir/rename using regex/if(())/exit/execute command and pass value to variable/execute python
2018-08-17 22:10 by ZealouSnesS, 367 阅读, 收藏, 编辑
摘要:
注意:shell脚本中的空格 参考: 比较字符串 https://www.jb51.net/article/56559.htm if then elif then else fi用法 https://blog.csdn.net/m0_37138008/article/details/72814543 阅读全文
linux库冲突解决方法 apt purge / aptitude purge
2018-08-17 21:49 by ZealouSnesS, 841 阅读, 收藏, 编辑
摘要:
remove libs: [apt-get purge remove] or [aptitude purge] how to use apt-get and aptitude https://blog.csdn.net/yili_xie/article/details/4803314 some er 阅读全文
解决ubuntu 无法挂载移动硬盘问题 unknown filesystem type 'exfat'
2018-08-17 21:30 by ZealouSnesS, 5134 阅读, 收藏, 编辑
摘要:
Ubuntu 13.10 或以上 安装exfat-fuse: sudo apt-get install exfat-fuse Ubuntu 13.04 或以下 sudo apt-add-repository ppa:relan/exfat sudo apt-get update sudo apt-g 阅读全文
how to deal with ^M in linux
2018-08-17 21:29 by ZealouSnesS, 252 阅读, 收藏, 编辑
摘要:
change windows file to linux file https://blog.csdn.net/xiongmaojiayou/article/details/7561881 阅读全文
divison in python2 and python3
2018-08-15 19:47 by ZealouSnesS, 237 阅读, 收藏, 编辑
摘要:
python2 python3 // means floor(xiaquzheng) 阅读全文
travelsal all files in a dir using recursion shell
2018-08-15 19:39 by ZealouSnesS, 187 阅读, 收藏, 编辑
摘要:
#!/bin/bash function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element if [ -d $dir_or_file ] then getdir $dir_or_file else ... 阅读全文
shell判断文件/目录是否存在
2018-08-15 19:32 by ZealouSnesS, 2423 阅读, 收藏, 编辑
摘要:
https://www.cnblogs.com/37yan/p/6962563.html caution!!! if should be end with fi caution!!! there should be a space between [ and ! , also between 1 a 阅读全文
scp
2018-08-15 19:23 by ZealouSnesS, 206 阅读, 收藏, 编辑
摘要:
https://www.cnblogs.com/likui360/p/6011769.html the command of upload and download is the same scp server to computer computer to server 阅读全文
tmux
2018-08-15 19:18 by ZealouSnesS, 167 阅读, 收藏, 编辑
摘要:
1. open a remote terminal 2. tmux command 3. press ctril+b and release and press other commend: https://www.cnblogs.com/kevingrace/p/6496899.html 全屏某个 阅读全文
python multi process multi thread
2018-08-15 19:13 by ZealouSnesS, 369 阅读, 收藏, 编辑
摘要:
muti thread: python threading: https://docs.python.org/2/library/threading.html#thread-objects https://www.liaoxuefeng.com/wiki/001374738125095c955c1e 阅读全文
gedit
2018-08-15 17:55 by ZealouSnesS, 214 阅读, 收藏, 编辑
摘要:
find and replace: ctrl+h add a tab: tab delete a tab: shift+tab http://bnuzhutao.cn/archives/774 阅读全文
pdb
2018-08-15 17:52 by ZealouSnesS, 263 阅读, 收藏, 编辑
摘要:
core code: 单步执行并进入:s 单步执行并不进入:n 下一断点:c 当前位置:where 从当前函数返回:r 退出:q pdb commands: https://www.ibm.com/developerworks/cn/linux/l-cn-pythondebugger/index.h 阅读全文
OS
2018-08-15 17:50 by ZealouSnesS, 181 阅读, 收藏, 编辑
摘要:
执行shell命令 设置权限为777 os.listdir报windows error: 从命令行读取文件夹的时候文件夹路径里面如果有空格则需要用 ' ' 括起来 否则os.listdir(不存在的文件夹)则会windows error write files: open("xxx","r") re 阅读全文
ubuntu su failure when password was right
2018-08-15 17:43 by ZealouSnesS, 190 阅读, 收藏, 编辑
摘要:
https://blog.csdn.net/u013066244/article/details/52694540 阅读全文
【opencv安裝】ubuntu16 opencv安装+测试
2018-08-15 17:42 by ZealouSnesS, 816 阅读, 收藏, 编辑
摘要:
ubuntu16.04 install opencv2.4 to python2 and c++ 四大主流库比较: 对OpenCV的印象:功能十分的强大,而且支持目前先进的图像处理技术,体系十分完善,操作手册很详细,手册首先给大家补计算机视觉的知识,几乎涵盖了近10年内的主流算法;然后将图像格式和矩 阅读全文
shell脚本读取文件+读取命令行参数+读取标准输入+变量赋值+输出到文件
2018-08-08 19:22 by ZealouSnesS, 15522 阅读, 收藏, 编辑
摘要:
读取url_list文件批量下载网页 url_list download.sh 运行: 1、sh文件格式 http://www.runoob.com/linux/linux-shell.html 2、bash按行读取文件+bash读取命令行参数 测试文件:url_list_zss 正确写法: 不合适 阅读全文
【sed / awk脚本编写】
2018-08-07 15:56 by ZealouSnesS, 603 阅读, 收藏, 编辑
摘要:
awk awk分为BEGIN部分,正则匹配部分,END部分三部分。 我一般在BEGIN部分定义一些变量,正则部分用于匹配和执行一些解析和统计,END部分用于输出结果。 总体结构: 示例一: 抓取网页test.html中的身份证号/手机号,输入:一个html文件,输出:一行:网页url 身份证号个数 阅读全文
shell正则式解析身份证和手机号
2018-08-03 17:09 by ZealouSnesS, 3258 阅读, 收藏, 编辑
摘要:
测试文件test2.html内容: 测试结果: 身份证号正则式:https://www.jb51.net/article/109384.htm 只是参考,不能直接用,shell中或|要加\;左右括号()也要加\;表示8个数字应为[0-9]\{8\} https://zhidao.baidu.com/ 阅读全文
shell脚本杂
2018-08-02 22:05 by ZealouSnesS, 286 阅读, 收藏, 编辑
摘要:
1、sh -x 跟踪shell脚本中的每个命令 https://blog.csdn.net/qq_15547319/article/details/70538091 2、basename 从完整/不完整的路径名中获取文件名 https://blog.csdn.net/flyfrommath/arti 阅读全文
java获取当前路径&读取当前目录下文件
2018-08-02 21:53 by ZealouSnesS, 50834 阅读, 收藏, 编辑
摘要:
项目目录如下: test1.class中读取test.txt 结果如下: 总结读取文件: 直接 总结获取当前路径: 需要非静态函数中使用(main函数中不能使用) 获取的是工程的根目录 获取的是创建file对象时构造参数里填的值 获取的是文件绝对路径 获取的也是文件的绝对路径,但是不会解析.和.. 阅读全文
IDEA 录制宏+设置快捷键 实现写时编译
2018-08-02 09:22 by ZealouSnesS, 2182 阅读, 收藏, 编辑
摘要:
参考: IDEA 录制宏+设置快捷键 实现写时编译:https://blog.csdn.net/wangjie919/article/details/79487981 IDEA 设置运行时不编译项目:https://www.aliyun.com/jiaocheng/785738.html 1.首先开 阅读全文