Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete chain output in some cases #691

Closed
rguilmont opened this issue Jan 17, 2020 · 0 comments · Fixed by #692
Closed

Incomplete chain output in some cases #691

rguilmont opened this issue Jan 17, 2020 · 0 comments · Fixed by #692

Comments

@rguilmont
Copy link

rguilmont commented Jan 17, 2020

Hi !
I noticed an issue with /chain endpoint, with an incomplete output in the following case :

Given this request

{
    "ressource": "predict",
    "calls": [
        {
            "service": "face_detection",
            "data": [
                "https://www.vishopper.com/images/products/maxxmax/PE/10635_a-large-crowd-standing-and-listening-to-a-concert.jpg"
            ],
            "parameters": {
                "input": {
                    "connector": "image",
                    "keep_orig": true
                },
                "output": {
                    "confidence_threshold": 0.7,
                    "bbox": true
                },
                "mllib": {
                    "gpu": true,
                    "net": {
                        "test_batch_size": 1
                    }
                }
            },
            "parent_id": ""
        },
        {
            "id": "face_crop",
            "action": {
                "type": "crop"
            }
        },
        {
            "service": "age",
            "parameters": {
                "input": {
                    "connector": "image",
                    "keep_orig": true
                },
                "output": {
                    "best": 100,
                    "confidence_threshold": 0.001
                },
                "mllib": {
                    "gpu": true,
                    "net": {
                        "test_batch_size": 1
                    }
                }
            },
            "parent_id": "face_crop"
        }
    ]
}

if no faces are detected, then the final output will be like :

{"status":{"code":200,"msg":"OK"},"head":{"method":"/chain","time":1132.0},"body":{}}

But I expected at least to have the list of images in the response, like /predict ressource, even if there's in the end classes is empty, like for instance :

{
    "status": {
        "code": 200,
        "msg": "OK"
    },
    "head": {
        "method": "/chain",
        "time": 1132.0
    },
    "body": {
        "predictions": [
            {
                "uri": "https://www.vishopper.com/images/products/maxxmax/PE/10635_a-large-crowd-standing-and-listening-to-a-concert.jpg",
                "classes": [
                ]
            }
        ]
    }
}

Configuration

DeepDetect version : commit 2b61a52ce132202bf62283eccac1b40b48398dd8, on Docker ( ubuntu 16.04 based image )
GPU : Nvidia T4 with Cuda 10.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants