We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f48a1a + 7c99dbd commit e74753fCopy full SHA for e74753f
src/embedding/upload_api-v2.py
@@ -146,7 +146,6 @@
146
if HAS_OPENCL == 'false':
147
from embedding_client import get_remote_embedding
148
149
-
150
def featureCalculation(imgpath):
151
img = misc.imread(os.path.expanduser(imgpath))
152
prewhitened = facenet.prewhiten(img)
start_service.sh
@@ -1,6 +1,15 @@
1
#!/bin/bash
2
source ./env/common.sh
3
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
+
13
redis-server --maxmemory 40mb --maxmemory-policy allkeys-lru --save "" --appendonly no --dbfilename "" &
14
mosquitto &
15
0 commit comments