savedModels for Spleeter (tf and tfjs)
If you want to convert the savedModel to tfjs anyways, you can follow the official guide here you should look at the SavedModel example
It is now possible to run a tf SavedModel in nodejs without conversion, see related blog post here.
See inference_saved_model.js for a working example of model load.
node inference_saved_model.js
modelInfo [ { tags: [ 'serve' ], signatureDefs: { serving_default: [Object] } } ]
tags [ 'serve' ]
signatureDefs {
serving_default: {
inputs: {
audio_id: [Object],
mix_spectrogram: [Object],
mix_stft: [Object],
waveform: [Object]
},
outputs: { accompaniment: [Object], audio_id: [Object], vocals: [Object] }
}
}
- add all available spleeter models
- add a working example of inference