modelscope / modelscope/DiffSynth-Studio

qwen-image-inference-error

Open
#1,154 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

I am experiencing a persistent error: 'RuntimeError: cannot reshape tensor of 0 elements into shape [1, 24, 0, -1, 2] because the unspecified dimension size -1 can be any value and is ambiguous'. I've tested both Qwen-Image-Layered.py and Qwen-Image-Edit.py from your example folder, and the same issue persists in both cases.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error in Qwen-Image-Layered.py and Qwen-Image-Edit.py from the example folder, capturing the complete traceback and execution context. Trace the reported reshape failure back to its source and compare both example paths. Done means both examples run without the zero-element reshape error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.