error ValueError: could not convert string to float: '155,89'

4035
1
04-14-2020 08:04 PM
mavicdospro
New Contributor

Estoy entrenando un modelo, Estoy utilizando tensorflow para ello estoy utilizando convert_to_pascal.ipynb

pero me sale este error al realizar la conversión alguien me podría ayudar por favor

 

Porque sale ese error (

ValueError: could not convert string to float: '155,89'

)

0 Kudos
1 Reply
CanserinaKurnia
Esri Regular Contributor

Hi Mavic,

It seems that ‘155,89’ has a comma instead of a period as the decimal separator which is why float conversion won’t work.

I’m assuming obj[‘bndbox’][‘xmin’] is read from a file. The best way is to modify that file, but a quick fix would be using obj[‘bndbox’][‘xmin’] .replace(",", ".")

0 Kudos