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

No face was found in this image #49

Open
kenmaxnejp opened this issue Jan 9, 2023 · 2 comments
Open

No face was found in this image #49

kenmaxnejp opened this issue Jan 9, 2023 · 2 comments

Comments

@kenmaxnejp
Copy link

Dear all,
NextFace complained about cannot find any face in the image. I tried to save the image as jpg or png but it didn't work. I even tried to
use your image in Github but without any luck. Sorry it looks like a stupid question but I just don't know how to solve it.

(faceNext) C:\Users\kenmax\NextFace>python optimizer.py --input c:\Users\kenmax --output c:\Users\kenmax\hikari
loading optim config from: ./optimConfig.ini
Loading Basel Face Model 2017 from ./baselMorphableModel/morphableModel-2017.pickle...
loading mesh normals...
loading uv parametrization...
loading landmarks association file...
creating sampler...
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
loading images from path: c:\Users\kenmax
loading image from path: c:\Users\kenmax/hikari03.png
[INFO] resizing input image to fit: 256 px resolution...
detecting landmarks using: mediapipe
Traceback (most recent call last):
File "optimizer.py", line 491, in
doStep3= doStep3)
File "optimizer.py", line 420, in run
self.setImage(imagePathOrDir, sharedIdentity)
File "optimizer.py", line 128, in setImage
landmarks = self.landmarksDetector.detect(self.inputImage.tensor)
File "C:\Users\kenmax\NextFace\landmarksmediapipe.py", line 51, in detect
land = self._detect((images[i].detach().cpu().numpy() * 255.0).astype('uint8'))
File "C:\Users\kenmax\NextFace\landmarksmediapipe.py", line 71, in _detect
raise RuntimeError('No face was found in this image')
RuntimeError: No face was found in this image

(faceNext) C:\Users\kenmax\NextFace>

@abdallahdib
Copy link
Owner

that means that the face detector failed to detect a face in the image. in such case, nextface cannot run. u may want to try with other images

@ggxxii
Copy link

ggxxii commented Jul 25, 2024

that means that the face detector failed to detect a face in the image. in such case, nextface cannot run. u may want to try with other images

I've tried your provided images, but encounter the same issue. I'm using Fan detection.

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

3 participants