-
Hello folks, The model itself is a common predict/classifier model and uses a float array filled with a sound signal. It seems to be a less common use case but would be really thankful if I someone can assist me with the set-up. Cheers, Kevin |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@kliebhart Here is Image classification example for TFLite: https://github.com/deepjavalibrary/djl/blob/master/engines/tflite/tflite-engine/src/test/java/ai/djl/tflite/engine/TfLiteTest.java#L41-L52 You can see it's almost exactly the same as using other engine. In your case, you need create your own |
Beta Was this translation helpful? Give feedback.
@kliebhart
Here is Image classification example for TFLite: https://github.com/deepjavalibrary/djl/blob/master/engines/tflite/tflite-engine/src/test/java/ai/djl/tflite/engine/TfLiteTest.java#L41-L52
You can see it's almost exactly the same as using other engine.
In your case, you need create your own
Translator<byte[], Classifications>
class and hand pre/post processing to match your model.