yuto3o / yolox

More Than YOLO(v3, v4, v3-tiny, v4-tiny)
150 stars 46 forks source link

train.py not working #4

Closed Merwanski closed 4 years ago

Merwanski commented 4 years ago

Hey,

I am currently having a problem with train.py

After some debugging I found that the error occurs at the following line:

model.fit(train_dataset, steps_per_epoch=len(train_dataset), epochs=warmup_epochs, callbacks=warmup_callback)

and the Error message obtained is the following: self._value = int(value) TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

any idea what is causing this? or how to investigate further where the error is comming from? Thank you in advance

Merwan

yuto3o commented 4 years ago

we use tensorflow 2.1 to test our code.

Merwanski commented 4 years ago

I am using TensorFlow 2.0.2 and I was able to solve the issue using the model.fit_generator instead of the model.fit

yuto3o commented 4 years ago

Such similar issue will help you. https://github.com/tensorflow/tensorflow/issues/38032

Merwanski commented 4 years ago

Thank you 🙂

Merwan


De : yuyang notifications@github.com Envoyé : jeudi 2 juillet 2020 09:04 À : yuto3o/yolox yolox@noreply.github.com Cc : Merwanski merwan.birem@hotmail.fr; Author author@noreply.github.com Objet : Re: [yuto3o/yolox] train.py not working (#4)

Such similar issue will help you. tensorflow/tensorflow#38032https://github.com/tensorflow/tensorflow/issues/38032

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/yuto3o/yolox/issues/4#issuecomment-652824930, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFKDFAJDLGAFKSALI6JVRXDRZQWRNANCNFSM4OILNSAA.