【发布时间】:2020-11-06 06:20:36
【问题描述】:
【问题讨论】:
【问题讨论】:
不是一个理想的解决方案,但因为我的项目无论如何都需要 tflite,所以我最终使用了tflite-models-audioset-yamnet。在对convert.py 稍作修改后,我在我的颤振应用程序中使用了这个模型来获取频谱图数组。那时,我必须将浮点数转换为 uint8s,将其调整为图像形状,并使用ui.decodeImageFromPixels 来显示它。
(对 python 函数的更改——从 yamnet_frames_tflite_model 函数中删除了 predictions 并在加载权重或转换模型之前在 main 中调用 model.save('spectrogram.tflite'))
【讨论】: