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

Negative dimension size caused by subtracting 3 from 2 for '{{node max_pooling2d/MaxPool}} = MaxPool[T=DT_FLOAT, data_format="NHWC", ksize=[1, 3, 3, 1], padding="VALID", strides=[1, 2, 2, 1]](activation/Relu)' with input shapes: [?,2,112,64]. #25

Open
Lin-plax opened this issue Aug 6, 2020 · 15 comments

Comments

@Lin-plax
Copy link

Lin-plax commented Aug 6, 2020

I have run the train.py, but it show me that:
ValueError: Negative dimension size caused by subtracting 3 from 2 for '{{node max_pooling2d/MaxPool}} = MaxPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 3, 3, 1], padding="VALID", strides=[1, 2, 2, 1]' with input shapes: [?,2,112,64].

@andreimihale
Copy link

Did you find any solution for this?

@Usman-Ghani123
Copy link

Usman-Ghani123 commented Aug 17, 2020 via email

@andreimihale
Copy link

No it did not occur while i was using it

Can you give us some details about how did u set up the project? Versions of packages and stuffs like that?

@Usman-Ghani123
Copy link

Usman-Ghani123 commented Aug 17, 2020 via email

@andreimihale
Copy link

Python: 3.6.5 Tensorflow : 1.13.1 Tensorflow-gpu(if using gpu) : 1.13.1 Keras: 2.0.0

Do you had any problem on running this app with the specified versions?

@Usman-Ghani123
Copy link

Usman-Ghani123 commented Aug 18, 2020 via email

@andreimihale
Copy link

andreimihale commented Aug 27, 2020

Not at all. It worked completely fine

you can try for numpy ==1.16.1 version as well with all these requirement i send you formerly

do you have any idea if this project can run on Tensorflow 2+?
I try to run this project on a raspberry pi 4 and i don t have access to tensorflow-gpu on it

@Usman-Ghani123
Copy link

Usman-Ghani123 commented Aug 27, 2020 via email

@Usman-Ghani123
Copy link

Usman-Ghani123 commented Aug 27, 2020 via email

@andreimihale
Copy link

andreimihale commented Aug 27, 2020

It can only work on tensorflow 1.13.1

do you know any car recognition project that works on tensorflow 2+?

I need to run it on a raspberry pi for testing

@Usman-Ghani123
Copy link

No, I do not know any car recognition project with TensorFlow 2+

@Usman-Ghani123
Copy link

Which code are you trying to run?

@andreimihale
Copy link

i need only demo.py working on tensorflow 2+ ( the code that actually run the image )

@Usman-Ghani123
Copy link

If you want to use TensorFlow 2+ so then you have to do some code changes in the files according to the errors

@Usman-Ghani123
Copy link

In pull request, a person has suggested some changes to make this compatible with Tensorflow 2.x .

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