AarohiSingla / VGG-16

11 stars 17 forks source link

UnimplementedError: Cast string to float is not supported. How to solve it? #1

Open neenu05 opened 3 years ago

neenu05 commented 3 years ago

Hi,

While running this [model.fit(train_x, train_y, epochs = 10, batch_size = 32)] line, i got below given error

Epoch 1/10

UnimplementedError Traceback (most recent call last)

in ----> 1 model.fit(train_x, train_y, epochs = 10, batch_size = 32) UnimplementedError: Cast string to float is not supported [[node categorical_crossentropy/Cast (defined at :4) ]] [Op:__inference_train_function_1763] Function call stack: train_function
AarohiSingla commented 3 years ago

Share your code

On Tue, 12 Jan 2021 at 2:40 PM, neenu05 notifications@github.com wrote:

Hi,

While running this [model.fit(train_x, train_y, epochs = 10, batch_size = 32)] line, i got below given error Epoch 1/10

UnimplementedError Traceback (most recent call last) in ----> 1 model.fit(train_x, train_y, epochs = 10, batch_size = 32)

UnimplementedError: Cast string to float is not supported [[node categorical_crossentropy/Cast (defined at :4) ]] [Op:__inference_train_function_1763]

Function call stack: train_function

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/VGG-16/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJ7RWQ3GNVSDCGXVAM5MN3SZQGWVANCNFSM4V64IAAA .

neenu05 commented 3 years ago

i have attached the code in mail.

On Tue, Jan 12, 2021 at 3:40 PM Aarohi Singla notifications@github.com wrote:

Share your code

On Tue, 12 Jan 2021 at 2:40 PM, neenu05 notifications@github.com wrote:

Hi,

While running this [model.fit(train_x, train_y, epochs = 10, batch_size = 32)] line, i got below given error Epoch 1/10

UnimplementedError Traceback (most recent call last) in ----> 1 model.fit(train_x, train_y, epochs = 10, batch_size = 32)

UnimplementedError: Cast string to float is not supported [[node categorical_crossentropy/Cast (defined at :4) ]] [Op:__inference_train_function_1763]

Function call stack: train_function

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/VGG-16/issues/1, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOJ7RWQ3GNVSDCGXVAM5MN3SZQGWVANCNFSM4V64IAAA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/VGG-16/issues/1#issuecomment-758551338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKK3BYKD4ZB6SAHF4S7WCVLSZQN3BANCNFSM4V64IAAA .

--

Regards, Neenu E S Mob: +91-9496644562

AarohiSingla commented 3 years ago

Hi, I didn't receive the code. Please send that python file

On Wed, Jan 13, 2021 at 10:37 AM neenu05 notifications@github.com wrote:

i have attached the code in mail.

On Tue, Jan 12, 2021 at 3:40 PM Aarohi Singla notifications@github.com wrote:

Share your code

On Tue, 12 Jan 2021 at 2:40 PM, neenu05 notifications@github.com wrote:

Hi,

While running this [model.fit(train_x, train_y, epochs = 10, batch_size = 32)] line, i got below given error Epoch 1/10

UnimplementedError Traceback (most recent call last) in ----> 1 model.fit(train_x, train_y, epochs = 10, batch_size = 32)

UnimplementedError: Cast string to float is not supported [[node categorical_crossentropy/Cast (defined at :4) ]] [Op:__inference_train_function_1763]

Function call stack: train_function

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/VGG-16/issues/1, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AOJ7RWQ3GNVSDCGXVAM5MN3SZQGWVANCNFSM4V64IAAA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/AarohiSingla/VGG-16/issues/1#issuecomment-758551338 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AKK3BYKD4ZB6SAHF4S7WCVLSZQN3BANCNFSM4V64IAAA

.

--

Regards, Neenu E S Mob: +91-9496644562

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AarohiSingla/VGG-16/issues/1#issuecomment-759208426, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJ7RWTRWDJGVNMYRUOCFDDSZUTAVANCNFSM4V64IAAA .

AdityaSneh commented 2 years ago

hi i'm getting the same error [model.fit(train_x, train_y, epochs = 10, batch_size = 32)]

Rahulsingh912 commented 8 months ago

maam plz give the solution here so that everyone can take the benefit. i also faces the same problem after implement your code

Ankitdef commented 6 months ago

please share full code so that i can check why you are getting this error