deyinliwork
deyinliwork
尝试关闭语言模型处的“使用客户端请求模式”
火山方舟兼容OpenAI的API格式,可以在聊天窗口使用,但无法通过“连通性检查”,可能的原因: 1、在连接性检查时特殊处理了“API Key”,而火山的key格式类似于“00000000-0000-0000-0000-000000000000” 2、使用gpt-4o-mini模型进行测试
@sdcb 你好: 想请教一下参数`labelPath`如何确定?PP-OCR[模型库中下载到的推理模型](https://paddleocr.bj.bcebos.com/PP-OCRv4/english/en_PP-OCRv4_rec_infer.tar)中并不存在label/dict文件,[训练模型同样如此](https://paddleocr.bj.bcebos.com/PP-OCRv4/english/en_PP-OCRv4_rec_train.tar)。 根据我目前了解的信息,[label/dict文件生成并存在于训练阶段](https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/model_train/recognition.html#14),且模型与label/dict文件成对应关系。 是否意味着:如果要使用自定义的OCR推理模型,则必须找到该模型最后一次被训练/微调时使用的label/dict文件? > use this: > > https://github.com/sdcb/PaddleSharp/blob/475ed956cf4da1b4bbfb09c6f0b8246e6703f6fb/src/Sdcb.PaddleOCR/Models/RecognizationModel.cs#L88
> https://github.com/PaddlePaddle/PaddleOCR/tree/main/ppocr/utils/dict @sdcb 感谢,我在它的[上级目录找到的`en_dict.txt`](https://github.com/PaddlePaddle/PaddleOCR/blob/main/ppocr/utils/dict/en_dict.txt)可以用于运行`en_PP-OCRv4_rec`模型。 与[本仓库`en_dict.txt`](https://github.com/sdcb/PaddleSharp/blob/master/src/Sdcb.PaddleOCR.Models.Shared/dicts/en_dict.txt)内容相同,且与[`LocalRecognizationMode.EnglishV4`](https://github.com/sdcb/PaddleSharp/blob/475ed956cf4da1b4bbfb09c6f0b8246e6703f6fb/src/Sdcb.PaddleOCR.Models.Local/LocalRecognizationModel.cs#L60)方案相同 [此目录下的`en_dict.txt`](https://github.com/PaddlePaddle/PaddleOCR/blob/main/ppocr/utils/en_dict.txt) 没有标点符号,识别时报错:`System.Exception:“Unable to GetLabelByIndex: index 93 out of range 63, OCR model or labels not matched?”`。 @n0099 感谢你的解答,模型在训练时及训练后与字典文件强绑定,推理时输出的是字符在训练时字典文件中的索引,因此需要正确的字典文件帮助将索引转为字符。
尝试让环境中的`uvicorn`版本为`0.18.1`: ```shell pip install uvicorn==0.18.1 ```
`https://api-iam.intercom.io/messenger/web/ping` Always return 403