Update app.py
Browse files290 unmodified lines29129229329429529629729 unmodified lines327328329330331332333459 unmodified lines793794795796797798799290 unmodified lines)torch.cuda.synchronize()cleanup_memory()# ββ Upscaling ββupscaled_video_latent = upsample_video(29 unmodified lines)torch.cuda.synchronize()cleanup_memory()# ββ Decode both video and audio ββdecoded_video = vae_decode_video(459 unmodified linestemp_last_path = Path(last_image)images.append(ImageConditioningInput(path=str(temp_last_path), frame_idx=num_frames - 1, strength=1.0))tiling_config = TilingConfig.default()video_chunks_number = get_video_chunks_number(num_frames, tiling_config)video_guider_params = MultiModalGuiderParams(290 unmodified lines29129229329429529629729 unmodified lines327328329330331332333459 unmodified lines793794795796797798799800801802290 unmodified lines)torch.cuda.synchronize()# cleanup_memory()# ββ Upscaling ββupscaled_video_latent = upsample_video(29 unmodified lines)torch.cuda.synchronize()# cleanup_memory()# ββ Decode both video and audio ββdecoded_video = vae_decode_video(459 unmodified linestemp_last_path = Path(last_image)images.append(ImageConditioningInput(path=str(temp_last_path), frame_idx=num_frames - 1, strength=1.0))tiling_config = TilingConfig(spatial_config=None, # Disable spatial tiling β decode full HΓW at oncetemporal_config=None, # Disable temporal tiling β decode all frames at once)video_chunks_number = get_video_chunks_number(num_frames, tiling_config)video_guider_params = MultiModalGuiderParams(
app.py+6-3