You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: