-
Notifications
You must be signed in to change notification settings - Fork 80
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
'Model' object has no attribute 'make_predict_function' #42
Comments
Which version FER are you using, what command did you run?
…On Sat, Mar 26, 2022 at 11:39 PM linguist89 ***@***.***> wrote:
I getting this error: 'Model' object has no attribute
'make_predict_function' and I took a look at the fer.py file in the repo.
Line 117 has the following code
self.__emotion_classifier.make_predict_function() but it doesn't seem like
there is a make_predict_function() anywhere so I think that is causing the
problem. Anyone else run into the same problem?
—
Reply to this email directly, view it on GitHub
<#42>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOLMZE3RTRQHA2EDRC5HLDVB6GZXANCNFSM5RXY56ZQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I installed via "pip install -U fer" so it should be the latest version img = cv2.imread("test.jpeg") |
Can you show the outputs of |
Package Version absl-py 1.0.0 |
I'm running it on a Docker container, so I'm not sure if that could be a problem. |
The FER version there is `21.0.6`. Maybe update the FER, the latest version
is 22.4.0.
…On Wed, Mar 30, 2022 at 9:41 PM linguist89 ***@***.***> wrote:
I'm running it on a Docker container, so I'm not sure if that could be a
problem.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOLMZAN7HEKY3WRI6KI6C3VCSU6RANCNFSM5RXY56ZQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I've updated now to 22.4.0 and the Docker container is running fine, but it still gives me the error: 'Model' object has no attribute 'make_predict_function' |
Can you share a minimal reproducible example? I can't reproduce this on my
side.
…On Thu, Mar 31, 2022 at 12:01 PM linguist89 ***@***.***> wrote:
I've updated now to 22.4.0 and the Docker container is running fine, but
it still gives me the error: 'Model' object has no attribute
'make_predict_function'
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOLMZHX3RRWY3DXKU3RSETVCVZWLANCNFSM5RXY56ZQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
it seems that the tensorflow.python.keras.engine.training.Model object has deprecated the "make_predict_function()" into "_make_predict_function()" (at least with tensorflow > 1.15.0) |
It seems to be rather the opposite, _make_predict_function is deprecated:
https://www.tensorflow.org/api_docs/python/tf/keras/Model - thus your
tensorflow version is somehow older. If you can share a minimal example I
can look closer at it.
…On Tue, Apr 5, 2022 at 6:22 PM nicolas gaude ***@***.***> wrote:
it seems that the tensorflow.python.keras.engine.training.Model object has
no deprecated the "make_predict_function()" into "_make_predict_function()"
(at least with tensorflow > 1.15.0)
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOLMZHHNTQMGXDSOKONCU3VDRSEPANCNFSM5RXY56ZQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I getting this error: 'Model' object has no attribute 'make_predict_function' and I took a look at the fer.py file in the repo. Line 117 has the following code self.__emotion_classifier.make_predict_function() but it doesn't seem like there is a make_predict_function() anywhere so I think that is causing the problem. Anyone else run into the same problem?
The text was updated successfully, but these errors were encountered: