Comments (3)
Does this happen with other images as well?
from facelib.
Does this happen with other images as well?
no, only with this and few more
from facelib.
Printing faces.shape
and getting 0 led me to conclude that the problem is with the face detector and not age or gender detection.
The image is very low quality, so the face detector model cannot find any faces on it.
simple solution is
faces, boxes, scores, landmarks = face_detector.detect_align(img)
if len(faces.shape) == 1:
print("the model can't find any faces")
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
- 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
- Error in insightface HOT 6
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.