8000 DEV-26376: Recode python layer to C++ in detection net by jes-bz · Pull Request #12 · curalate/caffe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

8000
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

Merged
merged 1 commit into from
Aug 31, 2017

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
0