microsoft / microsoft/TRELLIS

ValueError: axes don't match array when rendering with TRELLIS in example_variant.py

Open
#280 0 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.