Skip to content

TypeError: TiffWriter.write() got an unexpected keyword argument 'fps' #81

Description

@wfq1971

Processing chunk 3 / 3
t0 = 881 t1 = 941
0%| | 0/50 [00:00<?, ?it/s]Continue DDIM with i = 0, t = 981, latent = torch.Size([1, 4, 64, 64]), device = cuda:0, type = torch.float16
2%|▉ | 1/50 [00:00<00:09, 5.40it/s]latent t1 found at i=1, t = 961
8%|███▌ | 4/50 [00:00<00:08, 5.39it/s]latent t0 found at i = 4, t = 901
100%|███████████████████████████████████████████| 50/50 [00:09<00:00, 5.37it/s]
0%| | 0/50 [00:00<?, ?it/s]Continue DDIM with i = 2, t = 941, latent = torch.Size([3, 4, 64, 64]), device = cuda:0, type = torch.float16
96%|█████████████████████████████████████████▎ | 48/50 [00:24<00:01, 1.98it/s]
Traceback (most recent call last):
File "/root/miniforge3/lib/python3.10/site-packages/gradio/routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "/root/miniforge3/lib/python3.10/site-packages/gradio/blocks.py", line 1075, in process_api
result = await self.call_function(
File "/root/miniforge3/lib/python3.10/site-packages/gradio/blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "/root/miniforge3/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/miniforge3/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
File "/root/miniforge3/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
File "/workspace/Text2Video-Zero/model.py", line 504, in process_text2video
return utils.create_video(result, fps, path=path, watermark=gradio_utils.logo_name_to_path(watermark))
File "/workspace/Text2Video-Zero/utils.py", line 113, in create_video
imageio.mimsave(path, outputs, fps=fps)
File "/root/miniforge3/lib/python3.10/site-packages/imageio/v2.py", line 495, in mimwrite
return file.write(ims, is_batch=True, **kwargs)
File "/root/miniforge3/lib/python3.10/site-packages/imageio/plugins/tifffile_v3.py", line 224, in write
self._fh.write(image, **kwargs)
TypeError: TiffWriter.write() got an unexpected keyword argument 'fps'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions