阿里云提示
{
"request": {
"url": "https://1828122772282890.cn-hangzhou.fc.aliyuncs.com/2016-08-15/services/ocr/functions",
"method": "POST",
"params": {
"headers": {
"x-fc-date": "Thu, 16 Dec 2021 11:31:31 GMT",
"x-fc-account-id": "1828122772282890",
"Content-Type": "application/json",
"Authorization": "FC TMP.3KgTaTfzDjYZLK1TLj37HfzwYBRcRw7gKH1S4bBmw516xraKXitQVj9eFrEeEYQYgSfezDbxAzPoV73UGxMSYEtP7LrPKF:iFBmx+QPNqVKhj7FyvMaf+9v8d4SMUX7NQwzc38c3FE="
},
"method": "POST",
"body": "{\"functionName\":\"ocr\",\"handler\":\"index.handler\",\"regionId\":\"cn-hangzhou\",\"runtime\":\"custom-container\",\"serviceName\":\"ocr\",\"initializer\":\"\",\"environmentVariables\":{},\"initializationTimeout\":3,\"instanceType\":\"e1\",\"memorySize\":3072,\"timeout\":60,\"customContainerConfig\":{\"args\":\"\",\"command\":\"[\\\"sh\\\",\\\"/PaddleOCR/start.sh\\\"]\",\"image\":\"registry.cn-hongkong.aliyuncs.com/llapi/ppocr:1.0\",\"accelerationType\":\"Default\"},\"caPort\":9000}",
"credentials": "same-origin",
"url": "https://1828122772282890.cn-hangzhou.fc.aliyuncs.com/2016-08-15/services/ocr/functions",
"\"\"": "undefined"
}
},
"response": {
"ErrorCode": "InvalidArgument",
"ErrorMessage": "Image and function must be in the same region when runtime is custom-container"
}
}
@易函数 您好大佬,想咨询两个问题一下,
就是部署 PaddleOCR 到本地,执行docker run -itd --name ppocr -p 9000:9000 ccr.ccs.tencentyun.com/llapi/pphubocr:1.0 /bin/bash -c "sh /PaddleOCR/start.sh"下载镜像后无法运行,一直报错,请问是什么问题呢?希望大佬能指教一下,感激不尽。
WARNING: AVX is not support on your machine. Hence, no_avx core will be imported, It has much worse preformance than avx core.
Error: AVX is not support on your machine, but you have installed paddlepaddle with avx core, you should reinstall paddlepaddle by 'python -m pip install -U paddlepaddle-gpu[==version] -f https://paddlepaddle.org.cn/whl/stable_noavx.html'
Traceback (most recent call last):
File "/usr/local/bin/hub", line 5, in <module>
from paddlehub.commands.utils import execute
File "/usr/local/lib/python3.7/site-packages/paddlehub/__init__.py", line 18, in <module>
import paddle
File "/usr/local/lib/python3.7/site-packages/paddle/__init__.py", line 29, in <module>
from .fluid import monkey_patch_variable
File "/usr/local/lib/python3.7/site-packages/paddle/fluid/__init__.py", line 35, in <module>
from . import framework
File "/usr/local/lib/python3.7/site-packages/paddle/fluid/framework.py", line 36, in <module>
from . import core
File "/usr/local/lib/python3.7/site-packages/paddle/fluid/core.py", line 349, in <module>
raise e
File "/usr/local/lib/python3.7/site-packages/paddle/fluid/core.py", line 308, in <module>
from .core_noavx import *
ModuleNotFoundError: No module named 'paddle.fluid.core_noavx'