PocketFlow icon indicating copy to clipboard operation
PocketFlow copied to clipboard

issues:transfer the VOC dataset to tfrecords format

Open victorywkq opened this issue 7 years ago • 3 comments

when i will @transfer the VOC dataset to tfrecords format ,the issues are follows: how to solve the issues @@,tks. Exception in thread Thread-9: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "dataset/convert_tfrecords.py", line 286, in _process_image_files_batch writer = tf.python_io.TFRecordWriter(output_file) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/lib/io/tf_record.py", line 210, in init compat.as_bytes(path), options._as_record_writer_options(), status) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 528, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: ./datasets/tfrecords/train-00000-of-00016; No such file or directory

Exception in thread Thread-12: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "dataset/convert_tfrecords.py", line 286, in _process_image_files_batch writer = tf.python_io.TFRecordWriter(output_file) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/lib/io/tf_record.py", line 210, in init compat.as_bytes(path), options._as_record_writer_options(), status) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 528, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: ./datasets/tfrecords/train-00006-of-00016; No such file or directory

Exception in thread Thread-16: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "dataset/convert_tfrecords.py", line 286, in _process_image_files_batch writer = tf.python_io.TFRecordWriter(output_file) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/lib/io/tf_record.py", line 210, in init compat.as_bytes(path), options._as_record_writer_options(), status) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 528, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: ./datasets/tfrecords/train-00014-of-00016; No such file or directory

victorywkq avatar Jan 23 '19 01:01 victorywkq

add to the above issues: the command is copied from the readme doc :Run the following script to generate TFRecords. python dataset/convert_tfrecords.py --dataset_directory=VOCROOT --output_directory=./datasets/tfrecords the VOC dataset directory is :/PocketFlow-master/utils/external/ssd_tensorflow/VOCROOT

victorywkq avatar Jan 23 '19 01:01 victorywkq

make sure that the output_directory ./datasets/tfrecords exist

wangxianrui avatar Jan 23 '19 07:01 wangxianrui

@victorywkq Is your issue resolved after using @wangxianrui 's suggestion?

jiaxiang-wu avatar Jan 24 '19 02:01 jiaxiang-wu