Skip to content

Comments

DEV-26376: Recode python layer to C++ in detection net#12

Merged
jes-bz merged 1 commit intocuralate:masterfrom
jes-bz:DEV-26376
Aug 31, 2017
Merged

DEV-26376: Recode python layer to C++ in detection net#12
jes-bz merged 1 commit intocuralate:masterfrom
jes-bz:DEV-26376

Conversation

@jes-bz
Copy link

@jes-bz jes-bz commented Aug 29, 2017

Jira ticket [here] (https://curalate.atlassian.net/browse/DEV-26376)

This adds the needed proposal C++ layer to run the detection net in fullC++ mode at test time. This pr DOES NOT add the needed layers for training in full C++ mode.

The C++ proposal layer and its supporting util classes are sourced from here https://github.com/D-X-Y/caffe-faster-rcnn/tree/dev

TESTING

  • Compared the output of the detection net running in QA with the python layer and the output of the detection net running locally with the new c++ layer
DuGGcxpVIsDC2kzzND5X0VOCcIbzwEzVdl8vqSq7M7Q=

PYTHON
{
  "boxes": [
    {
      "category": "shoe",
      "prob": 0.9812438,
      "box": {
        "x1": 0.48601973,
        "y1": 0.51059943,
        "x2": 0.86403507,
        "y2": 0.81304824
      }
    },
    {
      "category": "shoe",
      "prob": 0.9716225,
      "box": {
        "x1": 0.20449561,
        "y1": 0.50950295,
        "x2": 0.54248905,
        "y2": 0.7940424
      }
    },
    {
      "category": "shoe",
      "prob": 0.6384584,
      "box": {
        "x1": 0.6145833,
        "y1": 0.7198465,
        "x2": 0.89007676,
        "y2": 0.80336255
      }
    }
  ]
}

C++
{
  "boxes": [
    {
      "category": "shoe",
      "prob": 0.9812438,
      "box": {
        "x1": 0.48601973,
        "y1": 0.51059943,
        "x2": 0.86403507,
        "y2": 0.81304824
      }
    },
    {
      "category": "shoe",
      "prob": 0.9716225,
      "box": {
        "x1": 0.20449561,
        "y1": 0.50950295,
        "x2": 0.54248905,
        "y2": 0.7940424
      }
    },
    {
      "category": "shoe",
      "prob": 0.6384584,
      "box": {
        "x1": 0.6145833,
        "y1": 0.7198465,
        "x2": 0.89007676,
        "y2": 0.80336255
      }
    }
  ]
}


7muX1hYeqARFZFYKZj5C6kHZTDrAvoZdaVL3ZjWhPck=

PYTHON
{
  "boxes": [
    {
      "category": "dress",
      "prob": 0.98020387,
      "box": {
        "x1": 0.41953385,
        "y1": 0.5104167,
        "x2": 0.55160934,
        "y2": 0.9464286
      }
    }
  ]
}

C++
{
  "boxes": [
    {
      "category": "dress",
      "prob": 0.98020387,
      "box": {
        "x1": 0.41953385,
        "y1": 0.5104167,
        "x2": 0.55160934,
        "y2": 0.9464286
      }
    }
  ]
}

MHeWBfyddnzUmxCuNkg7E4OLCrb33flT_FhSHbgjCP8=
PYTHON
{
  "boxes": [
    {
      "category": "shoe",
      "prob": 0.9539689,
      "box": {
        "x1": 0.14783002,
        "y1": 0.46383363,
        "x2": 0.7011754,
        "y2": 0.829566
      }
    },
    {
      "category": "shoe",
      "prob": 0.6624305,
      "box": {
        "x1": 0.5506329,
        "y1": 0.27893308,
        "x2": 0.89783,
        "y2": 0.5971971
      }
    }
  ]
}

C++
{
  "boxes": [
    {
      "category": "shoe",
      "prob": 0.9539689,
      "box": {
        "x1": 0.14783002,
        "y1": 0.46383363,
        "x2": 0.7011754,
        "y2": 0.829566
      }
    },
    {
      "category": "shoe",
      "prob": 0.6624305,
      "box": {
        "x1": 0.5506329,
        "y1": 0.27893308,
        "x2": 0.89783,
        "y2": 0.5971971
      }
    }
  ]
}

@jes-bz jes-bz force-pushed the DEV-26376 branch 4 times, most recently from 3483ee6 to aa56d73 Compare August 31, 2017 14:49
@mbassov
Copy link

mbassov commented Aug 31, 2017

Great job, thank you! 🚀

@jes-bz jes-bz merged commit 3dd04cc into curalate:master Aug 31, 2017
@jes-bz jes-bz deleted the DEV-26376 branch August 31, 2017 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants