Replies: 3 comments
-
|
尝试 服务化部署-手动部署 服务启动成功,接口响应成功。
预期目标/结果符合 PaddleOCR-VL在线测试响应结果 即使成功看到 docker compose 启动服务化部署方式所没有的 与 #17495 问题类似 对于 #17359 问题,需等官方将包镜像更新。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
使用 {"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/health":{"get":{"summary":" Check Health","operationId":"checkHealth","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIStudioNoResultResponse"}}}}}}},"/layout-parsing":{"post":{"summary":" Infer","operationId":"infer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIStudioResultResponse_InferResult_"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIStudioNoResultResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIStudioNoResultResponse"}}}}}}}},"components":{"schemas":{"AIStudioNoResultResponse":{"properties":{"logId":{"type":"string","title":"Logid"},"errorCode":{"type":"integer","title":"Errorcode"},"errorMsg":{"type":"string","title":"Errormsg"}},"type":"object","required":["logId","errorCode","errorMsg"],"title":"AIStudioNoResultResponse"},"AIStudioResultResponse_InferResult_":{"properties":{"logId":{"type":"string","title":"Logid"},"result":{"$ref":"#/components/schemas/InferResult"},"errorCode":{"type":"integer","const":0,"title":"Errorcode","default":0},"errorMsg":{"type":"string","const":"Success","title":"Errormsg","default":"Success"}},"type":"object","required":["logId","result"],"title":"AIStudioResultResponse[InferResult]"},"ImageInfo":{"properties":{"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"type":{"type":"string","const":"image","title":"Type","default":"image"}},"type":"object","required":["width","height"],"title":"ImageInfo"},"InferRequest":{"properties":{"file":{"type":"string","title":"File"},"fileType":{"anyOf":[{"type":"integer","enum":[0,1]},{"type":"null"}],"title":"Filetype"},"useDocOrientationClassify":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedocorientationclassify"},"useDocUnwarping":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedocunwarping"},"useLayoutDetection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Uselayoutdetection"},"useChartRecognition":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usechartrecognition"},"layoutThreshold":{"anyOf":[{"type":"number"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Layoutthreshold"},"layoutNms":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Layoutnms"},"layoutUnclipRatio":{"anyOf":[{"type":"number"},{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Layoutunclipratio"},"layoutMergeBboxesMode":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Layoutmergebboxesmode"},"promptLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promptlabel"},"formatBlockContent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Formatblockcontent"},"repetitionPenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repetitionpenalty"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"topP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topp"},"minPixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minpixels"},"maxPixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxpixels"},"maxNewTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxnewtokens"},"mergeLayoutBlocks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mergelayoutblocks"},"markdownIgnoreLabels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Markdownignorelabels"},"prettifyMarkdown":{"type":"boolean","title":"Prettifymarkdown","default":true},"showFormulaNumber":{"type":"boolean","title":"Showformulanumber","default":false},"visualize":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Visualize"}},"type":"object","required":["file"],"title":"InferRequest"},"InferResult":{"properties":{"layoutParsingResults":{"items":{"$ref":"#/components/schemas/LayoutParsingResult"},"type":"array","title":"Layoutparsingresults"},"dataInfo":{"oneOf":[{"$ref":"#/components/schemas/ImageInfo"},{"$ref":"#/components/schemas/PDFInfo"}],"title":"Datainfo","discriminator":{"propertyName":"type","mapping":{"image":"#/components/schemas/ImageInfo","pdf":"#/components/schemas/PDFInfo"}}}},"type":"object","required":["layoutParsingResults","dataInfo"],"title":"InferResult"},"LayoutParsingResult":{"properties":{"prunedResult":{"additionalProperties":true,"type":"object","title":"Prunedresult"},"markdown":{"$ref":"#/components/schemas/MarkdownData"},"outputImages":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Outputimages"},"inputImage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputimage"}},"type":"object","required":["prunedResult","markdown"],"title":"LayoutParsingResult"},"MarkdownData":{"properties":{"text":{"type":"string","title":"Text"},"images":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Images"}},"type":"object","required":["text"],"title":"MarkdownData"},"PDFInfo":{"properties":{"numPages":{"type":"integer","title":"Numpages"},"pages":{"items":{"$ref":"#/components/schemas/PDFPageInfo"},"type":"array","title":"Pages"},"type":{"type":"string","const":"pdf","title":"Type","default":"pdf"}},"type":"object","required":["numPages","pages"],"title":"PDFInfo"},"PDFPageInfo":{"properties":{"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["width","height"],"title":"PDFPageInfo"}}}}使用多语言调用服务示例成功获得处理与响应: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目标
MD或Json格式输出保存)。问题描述
\n等字符MD格式环境
部署方式
尝试过三种50系显卡方式:
其中,根据PaddleOCR官方指南尝试过:
测试
测试图片
图1-纯文本 - Base64大小:149.37 KiB

图2-含页眉、页脚、图表 - Base64大小:668.88 KiB

图3-英文文档测试 - Base64大小:380.57 KiB

测试方式
使用
curlOpenai API 协议,调用测试:提示词方面,尝试过
OCR:、Table Recognition:、Formula Recognition:、Chart Recognition:及自定义提示词五种。结果
图1-纯文本和图2-含页眉、页脚、图表均可识别,结果如下:图1-纯文本结果:无误图2-含页眉、页脚、图表结果:无误图3-英文文档测试结果:识别关系混乱补充描述
MD、Json格式,同时无处理过程数据,如demo中展示的关系识别高亮区域,及其它文件输出。use_chart_recognition需要设置为True,这需要如何正确传递?同时如何使用如下,设置识别导出路径?似乎要采用服务化部署方式,才能通过客户端完成该需求?其中包含⌈版面解析⌋ ⌈layoutParsingResults⌋ 和 ⌈MarkDown结果⌋,但目前测试50系显卡的 Docker Compose 部署,服务成功启动,但端点都是
404#17359Beta Was this translation helpful? Give feedback.
All reactions