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 with pspnet.py #17

Closed
nhabili opened this issue Sep 18, 2017 · 5 comments
Closed

ValueError with pspnet.py #17

nhabili opened this issue Sep 18, 2017 · 5 comments

Comments

@nhabili
Copy link

nhabili commented Sep 18, 2017

Hi, when I run pspnet.py, I get a ValueError due to a negative dimension (output file with error
pspnet.txt
attached). I'm using virtualenv with python2.7, tensorflow version 1.3.0 and keras version 2.0.8. I'm also using the weight files that you've provided.

Any help would be greatly appreciated!

Thanks
Nariman

@jmtatsch
Copy link
Contributor

For me building the network still works.
can you print the input shapes in:
--> 177 prev_layer = AveragePooling2D(kernel, strides=strides)(prev_layer)

@nhabili
Copy link
Author

nhabili commented Sep 19, 2017

Shapes are:

kernel = (60, 60)
strides = (60, 60)
prev_layer = (?, 2048, 60, 1)

@jmtatsch
Copy link
Contributor

For me that is:

(60, 60)
(60, 60)
(?, 60, 60, 2048)

are you using theano dim ordering?

@Vladkryvoruchko
Copy link
Owner

Vladkryvoruchko commented Sep 19, 2017

For me everything also works.
Whats is steps to reproduce? Maybe you've done modifications to the code? Or maybe code stands as a lib and you're using wrong dimensions order.

@nhabili
Copy link
Author

nhabili commented Sep 20, 2017

The issue was that "image_data_format" in keras.json was set to "channels_first". I removed that line and I don't have that problem anymore. Thanks for your help.

@nhabili nhabili closed this as completed Sep 20, 2017
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