Traceback (most recent call last):
File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 376, in
select() if not serial_map else sra.main(start=serial_map)
^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 372, in select
is_loop = sra.main(option)
^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 318, in main
map_instance = map_word(game_title)
^^^^^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\utils\map.py", line 22, in init
self.calculated = calculated(title)
^^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\utils\calculated.py", line 61, in init
self.number_ocr = CnOcr(det_model_name=det_model_name, rec_model_name="en_number_mobile_v2.0", det_root=det_root, rec_root=rec_root, cand_alphabet='0123456789.+%')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\cn_ocr.py", line 155, in init
self.rec_model = rec_cls(
^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\ppocr\pp_recognizer.py", line 87, in init
) = create_predictor(self._model_fp, 'rec', logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\ppocr\utility.py", line 168, in create_predictor
sess = ort.InferenceSession(model_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 432, in init
raise e
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 451, in _create_inferencesession
raise ValueError(
ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...)
![B~TSVSUB`T{N@(J{%03U_0](https://github.com/Starry-Wind/StarRailAssistant/assets/63657262/12d32bdf-8566-49c7-beee-b76b202a6d6e)
问题描述
Windows 11 家庭中文版22H2 代码不兼容系统导致无法正常运行
预期行为
运行
实际行为
代码报错
截图或录屏
Traceback (most recent call last): File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 376, in
select() if not serial_map else sra.main(start=serial_map)
^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 372, in select
is_loop = sra.main(option)
^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\Honkai_Star_Rail.py", line 318, in main
map_instance = map_word(game_title)
^^^^^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\utils\map.py", line 22, in init
self.calculated = calculated(title)
^^^^^^^^^^^^^^^^^
File "C:\handgame\StarRailAssistant-1.8.7\utils\calculated.py", line 61, in init
self.number_ocr = CnOcr(det_model_name=det_model_name, rec_model_name="en_number_mobile_v2.0", det_root=det_root, rec_root=rec_root, cand_alphabet='0123456789.+%')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\cn_ocr.py", line 155, in init
self.rec_model = rec_cls(
^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\ppocr\pp_recognizer.py", line 87, in init
) = create_predictor(self._model_fp, 'rec', logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\ppocr\utility.py", line 168, in create_predictor
sess = ort.InferenceSession(model_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 432, in init
raise e
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "C:\Users\daiwe\AppData\Local\Programs\Python\Python311\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 451, in _create_inferencesession
raise ValueError(
ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...)
![B~TSVSUB`T{N@(J{%03U_0](https://github.com/Starry-Wind/StarRailAssistant/assets/63657262/12d32bdf-8566-49c7-beee-b76b202a6d6e)
自动锄大地脚本版本
1.8.7
星穹铁道区服
国服
运行的客户端
PC
日志
日志文件.log