You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我要使用昆仑芯P800服务器训练计算机视觉模型,使用paddlepaddle-xpu(develop版)对MobileNetV2_x1_5模型进行训练,然后使用paddlepaddle(2.4.2)版本对模型进行转换为inference.pdmodel、inference.pdiparams、inference.pdiparams.info文件。因为paddlepaddle-xpu(develop版)转换出来会缺少inference.pdmodel文件。然后再使用paddleclas(2.6.0)依靠inference.pdmodel对图片在昆仑芯P800xpu服务器进行分类预测,结果报错“2025-04-09 20:35:44,799 - predict - INFO - ---------- Clas Prediction ------------- 2025-04-09 20:35:44,799 - predict - INFO - image_minio: {'bucket': 'sda-juicefs', 'endpoint': '10.98.80.62:19002', 'fileUploadSize': 5242880, 'secretKey': 'Y3taa_Ee60e', 'accessKey': 'sda', 'object_name': '/OTHER/2025-04-09/4f012f51f5cf42db9ed1d7e89fad7b8c.jpg'} 2025-04-09 20:35:44,799 - predict - INFO - Connecting to the Object Storage Service... 2025-04-09 20:35:44,799 - predict - INFO - Downloading the file... 2025-04-09 20:35:44,838 - predict - INFO - image_path: /app/data/OTHER/2025-04-09/4f012f51f5cf42db9ed1d7e89fad7b8c.jpg 2025-04-09 20:35:44,838 - predict - INFO - Start predict 2025-04-09 20:35:44,847 - predict - ERROR - 'ClsPredictor' object has no attribute 'use_xpu'”
代码:
from paddleclas.deploy.utils.predictor import Predictor
class ClsPredictor(Predictor):
也就是代码尝试访问 ClsPredictor 类的 use_xpu 属性,但该属性不存在,所以哪位大佬知道paddleclas支持昆仑芯P800xpu服务器吗?
Beta Was this translation helpful? Give feedback.
All reactions