Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Train.py #11

Open
multipm opened this issue Apr 9, 2018 · 2 comments
Open

Error in Train.py #11

multipm opened this issue Apr 9, 2018 · 2 comments

Comments

@multipm
Copy link

multipm commented Apr 9, 2018

Hi, very thanks for your project and you effort !!
Do you have any idea, why train.py doesn't work. ? I have tensorflow 1.4.0.

restore and continue training!
2018-04-09 12:23:47.425063: W D:\dump\tf\tf1.4-1\tensorflow\core\framework\op_kernel.cc:1192] Invalid argument: Name: , Feature: file_name (data type: string) is required but could not be found.

2018-04-09 12:23:49.061344: W D:\dump\tf\tf1.4-1\tensorflow\core\framework\op_kernel.cc:1192] Invalid argument: Name: , Feature: file_name (data type: string) is required but could not be found.
Model saved in file: ./models\model.ckpt-0

Traceback (most recent call last):
File "train.py", line 145, in
log_dir=args.log_path, start_lr=args.learning_rate, wd=args.weight_decay, kp=args.keep_prob)
File "train.py", line 125, in run_training
coord.join(threads)
File "C:\Program Files\programovani\Python35\lib\site-packages\tensorflow\python\training\coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "C:\Program Files\programovani\Python35\lib\site-packages\six.py", line 693, in reraise
raise value
File "C:\Program Files\programovani\Python35\lib\site-packages\tensorflow\python\training\queue_runner_impl.py", line 238, in _run
enqueue_callable()
File "C:\Program Files\programovani\Python35\lib\site-packages\tensorflow\python\client\session.py", line 1231, in _single_operation_run
target_list_as_strings, status, None)
File "C:\Program Files\programovani\Python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Name: , Feature: file_name (data type: string) is required but could not be found.
[[Node: input/ParseSingleExample/ParseExample/ParseExample = ParseExample[Ndense=4, Nsparse=0, Tdense=[DT_INT64, DT_STRING, DT_INT64, DT_STRING], dense_shapes=[[], [], [], []], sparse_types=[], _device="/job:localhost/replica:0/task:0/device:CPU:0"](input/ParseSingleExample/ExpandDims, input/ParseSingleExample/ParseExample/ParseExample/names, input/ParseSingleExample/ParseExample/ParseExample/dense_keys_0, input/ParseSingleExample/ParseExample/ParseExample/dense_keys_1, input/ParseSingleExample/ParseExample/ParseExample/dense_keys_2, input/ParseSingleExample/ParseExample/ParseExample/dense_keys_3, input/ParseSingleExample/ParseExample/Const, input/ParseSingleExample/ParseExample/ParseExample/names, input/ParseSingleExample/ParseExample/Const, input/ParseSingleExample/ParseExample/ParseExample/names)]]

@BoyuanJiang
Copy link
Owner

It seems that you are running on windows, for the error tensorflow.python.framework.errors_impl.InvalidArgumentError: Name: , Feature: file_name (data type: string) is required but could not be found. I think that the tfrecords you make may some mistakes.
Run it on linux if possible.

@mason1002
Copy link

It seems that you are running on windows, for the error tensorflow.python.framework.errors_impl.InvalidArgumentError: Name: , Feature: file_name (data type: string) is required but could not be found. I think that the tfrecords you make may some mistakes.
Run it on linux if possible.

I met exactly the same issue, and I ran on linux...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants