pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

TypeError: ('Keyword argument not understood:', 'border_mode') #48

Open SwatikSahoo opened 2 years ago

SwatikSahoo commented 2 years ago

I get this error while running mnist_cnn_one_iteration.py. Kindly shed some clarity on how to remove this error

pplonski commented 2 years ago

It might depend on the Keras backend. The repo example was made for Keras with Theano backend.

upashu1 commented 2 years ago

i think this should be 'padding' when tensorflow is backend. I just converted my one keras image segmentation unet like network into c++, although i did only necessary work required for my network and didn't added another layers, but you can still see and change it according to your need - https://github.com/upashu1/keras2cpp_multithreading_image_segmentation.