automl icon indicating copy to clipboard operation
automl copied to clipboard

tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.

Open YangZhangMizzou opened this issue 6 years ago • 11 comments

get this error when training customized dataset: image

YangZhangMizzou avatar Mar 29 '20 07:03 YangZhangMizzou

Anyone who got a similar error before?

YangZhangMizzou avatar Mar 29 '20 07:03 YangZhangMizzou

Can you send the entire logs pls?

guruzen avatar Mar 29 '20 09:03 guruzen

Delete all the files in the output save_model directory folder and try running it again.

WonTaeYeon avatar Mar 29 '20 14:03 WonTaeYeon

Tried but still failed @WonTaeYeon

YangZhangMizzou avatar Mar 29 '20 15:03 YangZhangMizzou

records.txt Here is the entire logs

YangZhangMizzou avatar Mar 29 '20 15:03 YangZhangMizzou

records.txt Here is the entire logs

I met the same issue, and I have not solved it until now.

Guzaiwang avatar Mar 30 '20 07:03 Guzaiwang

Looks like there are some issues with your input files. How did you generate the tfrecord files?

Notably, you should use our create_coco_tfrecord tool, not the tensorflow models tools (that tool is a little out-dated).

see examples here: https://github.com/google/automl/tree/master/efficientdet#4-eval-on-coco-2017-val

mingxingtan avatar Mar 31 '20 07:03 mingxingtan

Looks like there are some issues with your input files. How did you generate the tfrecord files?

Notably, you should use our create_coco_tfrecord tool, not the tensorflow models tools (that tool is a little out-dated).

see examples here: https://github.com/google/automl/tree/master/efficientdet#4-eval-on-coco-2017-val

Thanks for your tutorials about how to generate the tfrecord. Meanwhile, your example just show how to generate the evaluation tfrecord. I use the provided create_coco_tfrecord code to create the training tfrecord on my own dataset, the same error still occurs.

Guzaiwang avatar Apr 01 '20 10:04 Guzaiwang

Looks like there are some issues with your input files. How did you generate the tfrecord files? Notably, you should use our create_coco_tfrecord tool, not the tensorflow models tools (that tool is a little out-dated). see examples here: https://github.com/google/automl/tree/master/efficientdet#4-eval-on-coco-2017-val

Thanks for your tutorials about how to generate the tfrecord. Meanwhile, your example just show how to generate the evaluation tfrecord. I use the provided create_coco_tfrecord code to create the training tfrecord on my own dataset, the same error still occurs.

YangZhangMizzou avatar Apr 01 '20 14:04 YangZhangMizzou

Looks like there are some issues with your input files. How did you generate the tfrecord files?

Notably, you should use our create_coco_tfrecord tool, not the tensorflow models tools (that tool is a little out-dated).

see examples here: https://github.com/google/automl/tree/master/efficientdet#4-eval-on-coco-2017-val

Thank you for your reply. Yes I think it is a input file problem. I use create_coco_tfrecord code with this command:

Looks like there are some issues with your input files. How did you generate the tfrecord files?

Notably, you should use our create_coco_tfrecord tool, not the tensorflow models tools (that tool is a little out-dated).

see examples here: https://github.com/google/automl/tree/master/efficientdet#4-eval-on-coco-2017-val

Thank you for your reply! I used your create_coco_tfrecord tool but still met this problem. It is my command and logs text.txt And my images are 512*512 png files. Here is my json file: train.zip Thank you!

YangZhangMizzou avatar Apr 01 '20 15:04 YangZhangMizzou

Hi @YangZhang-mizzou, for customized dataset, you might want to try create_pascaal_tfrecord.py to create the tfrecord and the eval json file.

Since it is a little similar to https://github.com/google/automl/issues/94 (a pinned issue), I am going to close this but keep #94 open. Feel free to add your comments there if you still have problems. Thanks!

mingxingtan avatar Apr 05 '20 19:04 mingxingtan