Car-Recognition icon indicating copy to clipboard operation
Car-Recognition copied to clipboard

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].

Open Lin-plax opened this issue 3 years ago • 15 comments

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].

Lin-plax avatar Aug 06 '20 12:08 Lin-plax

Did you find any solution for this?

andreimihale avatar Aug 16 '20 11:08 andreimihale

No it did not occur while i was using it

Sent from Outlookhttp://aka.ms/weboutlook


From: Alex Mihale [email protected] Sent: Sunday, August 16, 2020 4:18 PM To: foamliu/Car-Recognition [email protected] Cc: Subscribed [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

Did you find any solution for this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/foamliu/Car-Recognition/issues/25#issuecomment-674513954, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2V5MXHPCH572PCMMGEWL3SA66BBANCNFSM4PWQIIEQ.

Usman-Ghani123 avatar Aug 17 '20 08:08 Usman-Ghani123

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?

andreimihale avatar Aug 17 '20 09:08 andreimihale

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

Sent from Outlookhttp://aka.ms/weboutlook


From: Alex Mihale [email protected] Sent: Monday, August 17, 2020 2:16 PM To: foamliu/Car-Recognition [email protected] Cc: Usman-Ghani123 [email protected]; Comment [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/foamliu/Car-Recognition/issues/25#issuecomment-674763648, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2V5MQK6UPVNM6L7RGZCZDSBDYOHANCNFSM4PWQIIEQ.

Usman-Ghani123 avatar Aug 17 '20 13:08 Usman-Ghani123

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?

andreimihale avatar Aug 17 '20 14:08 andreimihale

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

Sent from Outlookhttp://aka.ms/weboutlook


From: Alex Mihale [email protected] Sent: Monday, August 17, 2020 7:49 PM To: foamliu/Car-Recognition [email protected] Cc: Usman-Ghani123 [email protected]; Comment [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/foamliu/Car-Recognition/issues/25#issuecomment-674927031, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2V5MRRYOG5PDDDBMLZ6YTSBE7QDANCNFSM4PWQIIEQ.

Usman-Ghani123 avatar Aug 18 '20 12:08 Usman-Ghani123

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

andreimihale avatar Aug 27 '20 07:08 andreimihale

No it can not work on tensorflow greater then 2.

Get Outlook for Androidhttps://aka.ms/ghei36


From: Alex Mihale [email protected] Sent: Thursday, August 27, 2020 12:17:27 PM To: foamliu/Car-Recognition [email protected] Cc: Syed Muhmmad Usman Ghani [email protected]; Comment [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

u can try f

do you have any idea if this project can run on Tensorflow 2+?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/foamliu/Car-Recognition/issues/25#issuecomment-681671096, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2V5MWPMGFYP6YQTICGV5DSCYCAPANCNFSM4PWQIIEQ.

Usman-Ghani123 avatar Aug 27 '20 08:08 Usman-Ghani123

It can only work on tensorflow 1.13.1

Get Outlook for Androidhttps://aka.ms/ghei36


From: Syed Muhammad Usman Ghani [email protected] Sent: Thursday, August 27, 2020 1:11:29 PM To: foamliu/Car-Recognition [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

No it can not work on tensorflow greater then 2.

Get Outlook for Androidhttps://aka.ms/ghei36


From: Alex Mihale [email protected] Sent: Thursday, August 27, 2020 12:17:27 PM To: foamliu/Car-Recognition [email protected] Cc: Syed Muhmmad Usman Ghani [email protected]; Comment [email protected] Subject: Re: [foamliu/Car-Recognition] 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 s...

u can try f

do you have any idea if this project can run on Tensorflow 2+?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/foamliu/Car-Recognition/issues/25#issuecomment-681671096, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO2V5MWPMGFYP6YQTICGV5DSCYCAPANCNFSM4PWQIIEQ.

Usman-Ghani123 avatar Aug 27 '20 08:08 Usman-Ghani123

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

andreimihale avatar Aug 27 '20 08:08 andreimihale

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

Usman-Ghani123 avatar Aug 27 '20 08:08 Usman-Ghani123

Which code are you trying to run?

Usman-Ghani123 avatar Aug 27 '20 08:08 Usman-Ghani123

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

andreimihale avatar Aug 27 '20 08:08 andreimihale

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 avatar Aug 27 '20 15:08 Usman-Ghani123

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

Usman-Ghani123 avatar Aug 27 '20 16:08 Usman-Ghani123