OleehyO/TexTeller

Windows11下我在anaconda Navigator中配置了环境,使用CPU模式,在识别时出现报错,请问应该怎么解决

Closed this issue · 1 comments

QQ截图20240502103849

以下是报错信息:

RuntimeError: stack expects a non-empty TensorList
Traceback:
File "E:\anaconda\envs\TeXTeller310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "C:\Users\啦啦啦\TexTeller\src\web.py", line 180, in
TexTeller_result = inference(
File "C:\Users\啦啦啦\TexTeller\src\models\ocr_model\utils\inference.py", line 27, in inference
pixel_values = torch.stack(imgs)

image

327295655-ac48369a-c81f-4ad1-8293-c3824626e2d7

图片没有被读进去,所以传入了一个空的list。

可以把路径名(C:\Users\啦啦啦...)先改成全英文名的看看。