Giter Club home page Giter Club logo

Comments (11)

dirksy avatar dirksy commented on July 17, 2024

could anyone tell me why my questions had nothing reply?

from ell.

clovett avatar clovett commented on July 17, 2024

Two separate questions here:

  1. performance
  2. using tiny-yolo.cfg & tiny-yolo.weights

On performance, you should look into the compiling steps which will create a faster executable. The "darknetDemo.py" script is a model test loader that is not optimized the same way.

Using tiny-yolo will require updating the provided darknetImageNetLabels.txt. These labels match what is expected by darknet.cfg & darknet.weights which is probably why the self.labels[...] array index was out of range.

from ell.

dirksy avatar dirksy commented on July 17, 2024

@clovett thanks for ur reply.
i have modified some codes to use new labels just as i mentioned above like this

helper = mh.ModelHelper("darknetReference", ["data/tinyyolo.cfg", "data/tinyyolo.weights"], "data/coco.txt",(416,416))

watch param 'data/coco.txt'.
does the label name must be darknetImageNetLabels.txt? and the path must same as darknetDemo.py? i will try it soon.

btw.i have run it correctly on pi3 with darknet.cfg&weight.result is amazing and fantastic.ell just took 1300ms-1600ms for each cycle.very good


I have tested the probelm still exist.
I put tiny-yolo.cfg & tiny-yolo.weights in path where darknetDemo.py is.and update darknetImageNetLabels.txt with "coco.data" content which just contain just 80 classes.
the fatal error information is same.

from ell.

lovettchris avatar lovettchris commented on July 17, 2024

I'm glad you got the compiled code working on pi3. Congrats!

Yes it is not clear from which labels tiny-darknet uses , I had good luck with darknetImageNetLabels.txt. This is my modelHelper constructor:

helper = mh.ModelHelper(sys.argv, "darknetReference", ["yolo.cfg", "yolo.weights"], "darknetImageNetLabels.txt", inputHeightAndWidth=(224, 224))

Note that tiny-yolo is 224x224, not 416x416. But I think there's a bug in our compiler because the compiled version of this model doesn't work, so I filed a bug on that already.

image

from ell.

dirksy avatar dirksy commented on July 17, 2024

@lovettchris thanks for your confirmation.
I am not sure ' Note that tiny-yolo is 224x224, not 416x416. ' means. as dimension of image described in tiny-yolo.cfg&weights I used for training or testing is 416x416.what u means I can just modify the cfg file' image width&height params to 224x224? and then i am able to get correct result like your demo ? i am confused.


I checked your tiny-darknet link. that is not the files I used. so I update links above tiny-yolo.cfg&weights files. pls check it again thank you.

from ell.

lovettchris avatar lovettchris commented on July 17, 2024

Ah, yes, I think we are using different darknet models then, I'm using tiny.cfg with tiny.weights, as listed on this web page and that one is 216x216. You are using tiny-yolo.cfg. Where did you get that from? I could only find tiny-yolo-voc.weights on this other web page and that one is 416x416. I found a bug in our importer with this cfg file (missing if ("=" in param): on line 39 of darknet_to_ell.py).

The "predictions" output of that model is 13x13x125, which is 21,125 numbers, which is why the labels indices are out of range. These are not just labels, they are 13x13 sized grids containing a label bitmask and an offset inside each grid so that bounding boxes can be computed along with those labels. We do not have the python code in the demo yet to parse all this information.

Note also that we do not yet support the [region] layer, so the above layer output is probably not fully formed anyway. The region detection also makes these models much larger, which is why we are only using the classification models for now. Even the tiny-yolo-voc.weights is twice the size of the darknet.weights that we were using.

from ell.

dirksy avatar dirksy commented on July 17, 2024

thanks for your soon reply.
link of tiny-yolo.cfg :https://github.com/pjreddie/darknet/blob/master/cfg/tiny-yolo.cfg
and tiny-yolo.weights :https://pjreddie.com/media/files/tiny-yolo.weights
if you need ,I can send you label file.

all right.
1\your first bug is in my fist comment(your parser encounter a '#"),just clean '#' in cfg file ,that will be ok.
2\will the second problem be solved ? and when ?
3\will ELL suport the third problem ? and when ?

many thanks!

from ell.

lovettchris avatar lovettchris commented on July 17, 2024

Yeah, ok, that one matches the tiny-yolo-voc.weights that I was using, and it does contain the region layer. So (1) yes, scrubbing ### solves the problem. And (2) and (3) support for [region] layers is on our backlog, I'll bring up your request in our meeting tomorrow and see what we can do for prioritizing this request :-) In the meantime if you want to take a crack at it, then all pull requests are welcome :-)

from ell.

dirksy avatar dirksy commented on July 17, 2024

just waiting for ur good news.

from ell.

dirksy avatar dirksy commented on July 17, 2024

just waiting for ur good news.

from ell.

lovettchris avatar lovettchris commented on July 17, 2024

The issue is on our backlog, but it is not at the top of the list, so it will be a couple sprints out. We have some more pressing work ahead of this. In the meantime if you want to take a crack at it, then all pull requests are welcome :-)

from ell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.