自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(62)
  • 收藏
  • 关注

原创 docker 相关

安装docker和nvidia-docker,参考官方doc:https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#installing-on-ubuntu-and-debian修改docker的默认存储位置(不同版本不一样):https://stackoverflow.com/questions/24309526/how-to-change-the-docker-image-i.

2020-09-17 16:55:45 157

原创 桌面相关

x11简介:https://www.jianshu.com/p/1a296191a122主要有两个配置文件(个人用户下在~/.ssh/文件下): /etc/ssh/sshd_config:server相关的配置,主要是X11Forwarding yes /etc/ssh/ssh_config:client相关的配置,主要是ForwardX11 yes针对MAC:本地需要支持x11,安装XQuartz因为mac的xauth不在/usr/bin下,还需要更改auth的位置,在m...

2020-09-17 13:40:41 174

原创 sudo相关

Ububtu:visudo会以比较安全的方式(检查错误)编辑/etc/sudoers。该文件中 %A表示A用户组,A表示A用户。ALL (ALL:ALL)ALL 表示 主机 (用户:用户组)可进行的操作。一般会有一行:%sudo ALL (ALL)ALL所以只需要把用户添加到sudo组后,该用户就拥有了使用sudo的权限添加的命令:usermod -aG sudo A (a表示append,G表示修改用户组)或者 adduser A sudo详细信息可以man s..

2020-09-17 12:08:04 132

原创 cmake使用conda环境里的包

cmake .. -DCMAKE_PREFIX_PATH=****https://cmake.org/cmake/help/v3.6/variable/CMAKE_PREFIX_PATH.html

2020-06-11 14:48:15 4485

原创 没有root安装apt-get包

首先下载包apt-get download package然后安装到本地dpkg -x package.deb dirhttps://askubuntu.com/questions/339/how-can-i-install-a-package-without-root-access

2020-06-06 18:22:39 939

原创 在无桌面服务器使用GUI软件

在服务器上使用xvfb创建虚拟桌面 export DISPLAY=:1 Xvfb :1 -screen 0 1024x768x16 &使用x11vnc发布这一桌面x11vnc -display :1 -bg -nopw -listen localhost -xkb在客户机(自己的电脑)上使用vncviewerssh -N -T -L 5900:localhost:5900 user@remotehost &vncviewer -encodings 'copyr.

2020-06-06 18:19:39 312

原创 设置服务器免密登陆并修改用户名字

https://cloud.tencent.com/developer/article/1359631首先创建密钥对:ssh-keygen然后上传公钥ssh-copy-idusername@remote_host如果希望修改username@remote_host为一个简单的名字easyname在主目录下vim .ssh/config添加Host easyname HostName remote_host User username最后登...

2020-06-06 17:36:25 183

原创 git 删除已经跟踪的文件

git rm --cached file

2020-06-06 17:31:36 592

原创 复制conda环境到另一台电脑,避免在线安装,并替换文件路径

