Windows11下我在anaconda Navigator中配置了环境,使用CPU模式,在识别时出现报错,请问应该怎么解决
Closed this issue · 1 comments
hydrogen1222 commented
以下是报错信息:
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)
OleehyO commented