Comments (11)
could anyone tell me why my questions had nothing reply?
from ell.
Two separate questions here:
- performance
- 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.
@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.
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.
from ell.
@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.
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.
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.
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.
just waiting for ur good news.
from ell.
just waiting for ur good news.
from ell.
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)
- Is ELL applied to Azsure Sphere MCU? HOT 3
- Windows setup incomplete HOT 4
- errors while running cmake --build . --config Release command HOT 1
- Error Compiling ELL HOT 2
- OpenBLAS cannot be linked HOT 2
- onnx_import.py : AttributeError: 'NoneType' object has no attribute 'output_shapes' HOT 2
- cMake is not recognized as an internal or external command HOT 2
- import _model Import error:DLL load failed HOT 3
- F524 '...'.format(...) is missing argument(s) for placeholder(s): 1 HOT 2
- Issue with CMAKE_SOURCE_DIR in CMakeFiles.txt HOT 1
- Training an audio keyword spotter with PyTorch HOT 1
- Training an audio keyword spotter with PyTorch ELL HOT 2
- Segfault using make_dataset (issue with importlib) HOT 1
- 44 - ell-python-interface-test (Failed) HOT 17
- cmake configure failed with could not find TARGET _ELL_python HOT 2
- ctest error : model_test failed, common_test failed HOT 4
- error Importing a model from Open Neural Network in vgg.py file HOT 1
- Access denied HOT 1
- Question: Is ELL only for IoT Hub or IoT Edge on IoT central or can this be added using another IoT system
- Build fails (ubuntu20.04)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ell.