ValueError: axes don't match array when rendering with TRELLIS in example_variant.py
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.7k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I encountered a ValueError: axes don't match array while running the example_variant.py.
Actual Behavior:
The script fails with the following error:
raceback (most recent call last):
File "D:\AI\TRELLIS\example_variant.py", line 38, in
render_frames(sample, extrinsics, intrinsics, resolution, resolution, 'bg_color', 'bg_color', **kwargs)
File "D:\AI\TRELLIS\trellis\utils\render_video\utils.py", line 200, in render_video
ret = render_frames(sample, extrinsics, intrinsics, resolution, resolution, 'bg_color', 'bg_color', **kwargs)
File "D:\AI\TRELLIS\trellis\utils\render_frames.py", line 79, in render_frames
ret['normal'] = np.clip(res['normal'], 1, data).cpu().numpy().transpose(1, 2, 0) * 255.0, 255).astype(np.uint8)
ValueError: axes don't match array
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
Reproduce the failure from example_variant.py and follow the traceback into trellis/utils/render_video/utils.py and trellis/utils/render_frames.py. Inspect the normal rendering result at the reported transpose call and determine why its axes do not match. Done means example_variant.py completes rendering without this ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100