[start_latent, image_encoder_last_hidden_state] = get_start_latent(input_image, height, width, vae, gpu, image_encoder, high_vram) c290fbf verified Fabrice-TIERCELIN commited on Jun 18
history_pixels = soft_append_bcthw(vae_decode(real_history_latents, vae).cpu(), history_pixels, overlapped_frames) dee75de verified Fabrice-TIERCELIN commited on Jun 17
real_history_latents = history_latents[:, :, :min(section_latent_frames, total_generated_latent_frames), :, :] ef48c15 verified Fabrice-TIERCELIN commited on Jun 17
indices = torch.arange(0, sum([1, 16, 2, 1, latent_window_size])).unsqueeze(0) fabb5a5 verified Fabrice-TIERCELIN commited on Jun 17
#if enable_preview or section_index == total_latent_sections - 1: a0a564a verified Fabrice-TIERCELIN commited on Jun 17
for section_index in range(total_latent_sections - 1, -1, -1): 5da4da3 verified Fabrice-TIERCELIN commited on Jun 17
#yield output_filename, gr.update(), gr.update(), gr.update(), gr.update(interactive=False), gr.update(interactive=True) 0ea7785 verified Fabrice-TIERCELIN commited on Jun 16
print("return [total_generated_latent_frames, history_latents, history_pixels]") 7b5ec05 verified Fabrice-TIERCELIN commited on Jun 16