用python初始化离线SDK失败
已有授权key,运行TestFaceApi.exe正常,可以检测到人脸
python代码如下
#coding=utf-8import ctypesfrom ctypes import *BaiduApi=CDLL("D:/face_detect/TestFaceApi/x64...
文本审核使用问题求助。
文本审核接口:https://aip.baidubce.com/rest/2.0/antispam/v2/spam
post发送 “text=啦啦啦啦啦”
返回 {"log_id": 2083528843056157409, "error_code": 282133, "erro...
用户购买预测竞赛
评价函数的logloss的转化率怎么提交,样例文件没有pi这列啊,直接提交最后的结果的话,这个评价函数的意义在哪里?
变量out使用在声明前报错
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/nn.py in reshape(x, shape, actual_shape, act, inplace, name)
6145 out, _ = cor...
paddlehub 使用ernie进行语义匹
例子来自https://aistudio.baidu.com/aistudio/projectdetail/705526?channelType=0&channel=0
除去batch_size,其他参数没有改变。设置batch_size=32,16的时候,提示***...
调用摄像头黑屏
prepare_data_for_verify 3I thisid:-1741405280
用paddleclas训练时出错了
ValueError: (InvalidArgument) If Attr(soft_label) == false, the axis dimension of Input(Label) should be 1.[Hint: Expected labels_dims[axis] == 1UL, but received labels_dims[axis]:...
没有办法使用conda
创建新环境的时候提示,以前都可以的,1.0算力卡的环境。 TypeError: __init__() got an unexpected keyword argument 'raise_on_status'
编辑器真不好用.
我不求做的多好,只希望有原生jupyter编辑器的功能.
代码提示老是打断我正常打字,Ubuntu也不兼容.
地址识别无法使用
已经安装aip-python-sdk-2.2.19,但
client.address(text)
提示:
AttributeError: 'AipNlp' object has no attribute 'address'
paddlehub调用模型一直报错
原代码:module = hub.Module(name="pyramidbox_lite_mobile_mask")
报错:module 'paddlehub' has no attribute 'Module'
调用client.personVerify出错
client.personVerify(image, idCardNumber, name1);TypeError: personVerify() missing 1 required positional argument: 'name'
这是什么原因?
使用 python 人像抠图
python 代码:
from aip import AipBodyAnalysis
APP_ID = '***';API_KEY = '***';SECRET_KEY = '***';
client = AipBodyAnalysis(APP_ID, API_KEY, SECRET_KEY)
def get_file_content(fileP...