-
Hi @kahst , I have trained a custom classifier from BirdNET, and it seems to perform reasonably well. I'd like to import this model into Chirpity, which depends on a TFJS model. I've saved my classifier as a "raven" model, but as I think we discussed, because of the custom layers in BirdNET, it's not straightforward to get tensorflowjs_converter to run. I was hoping you might share the technique you used to convert the TFJS model in this repo, since I have had no success to date - and I have tried all the conversion option permutations I can think of! Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Ah, yes, that's tricky. You need the original Keras model. Can you try the following workflow (using TF 2.15)?
Can you give it a try? Let me know if it worked. Best, |
Beta Was this translation helpful? Give feedback.
-
@kahst - an update. I have followed your suggestions here and can report that the conversion completes without error (yay!), and I have hacked the custom model into a branch of Chirpity. I applied a tf.sigmoid() function to the logits this converted model produces. The results are similar to the tf.saved_model (raven) output but not as similar as I think they should be. This time, I don't think it is the sample rate issue I had before with the TFJS models. I'm not sure why yet, but will keep digging. |
Beta Was this translation helpful? Give feedback.
Ah, yes, that's tricky. You need the original Keras model.
Can you try the following workflow (using TF 2.15)?