Skip to content
New issue

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

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

Already on GitHub? # to your account

create_tf_record.py #16

Open
Powerfulboy opened this issue Aug 25, 2019 · 1 comment
Open

create_tf_record.py #16

Powerfulboy opened this issue Aug 25, 2019 · 1 comment

Comments

@Powerfulboy
Copy link

Traceback (most recent call last):
File "/home/z/tensorflow_models_learning-master/create_tf_record.py", line 303, in
train_nums=get_example_nums(train_record_output)
File "/home/z/tensorflow_models_learning-master/create_tf_record.py", line 39, in get_example_nums
for record in tf.python_io.tf_record_iterator(tf_records_filenames):
File "/home/z/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/tf_record.py", line 174, in tf_record_iterator
compat.as_bytes(path), 0, compat.as_bytes(compression_type), status)
File "/home/z/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: /home/z/tensorflow_models_learning-master/dataset/record/train224.tfrecords; No such file or directory

博主,总是出现这个错误是怎么了?

@zeqingjiang
Copy link

Traceback (most recent call last):
File "/home/z/tensorflow_models_learning-master/create_tf_record.py", line 303, in
train_nums=get_example_nums(train_record_output)
File "/home/z/tensorflow_models_learning-master/create_tf_record.py", line 39, in get_example_nums
for record in tf.python_io.tf_record_iterator(tf_records_filenames):
File "/home/z/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/tf_record.py", line 174, in tf_record_iterator
compat.as_bytes(path), 0, compat.as_bytes(compression_type), status)
File "/home/z/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: /home/z/tensorflow_models_learning-master/dataset/record/train224.tfrecords; No such file or directory

博主,总是出现这个错误是怎么了?

这个很简单,直接在dataset目录下,新建一个record的文件夹就行

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

No branches or pull requests

2 participants