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

question pull request #19

Open
kashimAstro opened this issue Mar 28, 2018 · 9 comments
Open

question pull request #19

kashimAstro opened this issue Mar 28, 2018 · 9 comments

Comments

@kashimAstro
Copy link

kashimAstro commented Mar 28, 2018

Hi @bakercp

I hope all is well.
I'm adding some examples to my fork, can it make sense to do a pull request?

for the moment only:
semantic segmentation and find cars.

https://github.com/kashimAstro/ofxDlib/tree/master/example_dlib_dnn_semantic_segmentation
https://github.com/kashimAstro/ofxDlib/tree/master/example_dlib_dnn_cars
https://github.com/kashimAstro/ofxDlib/tree/master/example_dlib_dnn_cars2

I'm working on an example for android and
the transport of an example for speech recognition,
but for the latter it will take a bit.

Ciao!

@kashimAstro
Copy link
Author

kashimAstro commented Mar 28, 2018

istantanea_2018-03-28_22-13-50
istantanea_2018-03-28_22-41-40
istantanea_2018-03-28_23-25-28

@bakercp
Copy link
Owner

bakercp commented Mar 28, 2018

Yeah! Absolutely pull request. For organizational purposes, I'm trying to keep anything prefixed with example_dlib_* to be pretty much a direct translation of the original dlib examples. I don't yet have a great system for more oF friendly examples (i.e. with better reusable packaging for nets etc like you're making and like I have for LeNet). I'd say propose a naming scheme and just make sure there is a good README with a format similar to what we've been trying to add to all oF examples (e.g. a screen shot, summary, expected output, etc). Thanks for the work on this!

@kashimAstro
Copy link
Author

I have more or less respected the prefix of the examples, for the creation of a custom network, I would like to have a kind of struct to generate all the layers dynamically, but I do not think this is simple.

now I take a look at LeNet.

@kashimAstro
Copy link
Author

yesterday night i pushed a pull request:
#20

but maybe I did something wrong, (sorry, i'm not very good with github) what am I doing wrong?
this is the result:

git

@kashimAstro
Copy link
Author

Hi @bakercp

I built an example for android, but this implies a variation of the addon_config.mk,
for the moment i pushed only the example for android-studio in my fork:

https://github.com/kashimAstro/ofxDlib/tree/master/example_android

I loaded on the gist a model of addon_config.mk, (try to take a look):
https://gist.github.com/kashimAstro/d10219bbe0b8667a8426880ad3180215

the precompiled libraries are also needed, i can also load those if you agree.

PS:
for some strange reason android-studio does not allow
me to compile examples with too many underscores,
for this reason the example is calling only example_android.

@kashimAstro
Copy link
Author

I am also preparing an example emscripten

@kashimAstro
Copy link
Author

ok, now we also have a working emscripten example:
https://github.com/kashimAstro/ofxDlib/tree/master/example_emscripten_dlib_face_detector

I have also modified addons_config.mk
adding emscripten and setting the path for static libraries:
https://gist.github.com/kashimAstro/d10219bbe0b8667a8426880ad3180215

I'd like to load static libraries for android* and emscripten

what do you think about it?
I can load on my fork in:

libs/dlib/lib/

  • libs/dlib/lib/android/arm64-v8a
  • libs/dlib/lib/android/armeabi
  • libs/dlib/lib/android/armeabi-v7a
  • libs/dlib/lib/android/mips
  • libs/dlib/lib/android/mips64
  • libs/dlib/lib/android/x86
  • libs/dlib/lib/android/x86_64

and

  • libs/dlib/lib/emscripten

and at this point i push addons_config.mk in my fork and then make a pull request..

emscripten:
webdlib

android:
androiddlib

Good day!

@bakercp
Copy link
Owner

bakercp commented Apr 17, 2018 via email

@kashimAstro
Copy link
Author

kashimAstro commented Apr 19, 2018

if you want to do a test with the precompiled libraries, you can download here:
http://kashimastro.ns0.it/ofxDlib_lib/ofxdlib_lib.zip

obviously you need the new addon_config.mk:
https://gist.github.com/kashimAstro/d10219bbe0b8667a8426880ad3180215

the linux64 folder contains a static CPU-only library

Ciao

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