acuity-toolkit-LIBRARY

Which Khadas SBC do you use?

VIM3 V14

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu20.04

I have some problems with my network and can’t download these libraries below, can you help send a copy?

$ cd {workspace}/aml_npu_sdk/acuity-toolkit
$ cat requirements.txt
tensorflow==2.0.0
astor==0.8.0
numpy==1.18.0
scipy==1.1.0
Pillow==5.3.0
protobuf==3.11.2
networkx>=1.11
image==1.5.5
lmdb==0.93
onnx==1.6.0
h5py==2.10.0
flatbuffers==1.10
matplotlib==2.1.0
dill==0.2.8.2
ruamel.yaml==0.15.81
ply==3.11
torch==1.2.0

Hello @longer

We also don’t have such packages. Please try to use other networks.

Hi @longer 将问题粘贴在这里

aml_npu_sdk/acuity-toolkit/demo$ sh ./0_import_model.sh
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named ‘encodings’

Current thread 0x00007fddf42c2740 (most recent call first):
Aborted (core dumped)
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named ‘encodings’

Current thread 0x00007fd7a0f71740 (most recent call first):
Aborted (core dumped)

aml_npu_sdk/acuity-toolkit/demo$ python
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

和PYTHON版本有没有关系

V12版本中的这几个模型,现在的版本中没有了,有地方下载吗? yolov3_88.nb* yolov3_99.nb* yolov2_88.nb* yolov2_99.nb* faceNet_88.nb* faceNet_99.nb* yolo_face_88.nb* yolo_face_99.nb*

Hello @longer ,
You can download these models from GitHub - khadas/aml_npu_demo_binaries.
aml_npu_demo_binaries/detect_demo_picture/nn_data

faceNet_88.nb faceNet_99.nb 这两个文件没有找到

Hello @longer ,

Sry, faceNet has been deprecated. Both of them have been removed.

请问有什么代替FACENET的模型可以用吗?最好是你们转好的NB格式

@longer do you know npu usage…?
help me ㅠㅠ

https://docs.khadas.com/products/sbc/vim3/npu/npu-sdk


difficult…

Hello @longer

You can use yolo-face model instead of faceNet. However, this model only detects face box without key pionts and only has python without C++.
If you want to use it, please refer to KSNN Usage [Khadas Docs].
If not, please try to convert your model. Refer to NPU SDK Usage [Khadas Docs].

@Louis-Cheng-Liu please help me!!


why not working…

Hello @rayeleigh ,

Are you sure the name of your model is converted_model.tflite.tflite but not converted_model.tflite.

yolo-face只能检测人脸,是吗,我现在需要人脸识别的模型,什么好的推荐?

@Louis-Cheng-Liu
@numbqq


I tried changing it but it doesn’t work
and
I don’t think my filename is wrong

Hello, @longer ,

Yes, yolo-face only can detect face.
Sry, I do not participate in the face recogniton project. I can suggest nothing.

Hello @rayeleigh ,

Could you show your 0_import_model.sh?

@Louis-Cheng-Liu
@numbqq
#! /bin/sh

NAME=converted_model.tflite
ACUITY_PATH=…/bin/

pegasus=${ACUITY_PATH}pegasus
if [ ! -e “$pegasus” ]; then
pegasus=${ACUITY_PATH}pegasus.py
fi

#TFLITE
$pegasus import tflite
–model converted_model.tflite
–output-model converted_model.json
–output-data converted_model.data