You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a beginner with Towhee, and I am using the Towhee Built-in Pipeline to implement a video deduplication function. The source code can be found at here. I ran the following code, but encountered an error. How can I resolve it?
our main environment:
from pymilvus import connections, FieldSchema, CollectionSchema, DataType, Collection, utility
from towhee import AutoPipes, AutoConfig
import glob
connections.connect(host=IP, port='19530')
Collection('video_copy_detection').load()
search_conf = AutoConfig.load_config('video_copy_detection')
print(search_conf)
search_conf.collection = 'video_copy_detection'
search_conf.leveldb_path = 'url_vec.db'
search_conf.top_k = 5
search_conf.device = -1
search_pipe = AutoPipes.pipeline('video_copy_detection', search_conf)
path = glob.glob('./VCSL-demo/madongmei/*')
for i in path:
print(i)
result = search_pipe(i)
DataCollection(result).show()
del search_pipe
exception info :
Node-kvstorage/from-leveldb-6 runs failed, error msg: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 441, in load
return pickle.load(fid, **pickle_kwargs)
EOFError: Ran out of input
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 158, in _call
return True, self._op(*inputs), None
File "/home/ours/.towhee/operators/kvstorage/from-leveldb/versions/main/from_leveldb.py", line 22, in __call__
vals = np.load(vals, allow_pickle=True)
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 443, in load
raise pickle.UnpicklingError(
_pickle.UnpicklingError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle
, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 171, in process
self.process_step()
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/_map.py", line 63, in process_step
assert succ, msg
AssertionError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 441, in load
return pickle.load(fid, **pickle_kwargs)
EOFError: Ran out of input
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 158, in _call
return True, self._op(*inputs), None
File "/home/ours/.towhee/operators/kvstorage/from-leveldb/versions/main/from_leveldb.py", line 22, in __call__
vals = np.load(vals, allow_pickle=True)
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 443, in load
raise pickle.UnpicklingError(
_pickle.UnpicklingError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle
File "/home/ours/code/neimeng-python/milvusdb_test/tutorial/tutorial_5.py", line 23, in <module>
result = search_pipe(i)
RuntimeError: Node-kvstorage/from-leveldb-6 runs failed, error msg: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 441, in load
return pickle.load(fid, **pickle_kwargs)
EOFError: Ran out of input
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 158, in _call
return True, self._op(*inputs), None
File "/home/ours/.towhee/operators/kvstorage/from-leveldb/versions/main/from_leveldb.py", line 22, in __call__
vals = np.load(vals, allow_pickle=True)
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 443, in load
raise pickle.UnpicklingError(
_pickle.UnpicklingError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle
, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 171, in process
self.process_step()
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/_map.py", line 63, in process_step
assert succ, msg
AssertionError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle, Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 441, in load
return pickle.load(fid, **pickle_kwargs)
EOFError: Ran out of input
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/towhee/runtime/nodes/node.py", line 158, in _call
return True, self._op(*inputs), None
File "/home/ours/.towhee/operators/kvstorage/from-leveldb/versions/main/from_leveldb.py", line 22, in __call__
vals = np.load(vals, allow_pickle=True)
File "/home/ours/anaconda3/envs/ours_py3.10_milvus/lib/python3.10/site-packages/numpy/lib/npyio.py", line 443, in load
raise pickle.UnpicklingError(
_pickle.UnpicklingError: Failed to interpret file <_io.BytesIO object at 0x7f6164737600> as a pickle
The text was updated successfully, but these errors were encountered:
I am a beginner with Towhee, and I am using the Towhee Built-in Pipeline to implement a video deduplication function. The source code can be found at here. I ran the following code, but encountered an error. How can I resolve it?
our main environment:
exception info :
The text was updated successfully, but these errors were encountered: