mosdeo / lkydeepnn Goto Github PK
View Code? Open in Web Editor NEWLow dependency(C++11 STL only), good portability, header-only, deep neural networks for embedded
Low dependency(C++11 STL only), good portability, header-only, deep neural networks for embedded
Just as the title. I want to save a trained weight matrix for a direct use in future.
這樣才能把訓練後的成果重複利用,可以參考 @onnx 或 libDNN
@WiiWilson
LKYs-MacBook-Air:LKYDeepNN lky$ ./LKYDeepNN
Completed BackPropagation Layer InitializeWeights()
Completed BackPropagation Layer InitializeWeights()
Completed BackPropagation Layer InitializeWeights()
Completed BackPropagation Layer InitializeWeights()
Activation is SeLU.
Activation is Softmax.
LossFunction is CrossEntropy.
====== LKYDeepNN ======
Layer:
Input: 2
Hidden: 8-8-8-
Output: 2
Activation Function:
Hidden: SeLU
Output: Softmax
Loss Function:
Output: CrossEntropy
=======================
訓練開始
learningRate=0.008333
2019-10-10 18:03:20.550 LKYDeepNN[2436:117418] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff326dad63 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff685c9bd4 objc_exception_throw + 48
2 CoreFoundation 0x00007fff326f530c -[NSException raise] + 9
3 AppKit 0x00007fff2f8bf7b3 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
4 AppKit 0x00007fff2f8bcce1 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
5 AppKit 0x00007fff2f8bc753 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
6 AppKit 0x00007fff2fb50368 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 52
7 libopencv_highgui.4.1.dylib 0x00000001089db666 cvNamedWindow + 368
8 libopencv_highgui.4.1.dylib 0x00000001089db174 cvShowImage + 95
9 libopencv_highgui.4.1.dylib 0x00000001089d8c28 _ZN2cv6imshowERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE + 360
10 LKYDeepNN 0x0000000107a6fb87 _Z24Draw2DClassificationDataNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_6vectorINS6_IdNS3_IdEEEENS3_IS8_EEEEP9LKYDeepNNS5_dddd + 2183
11 LKYDeepNN 0x0000000107a71044 _Z12DrawTrainingP9LKYDeepNNiiRKNSt3__16vectorINS2_IdNS1_9allocatorIdEEEENS3_IS5_EEEE + 1108
12 LKYDeepNN 0x0000000107a772fc _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFvP9LKYDeepNNiiRKNS_6vectorINS9_IdNS_9allocatorIdEEEENSA_ISC_EEEEES8_iiSE_EEEEEPvSK_ + 60
13 libsystem_pthread.dylib 0x00007fff69b34d76 _pthread_start + 125
14 libsystem_pthread.dylib 0x00007fff69b315d7 thread_start + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
原因:以免父類別指標解構子類別物件時,遺漏應該釋放的記憶體。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.