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
<Logger debug_logger (INFO)> <Logger qa_logger (INFO)>
LOCAL DATA PATH: /home/semweb/service/qanything-python/QANY_DB/content
LOCAL_RERANK_REPO: netease-youdao/bce-reranker-base_v1
LOCAL_EMBED_REPO: netease-youdao/bce-embedding-base_v1
Traceback (most recent call last):
File "/home/semweb/service/qanything-python/my_ocr/my_ocr_img.py", line 15, in <module>
docs = loader.load_and_split(text_splitter=texts_splitter)
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/langchain_core/document_loaders/base.py", line 63, in load_and_split
docs = self.load()
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/langchain_core/document_loaders/base.py", line 29, in load
return list(self.lazy_load())
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/langchain_community/document_loaders/unstructured.py", line 88, in lazy_load
elements = self._get_elements()
File "/home/semweb/service/qanything-python/qanything_kernel/utils/loader/image_loader.py", line 47, in _get_elements
txt_file_path = image_ocr_txt(self.file_path)
File "/home/semweb/service/qanything-python/qanything_kernel/utils/loader/image_loader.py", line 38, in image_ocr_txt
result = self.ocr_engine(img_data)
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/paddleocr/tools/infer/predict_system.py", line 76, in __call__
dt_boxes, elapse = self.text_detector(img)
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/paddleocr/tools/infer/predict_det.py", line 229, in __call__
data = transform(data, self.preprocess_op)
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/paddleocr/ppocr/data/imaug/__init__.py", line 56, in transform
data = op(data)
File "/home/semweb/miniconda3/envs/qanything-python/lib/python3.10/site-packages/paddleocr/ppocr/data/imaug/operators.py", line 227, in __call__
src_h, src_w, _ = img.shape
AttributeError: 'dict' object has no attribute 'shape'
The text was updated successfully, but these errors were encountered:
版本:
代码:
错误信息:
The text was updated successfully, but these errors were encountered: