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

ValueError: Shapes are incompatible when saving and loading model using Subpixel #18

Open
adrigrillo opened this issue Oct 14, 2019 · 0 comments

Comments

@adrigrillo
Copy link

Generating the model that uses the Subpixel layer produces an error when the loading from a saved checkpoint. The problem is located in this line:

config['filters']= int(config['filters'] / self.r*self.r)

That can be solved just putting some parenthesis wrapping the r product like this:

config['filters']= int(config['filters'] / (self.r*self.r))

Additionally, using tensorflow 1.14 and tf.keras included in mentioned version the same method raises and error as the key rank does not exist in the Conv2D layer. The problematic line is:

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