Comments (6)
ooh man, it's an optional bool variable that I forgot to set, thank you for your reporting
I'll correct the readme file, and you can try the code here:
set it when you add someone new
update_facebank_for_add_new_person = True
or check the new readme file example
from facelib.
Hey Sajjjad,
Thanks for your prompt response.
from facelib.
After correcting that, I am getting an error like this:
How to get the facebank.pth file?
FileNotFoundError Traceback (most recent call last)
in ()
3 targets,names = update_facebank(conf, face_rec.model, detector)
4 else:
----> 5 targets, names = load_facebank(conf)
3 frames
/usr/local/lib/python3.6/dist-packages/torch/serialization.py in init(self, name, mode)
209 class _open_file(_opener):
210 def init(self, name, mode):
--> 211 super(_open_file, self).init(open(name, mode))
212
213 def exit(self, *args):
FileNotFoundError: [Errno 2] No such file or directory: 'models/data/facebank/facebank.pth'
from facelib.
I fixed it, you have to run it from scratch, please
- clone or pip again
- add weights files
- go to the add_face_from_camera.py in InsghtFace
- change the default name to anything that you want
- and then run the camera_verify.py for test
from facelib.
Hey sajjad,
One quick question, is it possible to test on a single image without using the camera like face detection and face alignment are performed?
from facelib.
yes, but you need some persons to compare it to them
you can add some persons with add_face_from_camera.py and then use a face image instead of using the face detector
just for test time not when you don't have this person in your facebank
from facelib.
Related Issues (20)
- CPU error HOT 1
- How to Compare two faces? HOT 4
- Face Landmarks HOT 1
- Metrics HOT 2
- ShuffleneTiny model for Age-Gender estimation HOT 2
- Nocorrect box coordinates HOT 1
- FaceLib on Nvidia Jetson Nano HOT 2
- Missing dependencies HOT 1
- pred = torch.argmax(input[:, :2], dim=1) HOT 7
- RuntimeError: number of dims don't match in permute HOT 3
- Error in compare two faces HOT 1
- Coordinates for cv2.rectangle() need to be casted to int. HOT 1
- TypeError: infer() got multiple values for argument 'tta' HOT 3
- Error from AgeGender Webcam
- the training dataset of Facial Expression Recognition HOT 1
- OpenCV gives an error after a few seconds of opening the window HOT 1
- some questions HOT 6
- Issue with EasyDict HOT 2
- Expected emotions to detect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facelib.