Skip to content

Commit

Permalink
fix: exported model name should match generator class name
Browse files Browse the repository at this point in the history
  • Loading branch information
roedoejet committed Nov 25, 2024
1 parent 5a8a227 commit 87f8298
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hfgl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def export(
del vocoder_ckpt["callbacks"]
del vocoder_ckpt["optimizer_states"]
del vocoder_ckpt["lr_schedulers"]
if "model_info" in vocoder_ckpt:
vocoder_ckpt["model_info"]["name"] = "HiFiGANGenerator"
torch.save(vocoder_ckpt, output_path)
new_size = sizeof_fmt(os.path.getsize(output_path))
logger.info(
Expand Down

0 comments on commit 87f8298

Please sign in to comment.