-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
推理跑不起来,这是什么原因呢? #31
Comments
python inference.py During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): (anytext) C:\Users\sunny\Documents\AnyText> |
@tyxsspa 请问是什么原因呢?接下来如何做? |
在Windows上,系统的默认代码页通常设置为'cp1252'(Windows-1252),这是一种字符编码,不完全支持所有Unicode字符。
或者可能
? |
感谢,按照这个做了,依然报错,运行不起来…… |
同样的错误 |
(anytext) C:\Users\sunny\Documents\AnyText>python inference.py
2024-01-04 18:24:07,722 - modelscope - INFO - PyTorch version 2.1.2+cu121 Found.
2024-01-04 18:24:07,724 - modelscope - INFO - TensorFlow version 2.13.0 Found.
2024-01-04 18:24:07,724 - modelscope - INFO - Loading ast index from C:\Users\sunny.cache\modelscope\ast_indexer
2024-01-04 18:24:07,772 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 25145d097e3652b81ca7902ed6ed4218 and a total number of 946 components indexed
2024-01-04 18:24:08,928 - modelscope - INFO - Use user-specified model revision: v1.1.0
2024-01-04 18:24:11,285 - modelscope - WARNING - ('PIPELINES', 'my-anytext-task', 'my-custom-pipeline') not found in ast index file
2024-01-04 18:24:11,286 - modelscope - INFO - initiate model from C:\Users\sunny.cache\modelscope\hub\damo\cv_anytext_text_generation_editing
2024-01-04 18:24:11,286 - modelscope - INFO - initiate model from location C:\Users\sunny.cache\modelscope\hub\damo\cv_anytext_text_generation_editing.
2024-01-04 18:24:11,287 - modelscope - INFO - initialize model from C:\Users\sunny.cache\modelscope\hub\damo\cv_anytext_text_generation_editing
2024-01-04 18:24:11,289 - modelscope - WARNING - ('MODELS', 'my-anytext-task', 'my-custom-model') not found in ast index file
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
The text was updated successfully, but these errors were encountered: