原创 詳解在bash腳本中如何獲取自身路徑
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 這是stackoverflow上推薦的方法 http://stackoverflow.com/questions/
原创 test
import pika def callback(ch, method, properties, body): print(" [x] Received %r" % body) connection = pika.Blocking
原创 face aligned 記錄
face aligned github 該博客是轉化這個裏面的matlab程序爲c++程序: 轉換這個時候感覺遇到一個坑(不知道作者是不是故意這樣的),傳進去的圖片要進行翻轉,因爲作者在寫matlab的時候沒有進行翻轉就直接放
原创 c++學習記錄
【未完待續】 1、 typename TTypes<T>::ConstTensor gradients TTypes<T>::ConstTensor 是一種類型,由於裏面T是一種待定的typename,因此需要使用它進行定義變量
原创 gpu cuda部分參數學習
Maximum number of threads per block: 1024 Max dimension size of a thread block (x,y,z): (1024, 1024, 6
原创 caffe python接口使用記錄
import caffe import cv2 import numpy as np def load_data(image_path): image = cv2.imread(image_path) image
原创 Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks 論文學習
1、Introduction (略) 2、Method 這篇文章提出了一個新的框架整合了人臉檢測以及人臉標註的兩個任務。這個CNN框架包含三個部分,第一部分,用淺層的cnn快速獲取預選的框。然後通過一個相對複雜的cnn來裁剪大
原创 boost xml
#include <iostream> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> #include
原创 tensorflow 目錄
TensorFlow0.8發佈以來受到了大量機器學習領域愛好者的關注,目前其項目在github上的follow人數在同類項目中排名第一。作爲google的第一個開源項目,TensorFlow的源碼結構較爲清晰,相關的代碼註釋覆蓋較
原创 cublasSgemm函數
cublasStatus_t cublasSgemm ( cublasHandle_t handle, cublasOperation_t transa, cublasOperation_t transb, int m, in
原创 sed 命令
sed [-nefr] [動作] 參數: -n:使用安靜模式 -e:直接在命令模式進行sed操作 -f:將sed的動作寫在一個文件 -r:sed支持擴展型正則表達式 -i:直接修改讀取的文件內容 動作:[n1[,n2]]
原创 R-FCN:Object Detection via Region-based Fully Convolutional Networks論文部分總結學習
摘要: 之前基於區域的目標檢測方法(Fast/Faster R-CNN)需要將重複性地將成千上百proposal輸入到子網絡。R-FCN網絡近乎全圖共享計算,避免前面方法的計算冗餘。R-FCN提出使用位置敏感的得分譜(解決這個問
原创 batch slice layer
這個層的作用是將bottom分爲k個tops 列如k爲3,bottom爲n1,n2,n3,n4,n5,n6。 則top1爲n1,n4 則top2爲n2,n5 則top3爲n3,n6 batch_slice_layer.h
原创 normalize layer 公式
forward [x1∑x2i−−−−√,x2∑x2i−−−−√,x3∑x2i−−−−√...,xn∑x2i−−−−√] backward dLdxi=∑dLdyjdyjdxi dyjdxi=10∑x2k−−−−√−xix
原创 new operator,operator new and replacement new
new operator:指在C++裏通常用到的關鍵字 operator new:它是一個操作符,並且可被重載 關係: operator new can be called explicitly as a regular