Skip to content

Commit

Permalink
fixed script for inference
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Oct 7, 2024
1 parent 93eedce commit b65eba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egs/libritts/CODEC/encodec/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ def main():
logging.info(f"Number of parameters in decoder: {num_param_d}")
num_param_q = sum([p.numel() for p in quantizer.parameters()])
logging.info(f"Number of parameters in quantizer: {num_param_q}")
num_param_ds = sum([p.numel() for p in multi_scale_discriminator.parameters()])
num_param_ds = sum([p.numel() for p in multi_scale_discriminator.parameters()]) if multi_scale_discriminator is not None else 0
logging.info(f"Number of parameters in multi_scale_discriminator: {num_param_ds}")
num_param_dp = sum([p.numel() for p in multi_period_discriminator.parameters()])
num_param_dp = sum([p.numel() for p in multi_period_discriminator.parameters()]) if multi_period_discriminator is not None else 0
logging.info(f"Number of parameters in multi_period_discriminator: {num_param_dp}")
num_param_dstft = sum(
[p.numel() for p in multi_scale_stft_discriminator.parameters()]
Expand Down

0 comments on commit b65eba2

Please sign in to comment.