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

darknetImageTest.js -> missing dimensions parameter, wrong length of detections #11

Closed
b-g opened this issue Mar 24, 2017 · 7 comments
Closed

Comments

@b-g
Copy link
Contributor

b-g commented Mar 24, 2017

If I run darknetImageTest.js I get the following output:

car: 53%
bicycle: 52%
dog: 56%
1327104 1327104 [ { x: 0.7353335022926331,
    y: 0.2186836153268814,
    w: 0.28237149119377136,
    h: 0.1671832948923111,
    prob: 0.5328023433685303,
    name: 'car' },
  ,
  { x: 0.28434550762176514,
    y: 0.6527453660964966,
    w: 0.2656731605529785,
    h: 0.570385754108429,
    prob: 0.5627787709236145,
    name: 'dog' } ] undefined

IMO there are two small issues:

  1. the dimensions parameter is undefined
  2. the length of the detections array is 2 but should be 3. "bicycle" was detected and is missing in detections.
@OrKoN
Copy link
Contributor

OrKoN commented Mar 24, 2017

@b-g do you use the latest version?

@b-g
Copy link
Contributor Author

b-g commented Mar 24, 2017

I think so ... I'm at:
66a8c67
and
OrKoN/darknet@21ada5d

@OrKoN
Copy link
Contributor

OrKoN commented Mar 24, 2017

@b-g did you re-build everything? It works fine for me

Loading weights from ./yolo.weights...Done!
region 
car: 53%
bicycle: 52%
dog: 56%
1327104 1327104 [ { x: 0.7353335022926331,
    y: 0.2186836153268814,
    w: 0.28237149119377136,
    h: 0.1671832948923111,
    prob: 0.5328023433685303,
    name: 'car' },
  { x: 0.42732158303260803,
    y: 0.48950856924057007,
    w: 0.5967314839363098,
    h: 0.5472637414932251,
    prob: 0.5157572031021118,
    name: 'bicycle' },
  { x: 0.28434550762176514,
    y: 0.6527453660964966,
    w: 0.2656731605529785,
    h: 0.570385754108429,
    prob: 0.5627787709236145,
    name: 'dog' } ] { width: 768, height: 576 }

@OrKoN
Copy link
Contributor

OrKoN commented Mar 24, 2017

The issue you see was fixed by this: #9

@b-g
Copy link
Contributor Author

b-g commented Mar 24, 2017

@OrKoN No :( How can I re-build everything?

@OrKoN
Copy link
Contributor

OrKoN commented Mar 24, 2017 via email

@b-g
Copy link
Contributor Author

b-g commented Mar 24, 2017

@OrKoN Thanks! That was easy :) npm install fixed it! Have a nice weekend!

@b-g b-g closed this as completed Mar 24, 2017
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

No branches or pull requests

2 participants