Closed ebgoldstein closed 2 years ago
My suspicion is that this is in fact a TF version mismatch... the camera uses TFlite runtime v2.5, and the new model was made with TF version 2.8..
there are two options here: 1) we use a newer version of the tflite runtime, which i think would neccesitate upgrading RPi OS. 2) we remember to make TF models using lower TF versions (the last model was made with TF version: 2.3.2 and it works on the camera)
ok, it was a mismatch issue... i resolved it by:
pip3 install --upgrade pip
python3 -m pip install tflite-runtime -U
new model now works (runtime is 2.9, model made with 2.8)
Now the old model does not work, which is expected..
this highlights the need to develop a solid distribution strategy for code + model updates... i.e., via distributing RPi images..
for now, i am going to remove the new tflite model from the repo, just to avoid confusion
done via https://github.com/UNCG-DAISY/Instagrain/commit/76bcb485fc238e639ee472148e5a067a042ed83b
The new tflite model is not working on the device..
https://github.com/UNCG-DAISY/Instagrain/blob/main/ML/src/TFL_models/SandCam_MNv2_QAT_notdense_aug22.tflite
I'm investigating.. might be a TF version issue..
in the meantime please use the old/original model