Skip to content

fresh install errors out on mac (m1) #145

Description

@byjlw

Get this error during generation.

Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 2047, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1594, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/gradio/utils.py", line 869, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/gradio_app/app.py", line 91, in generate
decoder_output = generate_decoder(
^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/gradio_app/app.py", line 47, in generate_decoder
decoder_output = decoder(
^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py", line 412, in call
predicted_latents = self.decoder(
^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/diffusers/models/unets/unet_stable_cascade.py", line 603, in forward
level_outputs = self._down_encode(x, timestep_ratio_embed, clip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/diffusers/models/unets/unet_stable_cascade.py", line 495, in _down_encode
x = block(x, clip)
^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/byjlw/Documents/source/StableCascade/.venv/lib/python3.11/site-packages/diffusers/models/unets/unet_stable_cascade.py", line 108, in forward
kv = torch.cat([norm_x.view(batch_size, channel, -1).transpose(1, 2), kv], dim=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 2 but got size 1 for tensor number 1 in the list.

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