modelscope / modelscope/DiffSynth-Studio
Trying to create tensor with negative dimension
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.1k
- Forks
- 1.3k
- Avg merge
- 13h 12m
- Merged PRs (30d)
- 45
Description
Hi,
I'm trying to edit a video using Vace:
control_video = VideoData("a.mp4", height=1600, width=3840)
video = pipe(
prompt="背景是很普通的房子,人们的穿着也特别朴素",
negative_prompt="色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,倒着走",
vace_video=control_video,
seed=1, tiled=True,
height=1600, width=3840,
)
save_video(video, "output.mp4", fps=15, quality=5)
but facing the following error:
RuntimeError: Trying to create tensor with negative dimension -96000: [1, -96000, 5120]
How to fix this issue?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Vace entry point shown in the issue: the VideoData construction and pipe call using height 1600 and width 3840 with tiled=True. Trace where these dimensions produce the reported negative tensor dimension, then verify the behavior with the same invocation; done means the video can be generated without the RuntimeError.
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
- Needs clarification
- Newbie friendliness
- 35/100