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

ValueError: Tensor Tensor("conv2d_4/BiasAdd:0", shape=(?, ?, ?, 4), dtype=float32) is not an element of this graph. #35

Open
abdullaholuk opened this issue Oct 27, 2021 · 1 comment

Comments

@abdullaholuk
Copy link

abdullaholuk commented Oct 27, 2021

Hi Sir,
First of all, thank you for this great package.

I am using this package in Google Cloud Functions with tensorflow==2.4.1. When I use FER with mtcnn=True, I get this error:

File "/workspace/system/face_emotion_model_api.py", line 66, in face_emotion_model
result = FER_MODEL.detect_emotions(image)
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/fer/fer.py", line 225, in detect_emotions
face_rectangles = self.find_faces(img, bgr=True)
File "/layers/google.python.pip/pip/lib/python3.7/site-packages/fer/fer.py", line 182, in find_faces
results = self._mtcnn.detect_faces(img)
ValueError: Tensor Tensor("conv2d_4/BiasAdd:0", shape=(?, ?, ?, 4), dtype=float32) is not an element of this graph.

Could you please help me?

@JustinShenk
Copy link
Owner

JustinShenk commented Oct 31, 2021 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