Closed frak0d closed 2 years ago
Please make sure you're:
Ok, in your command (clang++ [...] -std=c++20 [...]
), the C++ version seems ok. So please try updating FunctionalPlus, and let know if that helped. :slightly_smiling_face:
Both fplus and frugally-deep, are up to date.
-I../libs/fplus/fplus/include
might be wrong (double fplus
). But I of course don't know where you have your files. :slightly_smiling_face:
I suggest you try to minimize the problem, by throwing everything out which is not essential to reproducing this compilation error, e.g., your custom code, and other libs like OpenCV, etc.
And then maybe try to compile manually, i.e., without ninja
, also for example with -std=c++14
instead of -std=c++20
, or with g++
instead of clang
.
I guess somewhere on this path, you'll find the cause.
ok my bad. i was using wrong repo for functional plus. it was some outdated fork that came up in google search.
i used a premade .h5 model from teachablemachine and converted it to .json in colaboratory
When trying to use it with fdeep :
Loading json ... done. elapsed time: 0.008460 s
[json.exception.type_error.302] type must be string, but is null
here is the model i used : test_model.zip
Please make sure you are using the latest versions of TensorFlow and Keras, and then re-run the convert_model call. 🙂
@0xB00B Ah, I just see you tried to load some arbitrary .json
file using frugally-deep. This won't work. It has to be a .json
file that was created using convert_model.py
from frugally-deep/keras_export
(as described in the docs).
oh! thanks, it works now. I had mistaken .json file as tensorflow.js model, since both use json.
fdeep really removes the pain of linking to tensorflow. thanks for this project again.
What am i doing wrong ?