martlgap / faceidlight Goto Github PK
View Code? Open in Web Editor NEWA lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Home Page: https://martlgap.github.io/
License: MIT License
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Home Page: https://martlgap.github.io/
License: MIT License
Hi, when I was trying to run your demo with
from FaceIDLight.demo import Demonstrator
Demonstrator(gal_dir=).run()
this error would show up:
Python 3.8.18 (default, Sep 11 2023, 08:17:33)
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
from FaceIDLight.demo import Demonstrator
Demonstrator(gal_dir='./proj1_gallary').run()
Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/FaceIDLight/demo.py", line 38, in init
self.FaceID = FaceID(gal_dir=gal_dir)
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/FaceIDLight/tools.py", line 62, in init
self.update_gallery()
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/FaceIDLight/tools.py", line 81, in update_gallery
self.gal_embs = self.recognizer.get_emb(np.asarray(self.gal_faces))[0]
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/FaceIDLight/tools.py", line 144, in get_emb
return tflite_inference(self.face_recognizer, img)
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/FaceIDLight/tools.py", line 120, in tflite_inference
model.allocate_tensors()
File "/opt/anaconda3/envs/ee4208_proj1/lib/python3.8/site-packages/tflite_runtime/interpreter.py", line 259, in allocate_tensors
return self._interpreter.AllocateTensors()
RuntimeError: external/org_tensorflow/tensorflow/lite/kernels/pad.cc:79 SizeOfDimension(op_context->paddings, 0) != op_context->dims (4 != 1)Node number 0 (PAD) failed to prepare.
Can I ask how to address this issue? I've checked the path to the galley folder is correct.
face bounding detections are inaccurate and cannot able to extract features from some images, and why the models are downloading everytime
try to fix this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.