--> config model
done
--> Loading model
/home/lix/.local/lib/python3.6/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
warnings.warn(message)
./checkpoint_2000.pth.tar ********************
WARNING: Token 'COMMENT' defined, but not used
WARNING: There is 1 unused token
done
--> Building model
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "rknn/base/acuitylib/provider/queue_provider.py", line 98, in rknn.base.acuitylib.provider.queue_provider.QueueProvider.run
File "rknn/base/acuitylib/provider/queue_provider.py", line 102, in rknn.base.acuitylib.provider.queue_provider.QueueProvider.run
File "rknn/base/acuitylib/provider/text_provider.py", line 46, in rknn.base.acuitylib.provider.text_provider.TextProvider.get_batch
File "rknn/base/acuitylib/provider/file_path_provider.py", line 104, in rknn.base.acuitylib.provider.file_path_provider.FilePathProvider._data_to_tensor
File "rknn/base/acuitylib/provider/base_provider.py", line 134, in rknn.base.acuitylib.provider.base_provider.BaseProvider._cast_data_type
ValueError: could not convert string to float: 'Printing'
E Catch exception when building RKNN model!
E Traceback (most recent call last):
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1292, in _do_call
E return fn(*args)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1277, in _run_fn
E options, feed_dict, fetch_list, target_list, run_metadata)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1367, in _call_tf_sessionrun
E run_metadata)
E tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
E [[{{node fifo_queue_Dequeue}} = QueueDequeueV2[component_types=[DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](fifo_queue)]]
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 737, in rknn.api.rknn_base.RKNNBase.build
E File "rknn/api/rknn_base.py", line 1644, in rknn.api.rknn_base.RKNNBase._quantize2
E File "rknn/base/RKNNlib/app/medusa/quantization.py", line 105, in rknn.base.RKNNlib.app.medusa.quantization.Quantization.run
E File "rknn/base/RKNNlib/app/medusa/quantization.py", line 44, in rknn.base.RKNNlib.app.medusa.quantization.Quantization._run_quantization
E File "rknn/base/RKNNlib/app/medusa/workspace.py", line 135, in rknn.base.RKNNlib.app.medusa.workspace.Workspace.run
E File "rknn/base/RKNNlib/app/medusa/workspace.py", line 116, in rknn.base.RKNNlib.app.medusa.workspace.Workspace._run_iteration
E File "rknn/base/RKNNlib/RKNN_session.py", line 30, in rknn.base.RKNNlib.RKNN_session.RKNNSession.run
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 887, in run
E run_metadata_ptr)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1110, in _run
E feed_dict_tensor, options, run_metadata)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1286, in _do_run
E run_metadata)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1308, in _do_call
E raise type(e)(node_def, op, message)
E tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
E [[{{node fifo_queue_Dequeue}} = QueueDequeueV2[component_types=[DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](fifo_queue)]]
E Caused by op 'fifo_queue_Dequeue', defined at:
E File "test.py", line 67, in <module>
E ret = rknn.build(dataset='./dataset.txt')
E File "/home/lix/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 238, in build
E ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile, batch_size=rknn_batch_size)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/ops/data_flow_ops.py", line 433, in dequeue
E self._queue_ref, self._dtypes, name=name)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 3735, in queue_dequeue_v2
E timeout_ms=timeout_ms, name=name)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
E op_def=op_def)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
E return func(*args, **kwargs)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3272, in create_op
E op_def=op_def)
E File "/home/lix/.local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1768, in __init__
E self._traceback = tf_stack.extract_stack()
E OutOfRangeError (see above for traceback): FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
E [[{{node fifo_queue_Dequeue}} = QueueDequeueV2[component_types=[DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](fifo_queue)]]
Build pytorch failed!