-
Notifications
You must be signed in to change notification settings - Fork 15
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
AttributeError: 'SpatialTransformer' object has no attribute 'is_placeholder' #1
Comments
Could you post your error output and your tensorflow & keras versions so I can take a look at your problem? |
Thank you very much for your early reply Error:
|
Thank you, I'd try to reproduce the error using newer versions of tf and keras to see if the problem is caused by compatibility issues. |
@hello2all May I know which versions did you use for this ? |
If I recall correctly, tensorflow 1.0 and keras 2.0 |
Thanks ! Please let me know if you have found any solution for this problem . |
@codeheadshopon There is a compatibility issue with the newest version of Keras. However, there is an easy fix to it: in
After deleting the line, my model was able to successfully compile with no error. This is tested with: |
Didn't work with me. |
In the newer versions of Keras, there has been an update on the method to build customized layer. Since I can not re-create the exact error you have been experiencing, I encourage you to look into the Keras documentation and modify the layer initialization accordingly. I hope this is helpful for you. |
I was trying to implement Spatial Transformer Layer in my Code but I am getting this error. Is there any solution for it ?
`
def locnet():
b = np.zeros((2, 3), dtype='float32')
b[0, 0] = 1
b[1, 1] = 1
W = np.zeros((64, 6), dtype='float32')
weights = [W, b.flatten()]
locnet = Sequential()
The text was updated successfully, but these errors were encountered: