Spaces:
Running
on
Zero
Running
on
Zero
Update trellis/utils/render_utils.py
Browse files
trellis/utils/render_utils.py
CHANGED
@@ -93,7 +93,7 @@ def render_video(sample, resolution=512, bg_color=(0, 0, 0), num_frames=300, r=2
|
|
93 |
yaws = torch.linspace(isometric_yaw_offset, 2 * 3.1415 + isometric_yaw_offset, num_frames)
|
94 |
pitch = [0.25] * num_frames # Fixed pitch for isometric view
|
95 |
yaws = yaws.tolist()
|
96 |
-
pitch
|
97 |
extrinsics, intrinsics = yaw_pitch_r_fov_to_extrinsics_intrinsics(yaws, pitch, r, fov)
|
98 |
return render_frames(sample, extrinsics, intrinsics, {'resolution': resolution, 'bg_color': bg_color}, **kwargs)
|
99 |
|
|
|
93 |
yaws = torch.linspace(isometric_yaw_offset, 2 * 3.1415 + isometric_yaw_offset, num_frames)
|
94 |
pitch = [0.25] * num_frames # Fixed pitch for isometric view
|
95 |
yaws = yaws.tolist()
|
96 |
+
# pitch is already a list, no .tolist() needed
|
97 |
extrinsics, intrinsics = yaw_pitch_r_fov_to_extrinsics_intrinsics(yaws, pitch, r, fov)
|
98 |
return render_frames(sample, extrinsics, intrinsics, {'resolution': resolution, 'bg_color': bg_color}, **kwargs)
|
99 |
|