Skip to content

Conversation

@PetrochukM
Copy link
Contributor

Conditional synthesis does not respect the lengths parameter, rather it overrides it. This patch fixes that.

Conditional synthesis does not respect the lengths parameter, rather it overrides it. This patch fixes that.
@PetrochukM PetrochukM changed the title Lengths Synthesis Lengths May 17, 2018
@r9y9
Copy link
Owner

r9y9 commented May 19, 2018

https://github.com/r9y9/wavenet_vocoder#4-synthesize-from-a-checkpoint

--length=: (Un-conditional WaveNet only) Number of time steps to generate.

Well, that was intentional, though. Do you happen to need --length option for conditional synthesis? I'm ok with the change but I would like to make it defaut to synthesize all frames if confitional feature is given.

@PetrochukM
Copy link
Contributor Author

Yeah. I did read the description.

Given that it takes 20 - 40 minutes at a time to synthesize, I needed the length option just to get a sample from a checkpoint quickly.

Copy link
Owner

@r9y9 r9y9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you address my review and also fix README as well? then LGTM.

options:
--hparams=<parmas> Hyper parameters [default: ].
--preset=<json> Path of preset parameters (json).
--length=<T> Steps to generate [default: 32000].
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we drop the default parameter then I don' think

length = int(args["--length"])

will work, since None cannot be converted to int.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants