seetaface / SeetaFaceEngine

Other
4.61k stars 1.78k forks source link

人脸特征有没有10m 的模型? #118

Closed sunjunlishi closed 6 years ago

sunjunlishi commented 7 years ago

我想用到嵌入式上;我们可以合作吗

sunjunlishi commented 7 years ago

特征提取下面函数换成 openblas,时间可以从120ms变为50ms void matrix_procuct(const float A, const float B, float* C, const int n, const int m, const int k, bool ta, bool tb) {

blasCal(B,A,C,m,n,k,false,true);

} void blasCal(const float A, const float B, float* C, const int n, const int m, const int k, bool ta, bool tb) {

const int M = n;//A的行数,C的行数
const int N = m;//B的列数,C的列数
const int K = k;//A的列数,B的行数

const int lda =  K ;//A的列
const int ldb =  K;//B的列
const int ldc = N;//C的列
                  //float * C = new float[img1.rows];
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
    M, N, K, 1, (float*)A, lda, (float*)B, ldb, 0, C, ldc);

}

chengjianxi commented 7 years ago

0xC0000005: Access violation. 按照你的改了怎么崩溃呢?

yippeesoft commented 6 years ago

666! 强大!