Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update modeling_parler_tts.py #22

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions parler_tts/modeling_parler_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ def generate(
and generation_config.do_sample is True
)

# 8. prepare batched CFG externally (to enable coexistance with the unbatched CFG)
# 8. prepare batched CFG externally (to enable coexistence with the unbatched CFG)
if generation_config.guidance_scale is not None and generation_config.guidance_scale > 1:
logits_processor.append(ClassifierFreeGuidanceLogitsProcessor(generation_config.guidance_scale))
generation_config.guidance_scale = None
Expand Down Expand Up @@ -2552,7 +2552,7 @@ def generate(
and generation_config.do_sample is True
)

# 8. prepare batched CFG externally (to enable coexistance with the unbatched CFG)
# 8. prepare batched CFG externally (to enable coexistence with the unbatched CFG)
if generation_config.guidance_scale is not None and generation_config.guidance_scale > 1:
logits_processor.append(ClassifierFreeGuidanceLogitsProcessor(generation_config.guidance_scale))
generation_config.guidance_scale = None
Expand Down Expand Up @@ -2683,4 +2683,4 @@ def generate(
outputs.sequences = output_values
return outputs
else:
return output_values
return output_values