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

keras_contrib #16

Open
Alukassh opened this issue Aug 14, 2019 · 3 comments
Open

keras_contrib #16

Alukassh opened this issue Aug 14, 2019 · 3 comments

Comments

@Alukassh
Copy link

No description provided.

@Alukassh Alukassh reopened this Aug 14, 2019
@Alukassh
Copy link
Author

I just follow the command "pip install git+https://www.github.com/farizrahman4u/keras-contrib.git" to install keras_contrib successfully, but can't import InstanceNormalization yet. Does anyone meet similar problem or have any suggesstion? Thanks in advance!

@mha-py
Copy link

mha-py commented Aug 17, 2019

I solved it with by replacing
from keras_contrib.layers.normalization import InstanceNormalization, InputSpec
by

from keras_contrib.layers.normalization.instancenormalization import InstanceNormalization
from keras.layers import InputSpec

but im not sure yet if inputspec is imported the right way

@kpagels
Copy link
Contributor

kpagels commented Oct 24, 2019

I just follow the command "pip install git+https://www.github.com/farizrahman4u/keras-contrib.git" to install keras_contrib successfully, but can't import InstanceNormalization yet. Does anyone meet similar problem or have any suggesstion? Thanks in advance!

I did the same as @mha-py by replacing it with the following:

from tensorflow.python.keras.layers import InputSpec
from keras_contrib.layers.normalization.instancenormalization import InstanceNormalization

But it seems like you solved it @Alukassh ?

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

3 participants