TypeError: AutoencoderKLTemporalDecoder.decode() missing 1 required positional argument: 'num_frames'

#9
by Andyrasika - opened

While running on RTX 3090 Ti,30gb :```
TypeError: AutoencoderKLTemporalDecoder.decode() missing 1 required positional argument: 'num_frames'


Same here. This is the full stacktrace:

packages/gradio/blocks.py", line 1522, in process_api
result = await self.call_function(
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/blocks.py", line 1144, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/gradio/utils.py", line 673, in wrapper
response = f(*args, **kwargs)
File "/home/user/app/app.py", line 52, in sample
frames = pipe(image, decode_chunk_size=decoding_t, generator=generator, motion_bucket_id=motion_bucket_id, noise_aug_strength=0.1).frames[0]
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py", line 530, in call
frames = self.decode_latents(latents, num_frames, decode_chunk_size)
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py", line 225, in decode_latents
frame = self.vae.decode(latents[i : i + decode_chunk_size], **decode_kwargs).sample
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/site-packages/diffusers/utils/accelerate_utils.py", line 46, in wrapper
return method(self, *args, **kwargs)
TypeError: AutoencoderKLTemporalDecoder.decode() missing 1 required positional argument: 'num_frames'

Sign up or log in to comment