PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.59k stars 7.85k forks source link

How to serve two same category model using paddleHub. #10296

Closed Shadow-Alex closed 6 months ago

Shadow-Alex commented 1 year ago

Hi, I'm trying to serve the CDLA(Chinese) layout analysis model and the English one at the same time using paddleHub, is it possible? I'm able to get them up and running separately. Can I serve two same category models using paddleHub? If not, whats the right way out?

right now I'm trying to install them separately and start them using a config.json like this :

{
    "modules_info": {
        "structure_layout": {
            "init_args": {
                "version": "1.0.0",
                "use_gpu": true
            },
            "predict_args": {
            }
        },
        "structure_layout_cdla": {
            "init_args": {
                "version": "1.0.0",
                "use_gpu": true
            },
            "predict_args": {
            }
        }
    },
    "port": 8871,
    "use_multiprocess": false,
    "workers": 2
}
Shadow-Alex commented 1 year ago

Well it seems to work from the command line out, I see two kinds of post are returned in code 200, but I'm actually getting one model result. image

UserWangZz commented 6 months ago

This issue has not been updated for a long time. This issue is temporarily closed and can be reopened if necessary.