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

TypeError: __call__(): incompatible function arguments. The following argument types are supported: #12

Open
adriangondek opened this issue Jan 19, 2019 · 0 comments

Comments

@adriangondek
Copy link

Mac-Pro:facial-expression-recognition-using-cnn morewayshealthcareserver$ python3 predict.py --image img/adrian.jpg
loading pretrained model...
WARNING:tensorflow:From /usr/local/lib/python3.6/site-packages/tflearn/initializations.py:119: UniformUnitScaling.init (from tensorflow.python.ops.init_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.initializers.variance_scaling instead with distribution=uniform to get equivalent behavior.
WARNING:tensorflow:From /usr/local/lib/python3.6/site-packages/tflearn/objectives.py:66: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
Traceback (most recent call last):
File "predict.py", line 93, in
emotion, confidence = predict(image, model, shape_predictor)
File "predict.py", line 54, in predict
face_landmarks = np.array([get_landmarks(image, face_rects, shape_predictor)])
File "predict.py", line 39, in get_landmarks
return np.matrix([[p.x, p.y] for p in predictor(image, rects[0]).parts()])
TypeError: call(): incompatible function arguments. The following argument types are supported:
1. (self: dlib.shape_predictor, image: array, box: dlib.rectangle) -> dlib.full_object_detection

Invoked with: <dlib.shape_predictor object at 0x13da5b378>, None, rectangle(0,0,48,48)

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

1 participant