Closed falkaabi closed 2 years ago
In addition, I put pickle in lab to good use past, but passed several try-times and references I have come to know... the pickle file only stores a small amount of space. To me, I don't think it's the best thing to do. Let me share about what I said here
Ok, lovely notification brought me back to comment there, i mean my previous approach didn't seem right and face_recognition author Adam changed my mind, i should just keep the face embedding code on a database instead, i'm learning a database support for deepface without json on my windows os, postgresql in particular. May I ask if Sefik's DeepFace works the same way as other frameworks? Please check map on photo below
this issue will be followed under #516
Thought to share this as contribution
@serengil You could probably add some of these functions in your code and use them elsewhere as I've noticed you build representations in multiple different ways in your code.
Here's something you could probably use:
Another function to build representations if they don't exist
Then use a function to decide whether to build or get representation from file
Also, you could probably change how you get images from the database folder using this (It's easier to add more image file extensions this way):
I have used
os.path.join()
instead of concatenating strings since this is better when porting this code to other OS'sAll these could be related to #516 enhancements