Closed jakerb closed 8 months ago
Hi @jakerb,
I think you will have to change the list of converter.target_spec.supported_ops
to only include tf.lite.OpsSet.SELECT_TF_OPS
, i.e. remove tf.lite.OpsSet.TFLITE_BUILTINS
, when exporting MB-MelGAN.
I forgot where I read this, but applying SELECT_TF_OPS
will slightly decrease the precision of the model, which leads to bad synthesized audio quality. It is still acceptable when applied to FastSpeech2, though.
Hope this fixes your issue!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Hi all, I've been training a custom voice model named alice. I'm new to Python never mind TensorFlowTTS so please critique anything below! I want to get it right.
The problem I'm facing is that the model I'm training sounds OK in training but on device doesn't sound anything like my model.
1. Training MB Melgan
I'm using the
train_multiband_melgan.py
script provided in examples running the following to produce 90K steps so far:2. Exporting MB Melgan to TFLite
When I decode the model using
decode_mb_melgan.py
the audio clips generated sound OK (some odd artefacts in the audio which I assume will get better as I continue training). I then export the model to TFLite using the following:This gives a
mb_melgan.tflite
andmb_melgan_quan.tflite
file.3. Testing MB Melgan in iOS
Using the iOS "FastSpeech2 and MB MelGAN models on iOS" demo app I build the XCode project (after downloading LJSpeech models from the model URL provided in the README.)
I replace the
mb_melgan.tflite
file with my own from step 3 of this issue and run that on the device. The playback on the device sounds just like the LJSpeech model only and nothing like the model I've trained.I am confident I'm doing something wrong in one or more of these steps (or all of them) so any help you can offer would be greatly appreciated, I've been working with this for the past few months and feeling like I'm hitting a brick wall.