- 博客(30)
- 资源 (9)
- 收藏
- 关注
原创 theano-deep learning
-------------------------------reference----------------------------------1. http://www.cnblogs.com/love6tao/p/5770364.html
2016-10-31 22:44:26 402
原创 python-numpy-01
1. import numpy as npa = np.array([[1,2,3,3],[2,3,3,4],[2,3,3,4]]) #[[1 2 3 3] #[2 3 3 4] #[2 3 5 4
2016-10-28 16:14:13 317
原创 python-set
for -> speed slowset(a) ^ set(b)set(a).intersection( set(b) )set(a).union( set(b) )set(a).difference( set(b) )
2016-10-25 14:09:14 413
原创 network-socket IOError
IOError: [Errno socket error] [Errno 10054] An existing connection was forcibly closed by the remote host----------------reference-------------1. http://stackoverflow.com/questions
2016-10-25 09:38:59 608
原创 python-multiprocessing
import multiprocessingpool = multiprocess.Pool( n ) # multi processpool.map( func, input )pool.close() # there is no new process into pool after closepool.join() #wait all process done
2016-10-24 21:37:57 305
原创 python-urllib/urllib2
1. download image given urlurllib.urlretrieve(url, filename2save)with opwn(filename2save, 'wb+') as f : f.wtite( urllib2.urlopen(url).read() )
2016-10-24 16:32:29 371
原创 attention model
----------attention-----------http://blog.csdn.net/shenxiaolu1984/article/details/51582185
2016-10-24 13:12:57 345
原创 caffe-python layer
usage: layer { name: "data" type: "Python" top: "data" top: "label" top: "cont" python_param { module: "pythondatalayer" layer: "gene_data" param_str: " {'batch_size':10, 'sh
2016-10-23 16:14:10 2009
原创 caffe-dummy data layer
generate data randomlylayer { type: 'DummyData' name: 'x' top: 'x' dummy_data_param { shape: { dim: 10 dim: 3 dim: 2 } data_filler: { type: 'gaussian' } }}
2016-10-23 15:54:29 4084
原创 caffe-net construct flow
1. when init a net instance will call a Init functemplate Net::Net(const NetParameter& param, const Net* root_net) : root_net_(root_net) { Init(param);}2. init funci. call layers Setup f
2016-10-18 13:55:22 362
原创 python-class
namespacescopemethodclass level ...objectinstanceself__init__(self, ...):
2016-10-17 21:41:20 278
原创 caffe-siamese network
有参数的layerparam { name: "xxx"}// Specifies training parameters (multipliers on global learning constants,// and the name and other settings used for weight sharing).mess
2016-10-09 20:24:41 1278
原创 wincaffe-error
nuget神器, 多看看CommonSettings.props文件, 以及vs2013工程管理的方式。。(哭。。。)Restoring NuGet packages...To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the
2016-10-09 10:15:07 2653
原创 caffe-slice layer
usage:layer { name: "slicex" type: "Slice" bottom: "rnn1" top: "x1" top: "x2" top: "x3" slice_param { axis: 0 #slice_point: x #if no this slice_point, it will slice the data depend on n
2016-10-05 21:46:20 1537
原创 caffe-recurrent/rnn
下面的prototxt展示了 RNN的基本用法bottom[0] t * n .... databottom[1] t * n [0, 1] indicator- whether continuous or not. [1, 0]bottom[2] constant input to all cellthe way unroll the rnn, refer to / read log and codeparameter[0 ...4] : W_xh b_h W_hh W
2016-10-04 17:22:59 1295 2
原创 c++/sstream/stoi/
#include#include#includeusing namespace std;stringstream ss;string some("11123");int tmp;ss << some;ss >> tmp;or tmp = std::stoi(some);
2016-10-04 13:11:36 549
原创 python-module/package
import some-model : three things will be done1. 2. 3.----------------reference---------------------------0. http://blog.csdn.net/zyz511919766/article/
2016-10-04 12:41:12 270
原创 caffe-custom network input/image_data_layer/hdf5_data_layer
当需要输入定制自己的数据时候,e.g. multi-label, bbox. etc. option 1. 修改 image_data_layer.cpp 文件 batch类有data_ label_ 两个成员变量, 把图片之外的数据输入到label中就行了test.jpg 1 2 3 4 5vector> > lines
2016-10-03 16:26:58 731
原创 c++-file about
#includeifstream infile(filename.c_str());while( getline( infile, line) ) { }while( infile >> first_position >> second_pos >> ... ) { }
2016-10-03 11:28:58 571
原创 python-str-format
'{:0.6f}'.format(i) 小数点后保留6位 补0'{:.6f}'.format(ii) 六位有效数字 '{:0>4}'.format(i) 四位有效数字 左补0'{:0<4}'.format(i) 四位有效数字 由补0
2016-10-02 17:02:21 698
原创 py-faster-rcnn
--------------------reference-----------------------0. https://github.com/rbgirshick/py-faster-rcnn1. http://blog.csdn.net/samylee/article/details/512017442. http://blog.csdn.net/hgd1010101/arti
2016-10-02 11:11:30 579
原创 OpenCV Source
0. http://docs.opencv.org/2.4/modules/core/doc/basic_structures.html
2016-10-01 12:01:11 724
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人