Spaces:
Running on Zero
Running on Zero
Fix: remove duplicate line
Browse files
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:
|