- 博客(15)
- 资源 (17)
- 收藏
- 关注
原创 caffe inplace 操作
所谓的in-place操作,即就地操作,就是说一个函数的输入图像src与输出图像dst是同一图像。比如,高斯滤波函数GaussianBlur( )支持in-place,那么我们就可以:GaussianBlur(src,src,Size(3,3),2,2);而不需要:GaussianBlur(src,dst,Size(2,2),2,2);caffe利用in-place计算可以节省内(显)存,同时还可...
2018-06-29 11:49:48 1636 1
原创 mxnet 查看weight相关命令
import mxnet as mxmodel_prefix='/home/sensenets/Demo/MXNet2Caffe-master (2)/car-reid/car_reid'sym, arg_params, aux_params=mx.model.load_checkpoint(model_prefix, 3)args = sym.get_internals().list_ou...
2018-06-28 14:42:46 596
原创 git clone 指定分支下载
git clone -b <branch> <remote_repo>Example:git clone -b my-branch git@github.com:user/myproject.gitAlternative (no public key setup needed):git clone -b my-branch https://git@github.com/...
2018-06-28 10:49:12 8748
原创 mxnet 符号式与命令式
命令式:Numpy, Matlab, Torch,优点在于 Straight-forward. Easy to view the middle level resultsimport mxnet.ndarray as nda = nd.ones((4,4))b = nd.ones((4,4))c = a + bprint(c.asnumpy())符号式: Tensorflow, The...
2018-06-27 17:40:38 382
转载 #coding=utf-8 只能放在第1,2行
#coding=utf-81.只能放在第1,2行中比如在第3行 程序就出错了,其他编码方式也一样。2.#coding = utf-8 会出问题,中间不能有空格:正确的是: #coding=utf-8转自 https://blog.csdn.net/leejearl/article/details/7302091...
2018-06-25 17:15:54 2017 1
原创 OSError: libcudart.so.8.0: cannot open shared object
遇到这种类似的错误,如果在.bashrc下面添加LD_LIBRARY_PATH没用,可以使用如下神器sudo sh -c "echo '/usr/local/cuda/lib64\n/usr/local/cuda/lib' >> /etc/ld.so.conf.d/nvidia.conf"sudo ldconfig...
2018-06-25 15:19:13 1172
原创 mxnet相关
data = mx.sym.Variable(name='data')data= mx.sym.BatchNorm(data=data, fix_gamma=True, eps=2e-5, momentum=bn_mom, name='bn_data')body = mx.sym.Convolution(data=data, num_filter=filter_list[0], kernel=(7...
2018-06-22 17:13:48 318
原创 netron神经网络可视化
Netron is a viewer for neural network, deep learning and machine learning models.Netron supports ONNX (.onnx, .pb), Keras (.h5, .keras), CoreML (.mlmodel) and TensorFlow Lite (.tflite). Netron has exp...
2018-06-22 11:39:01 3052
原创 Linux error while loading shared libraries: cannot open shared object file: No such file or director
Your library is a dynamic library. You need to tell the operating system where it can locate it at runtime.To do so, we will need to do those easy steps:(1 ) Find where the library is placed if yo...
2018-06-20 10:07:16 1582
转载 用GPU做caffe训练提示 out of memory
用GPU做caffe训练提示 out of memory深度学习中训练时经常会出现 out of memory,出现这种情况的解决方法三种:一、调小batch_size的值;二、输入图片变小一些,可以使用resize;三、换显卡。...
2018-06-16 19:54:38 1545
原创 python numpy 大数组显示不全,解决方案
import numpy as np np.set_printoptions(threshold=np.inf) 或者 np.set_printoptions(threshold='nan')其中threshold表示: Total number of array elements to be print(输出数组的元素数目)...
2018-06-12 19:30:06 25258 3
转载 cPickle 用法
在python中,一般可以使用pickle类来进行python对象的序列化,而cPickle提供了一个更快速简单的接口cPickle可以对任意一种类型的python对象进行序列化操作,比如list,dict,甚至是一个类的对象等。而所谓的序列化,可理解就是为了能够完整的保存并能够完全可逆的恢复。1, dump: 将python对象序列化保存到本地的文件。复制代码代码如下:>>> ...
2018-06-12 18:15:03 1732
原创 网页指定地址搜索
无论是百度还是google,都可以通过以下类似的方法来进行指定地址的搜索,如要搜索tensorrt,可以用如下的方式 tensorrt site:github.io...
2018-06-07 15:46:53 796
原创 ubuntu 禁止锁屏(自动锁屏,打开时所有程序全部关闭)
Install "Unity Tweak Tool" with sudo apt-get install unity-tweak-tool. Run it from the Launcher and select System > Security > Enhance system security by disabling Desktop lock 2. To disable ...
2018-06-07 14:00:06 3557
Visual 3D Modeling from Images(tutorial)
2015-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人