复制conda环境到另一台电脑,可以避免在线安装直接复制envs中的内容即可,并修改~/.conda/environment.txt中的内容替换非binary文件中的文件路径find . -type f -exec grep -Iq . {} ; -exec sed -i ‘s/home/name1/home/name2/g’ {} ;其中-exec表示根据之前的结果执行下一条命令其中{...

2019-04-28 23:03:48 15614 3

原创 pytorch to caffe

安装caffe, gpu版本的,可以直接通过conda安装conda install caffe-gpupytorch安装:官网conda install pytorch torchvision cuda80 -c pytorchpytorch to caffe这里使用一个开源的代码: pytorchtocaffemodel_def = os.path.join(c...

2018-08-18 15:29:44 3954 6

原创 nvidia-docker + caffe2 + cuda

首先安装docker: 官网sudo yum remove docker \ docker-common \ docker-selinux \ docker-enginesudo yum install -y yum-utils device-mapper-persistent-da...

2018-08-18 15:21:11 516

原创 caff2 与 pytorch 模型的转换--onnx

onnx和caffe2的安装参考另一篇博客caffe2新版本中添加了onnx-caffe2,所以无需再安装Pytorch to ONNXimport torchfrom pnasnet import PNASNet5Largefrom torch.autograd import Variablemodel = PNASNet5Large(50)m = torch.load(...

2018-08-18 15:08:16 3720 4

原创 gcc4.8+Caffe2(0.8)+onnx(1.2)+onnx-caffe2在anaconda中的安装,不需要root,源码编译.

caffe2的cuda8预编译是gcc5以上的. gcc5以下的只有cuda9和cpu版本对于gcc4.8和cuda8的caffe2没有预编译. 源码安装caffe2git clone --recursive https://github.com/pytorch/pytorch.gitcd pytorchgit submodule update --initCONDA_INST...

2018-08-18 15:02:26 1129

原创 深度学习中的Numpy

添加一维:label = label[:, np.newaxis] 从后往前:a[::-1] 由list到np.array:np.array[list]要求list各维度相同,否则内在还是list

2017-11-29 21:34:49 299

原创 常见bug

THCUNN/ClassNLLCriterion.cu:57: void cunn_ClassNLLCriterion_updateOutput_kernel:class num 设置不对 RuntimeError: some of the strides of a given numpy array are negative. This is currently not supported, ...

2017-11-14 10:05:30 1227

原创 teamviewer

The Desktop Environment is the graphical user interface (X server with KDE, Gnome, Unity…) where applications run.A Virtual Terminal (VT) provides an interface for the user to log in and work. You can

2017-10-28 10:06:30 225

原创 centos管理经验

服务设置问题服务器变慢:尝试重启命令systemctl start/stop/restart httpd.service systemctl enable/disable httpd.service systemctl list-units –type=service常见服务gdm: 桌面系统sshd:远程登录,必备。cups:打印系统,服务器无用。...

2017-10-27 16:27:07 397

原创 Tensor

abs_() vs abs() : in_place 的区别

2017-10-21 12:10:34 172

原创 torch.nn

nn.Module模型的基类add_module(name, module) 等价于self.name = nn.xxx,模块使用名字来接触cpu() cuda() 复制到设备上double() float() half()eval() train() 只对BN和Dropout有用apply(fn) 应用于children的返回值,即所有子模型,可用于initstate_dict

2017-10-21 12:04:12 368

原创 Pycharm

Basicproject filesA project directory is marked with /help/img/idea/2017.2/project_icon.png icon. Such project directory contains the .idea directory, with the following files:*.iml file that describ

2017-10-18 15:11:11 885 1

原创 Anaconda

Anaconda是一个打包的集合,里面预装好了conda、某个版本的python、众多packages、科学计算工具等等。 Miniconda,只包含最基本的内容——python与conda,以及相关的必须依赖项。环境操作conda create -n bunnies python=3 conda create -n bunnies python=3.6 anaconda conda remo

2017-09-30 19:47:41 396

原创 深度学习中的panda

import panda as pdfile = pd.read_csv(csv_path, header=None)# change elementsfile.loc[0,0]=0#writefile.to_csv(csv_path,header=None,index=None)

2017-09-30 17:56:34 390

原创 linux常用概念

开机apport提示:说明其他程序崩了

2017-09-29 10:02:28 225

原创 RNN

SRU

2017-09-29 09:43:19 212

原创 Python基本理念

类super函数:为了方便得初始化父类对象。 之前 A(B) B.init(self) 现在 A(B) super(A, self).init() 如果需要改变父类为C,之前需要改两处,现在只需要改一次。

2017-09-28 20:14:12 1636

原创 htop

htop sudo filter kill 选择3或者9

2017-09-27 21:41:08 328

原创 pytorch扩展

python__init__.py导入包时实际导入的是__init__.py,可以通过__init__.py来控制可以使用的包和函数。 __all__关键字可以方便得用来指定要导入的包。ctypescffi的wrapercffipytorchc文件需要一个h文件python文件build soffi.create_extension和build扩展autograd需要init forward 和

2017-09-24 16:47:20 271

原创 Deformable CONV

1.        Deform CNN1.1.        Deformable Convolution Networks23将输入经过卷积,生成一个与输入同样空间大小,2倍于卷积核大小深度的偏置,在卷积过程中对于不同的卷积核与不同的输入,使用相对应的偏置来采样新的点。 对于3D情况:In: NCLHW Kernel: C”CL’H’W’ Out: NC”L”H

2017-09-24 13:50:46 1547

原创 3D CNN

1.        3D CNN1.1.        C3D16直接将vgg扩展为3d形式,参数较多。1.2.        3D Resnet v117将resnet直接扩展为3d,未预训练的模型在小训练集(activitynet)上效果不好,大训练集(kinetics)上效果好。     Resnet3d与2d结构主要区别在于时间维度上的缩减要慢一

2017-09-24 11:15:57 5984

原创 2D CNN

1.        二维卷积模型1.1.        Basic Convolution具体到计算中使用cublas的gemm方法。设输入为nclhw,卷积核为c”cl’h’w’,输出为c”l”h”w”,步长s,补偿p。输出与输入的关系:L”=(l+2p-l’)/s+1输入与输出相等时:p=[s(l-1)+l’-l]/2矩阵相乘:c”*cl’h’w’ 与 nl

2017-09-24 11:11:58 5305

原创 CHAR Learn冠军方案

1.      CHALEARN冠军方案91.1.      Large-scalegesture recognition based on multimodaldata with C3D and TSN.  Retivex做图像enhancement,mean filter做深度图enhancement。   特征级联做分类。1.2.      Learningbot

2017-09-24 11:10:49 339

原创 Attention in CV

1.      Attention in CV1.1.      CHAM:actionrecognition using convolutional hierarchical attention model.5Cnn+多层LSTM,soft attention(指可导,hard attention使用强化学习,但是强化学习方差较大)1.2.      Recursiver

2017-09-24 11:08:01 1569

原创 Attention in NLP

1.      Attention in NLP(list some important)1.1.        Sequence to sequencelearning with neural networks 1使用encoder-decoder模型,一个rnn以待翻译语句为输入,编码待翻译句子为中间语言,另一个rnn以上一次输出的结果为输入,解码中间语言为目标语言

2017-09-24 11:03:11 428

原创 CNN卷积实现

卷积动图12 多通道 计算 im2col,col2im

2017-09-24 09:37:05 225

原创 2D CNN网络

模型inceptionv1-v4Inception增加1×1层 5*5->2*3*3, 1*n*n*1, 并行pool,全链接层替换为均值pooling global average pooling 全面

2017-09-24 09:36:32 2303

原创 Zotero

基本使用下载:跨各种平台,可与endnote互导。配合chrome:添加为chrome扩展,可以一键导入,配合谷歌学术。插件ZotFile:提取pdf注释,重命名pdf。Better BibTex:更方便的写引用文献。

2017-09-21 19:47:55 392

原创 install for pytorch

tensorboard tensorflow-cpu pillow simd pandas

2017-09-18 15:03:49 476

原创 Ubuntu init

sougou sudo dpkg -i … sudo apt-get install -f anaconda the fuck auto jump pycharm clion teamviewer xxnet lantern chrome zotero cuda steam bcloud wps tmux

2017-09-17 11:59:45 819

原创 GEMM vs GEMV

gemm gemv 比较 tensorflow的实现

2017-09-16 15:23:13 3448

原创 小工具整理

护眼f.lux redshift服务器teamviewer winscp gftp文档texlive texstudio 同步坚果云 onedrive

2017-09-13 21:45:35 184

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除