Skip to content
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

Cannot run #1

Open
GXcells opened this issue Jan 3, 2024 · 5 comments
Open

Cannot run #1

GXcells opened this issue Jan 3, 2024 · 5 comments

Comments

@GXcells
Copy link

GXcells commented Jan 3, 2024

Hi, I really wanted to try this code but I cannot make it run.

If I run the app.py and I go to the adress given but I get only a page with "jO" written. ( I also get a windows defender warning that blocks python)

The main.py script does not seem to work. Nothing is happening when I run it.

Is there a way to run the script without using the app?

Thanks in advance

@GXcells
Copy link
Author

GXcells commented Jan 4, 2024

When trying main.py I get the following error
Traceback (most recent call last):
File "C:\Users\photogenic\Photogenic\main.py", line 419, in
main()
File "C:\Users\photogenic\Photogenic\main.py", line 382, in main
out = main_main(images)
File "C:\Users\photogenic\Photogenic\main.py", line 329, in main_main
snew = dlibSubjects(image, s)
File "C:\Users\photogenic\Photogenic\main.py", line 74, in dlibSubjects
File "C:\Users\photogenic\Photogenic\main.py", line 51, in face_detection_dlib
return faces[0]
IndexError

@karancode-singh
Copy link
Owner

For your app related question, please run using main.py.

Regarding indexError - are you trying with the sample images or feeding your own image? The reason for the error is that no faces were recognized. Please try running with sample images first to make sure that all configurations are in place and faces are indeed detected. Then you may try with your own images.

Also note that I worked on this project more than 5 years ago so I might not be able to help much if something doesn't work anymore.

@GXcells
Copy link
Author

GXcells commented Jan 7, 2024

Yes I used your sample images.
The problem comes from dlib. If I switch dlib to "False" then it works.

I have problem now with the face detector which fails to find all faces on most pictures that I use. I will try to implement resnet50 instead of the openCV face detection.

@karancode-singh
Copy link
Owner

Sorry, missed your comment. Did the use of resnet50 help? If yes, do you mind raising a PR with your changes for future users?

@GXcells
Copy link
Author

GXcells commented Mar 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants