Giter VIP home page Giter VIP logo

Comments (6)

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

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.

Rukhmini avatar Rukhmini commented on July 30, 2024

Hey Sajjjad,
Thanks for your prompt response.

from facelib.

Rukhmini avatar Rukhmini commented on July 30, 2024

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.

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

I fixed it, you have to run it from scratch, please

  1. clone or pip again
  2. add weights files
  3. go to the add_face_from_camera.py in InsghtFace
  4. change the default name to anything that you want
  5. and then run the camera_verify.py for test

from facelib.

Rukhmini avatar Rukhmini commented on July 30, 2024

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.

sajjjadayobi avatar sajjjadayobi commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.