-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deepstream #30
Comments
check this, dlib model and facenet have similar output |
So it is possible |
@hirwa145 this was asked before and i think it is a great idea. Let me know if you are interested to work on that |
@nwesem I am working on a similar project, but first I'm trying to use dlib's model for face recognition with deepstream |
Have you succeeded with it? |
currently i am working on https://github.com/riotu-lab/deepstream-facenet this, because to run this repo with deepstream will require us to configure mtcnn as with the deepstream. |
Hey, I managed to get facenet working with deepstream but it's a python implementation. shall I put up a pull request? @nwesem |
@shubham-shahh yes please. Can you upload it. I am very interested to see how you managed to make it work with Deepstream |
I have a python edition, currently I am working on a C++ version as well, shall I PR a python version? |
Yes, you can PR the python version |
@shubham-shahh you pull requested the python version? |
not yet, @nwesem should create a new branch for the python version, meanwhile, I'll commit the project to my account. |
Yeah. That is also okay, you can commit it to your account whilest we are waiting for him to open new branch |
I'll complete it by this weekend |
Alright, thank you |
hey @shubham-shahh, cool! Thanks for contributing to this project! I am looking forward to see your implementation. I added you as a collaborator on the project, please add your code to a branch called python-develop and I will check it out and merge it if everything works as expected. Currently I am pretty busy with work, but I will take the time to test your implementation asap. |
Hey, I hope you are doing fine, thanks for the branch I'll submit my work by this weekend. |
Hello @shubham-shahh . Great job doing deepstream implementation. So far i tried the python implementation and it is working perfect and thank you. I am currently testing the cpp implementation version even tho it is taking long for testing the sample app and i am not sure why. But i have a question, is there a way to implement the recognition where faces in video files are compared to saved images in the folder and display the name of the person instead of |
Hello, did you follow the guide step by step? was there any issue at any step? and thanks for testing. and about your question, I will implement that functionality this weekend if possible but if you want to implement it by yourself i can tell you the approach which you can follow. |
for python implementation, everything works as expected. But for C++ implementation, i have to first test the test sample, so it seems it stuck here |
Is this the sample App? or the one i included in the repo? whats your video source .mp4 or .h264? |
sample_720p.mp4, as mentioned from your instructions |
and is it the sample app present already or you are using the repo app? |
yes, available since i installed deepstream. it must be tested on that sample? Or i can test on another .mp4 file? |
The one that is already presemt works with .h264 files only and the one in the repo works with mp4 files and rtsp streams |
So which means when i am doing testing c++ implementation. i do this |
right |
Perfect. Now i am able to run C++ implementation successfully and detecting faces as it should. Sometimes misses face that are out of focus.( probably due to resolution/quality of the video) , also if i noticed that when testing on .mp4 or longer video, there is no quiting option, so i have to wait to wait for video to finish so that i quit the app. |
Also if it is possible, could you show me how i can implement the function that the name of face owner is displayed please? Thank you |
Did you create the pickle file with list of embeddings? |
Yes, I finished it. |
Do i have to run |
now all you have to do is compare the embeddings. |
The problem is how do i do that? |
Do i use this? |
not netessary, as it uses MTCNN for first stage |
This this tutorial covers that |
Mhm, it can be applied same way to the Deepstream facenet app? |
Yes, the embeddings part. |
Amd what about the comparing part? |
It briefly explains the comparing part as well. |
It work only with python implementation. Is there a way to make it work with CPP implementation? |
In python implementation, which part of code that does output those vectors for face features extracted? |
The logic will remain the same |
|
I know that is the python code responsible for all facenet actions. I wanted to know which line in that file, that is outputing/producing those vector(embeddings). That will be very helpful |
Hi, the link mentioned above is the permalink to that line. |
How do i count count avg mean and avg std for embeddings? How do i calculTe avg mean avg std from these info? |
@shubham-shahh I managed to be able to predict names of the people in the video correctly. But names are displayed in the terminal but not around the bbox, how can i achieve that? |
Hi, you need to update Deepstream's bbox function. |
You mean in nvdsparsebbox_Yolo.cpp? |
No, if I am not mistaken that is for the bbox from the pgie, so until we get the pgie we don't have the name of the person. |
So how to i change the bbox function? I used Python implementation |
one approach I would use is, to draw on the stream after sgie gives you the name. so with the help of OpenCV, you can draw the box and name of the person. |
Which means i have to write a new code block for this |
Depends on the approach |
Okay, now everything is working fine. But one more question, how can i calculate the value of |
I am not sure about that, you can find info on deepstream forums. |
Is there a way i can deploy using Nvidia Deepstream ? Or create Deepstream app from this?
The text was updated successfully, but these errors were encountered: