Skip to content

Commit e74753f

Browse files
committed
Merge branch 'master' of https://github.com/SharpAI/DeepCamera
2 parents 7f48a1a + 7c99dbd commit e74753f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/embedding/upload_api-v2.py

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@
146146
if HAS_OPENCL == 'false':
147147
from embedding_client import get_remote_embedding
148148

149-
150149
def featureCalculation(imgpath):
151150
img = misc.imread(os.path.expanduser(imgpath))
152151
prewhitened = facenet.prewhiten(img)

start_service.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/bin/bash
22
source ./env/common.sh
33

4+
if [ -f /system/vendor/lib64/libOpenCL.so ]
5+
then
6+
export HAS_OPENCL=true
7+
echo 'has opencl supporting'
8+
else
9+
export HAS_OPENCL=false
10+
echo 'no opencl supporting'
11+
fi
12+
413
redis-server --maxmemory 40mb --maxmemory-policy allkeys-lru --save "" --appendonly no --dbfilename "" &
514
mosquitto &
615

0 commit comments

Comments
 (0)