facebookresearch / audioseal

Localized watermarking for AI-generated speech audios, with SOTA on robustness and very fast detector
MIT License
466 stars 56 forks source link

loading fine-tuned weight #45

Closed DanMerry closed 2 months ago

DanMerry commented 4 months ago

Hello, I have a problem. After fine-tuning the generator and saving the model, I obtained a .pth file. When importing the model using generator = AudioSeal.load_generator('./checkpoints/generator_model_best_val_loss_20240727141622.pth').to(device), I encountered the following issues. How can I correctly load the weights? image

antoine-tran commented 3 months ago

@DanMerry Sorry for the delayed response. Could you tell me how you saved the model ?

Did you save it with the scripts checkpoints.py as shown in this PR ?

pierrefdz commented 2 months ago

Closing since no activity, feel free to reopen