arabago96 commited on
Commit
28bd3ea
·
1 Parent(s): 3089541

Fix: remove duplicate line

Browse files
Files changed (1) hide show
  1. trellis/utils/render_utils.py +0 -1
trellis/utils/render_utils.py CHANGED
@@ -74,7 +74,6 @@ def render_frames(sample, extrinsics, intrinsics, options={}, colors_overwrite=N
74
  if 'color' not in rets: rets['color'] = []
75
  if 'depth' not in rets: rets['depth'] = []
76
  rets['color'].append(np.clip(res['color'].detach().cpu().numpy().transpose(1, 2, 0) * 255, 0, 255).astype(np.uint8))
77
- rets['color'].append(np.clip(color_srgb * 255, 0, 255).astype(np.uint8))
78
  if 'percent_depth' in res:
79
  rets['depth'].append(res['percent_depth'].detach().cpu().numpy())
80
  elif 'depth' in res:
 
74
  if 'color' not in rets: rets['color'] = []
75
  if 'depth' not in rets: rets['depth'] = []
76
  rets['color'].append(np.clip(res['color'].detach().cpu().numpy().transpose(1, 2, 0) * 255, 0, 255).astype(np.uint8))
 
77
  if 'percent_depth' in res:
78
  rets['depth'].append(res['percent_depth'].detach().cpu().numpy())
79
  elif 'depth' in res: