Skip to content

Fix a bug of pano when not doing CFG #3030

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

Merged
merged 4 commits into from
Apr 12, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,9 @@ def __call__(
latents_for_view = latents[:, :, h_start:h_end, w_start:w_end]

# expand the latents if we are doing classifier free guidance
latent_model_input = torch.cat([latents_for_view] * 2) if do_classifier_free_guidance else latents
latent_model_input = (
torch.cat([latents_for_view] * 2) if do_classifier_free_guidance else latents_for_view
)
latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)

# predict the noise residual
Expand Down