Qwen Edit Nunchaku fails with: view size is not compatible
Using Qwen Edit 2509 Nunchaku and having in my image something selected and "Selection bounds" active I get this error message:
...
File "/home/stablellama/devel/StableDiffusion/ComfyUI/venv/lib/python3.12/site-packages/nunchaku/models/linear.py", line 182, in forward
x = x.view(batch_size * seq_len, channels)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
When I use "Entire Image" instead it is working. Or when I use "Selection bounds" and the non-Nunchaku version it's also working.
All of that is with batch size = 1 and strength = 100% and the 4-step lightning version.
That's working for me generally. It might be related to specific canvas and selection size you are using.
If you provide the .kra with the selection active (in the state that produces the error) I can take a look. The workflow dump would also be helpful.
@StableLlama you didn't mention which version of the plugin you're using.
This is with 1.40.0
I'll update to 1.41.1 to see whether there's a difference or not
That error hasn't come up for me since 1.41.1.