Spaces:
Paused
Paused
Update api/ltx/ltx_utils.py
Browse files- api/ltx/ltx_utils.py +2 -1
api/ltx/ltx_utils.py
CHANGED
|
@@ -170,4 +170,5 @@ def load_image_to_tensor_with_resize_and_crop(
|
|
| 170 |
frame_tensor = (frame_tensor * 2.0) - 1.0
|
| 171 |
|
| 172 |
# Create 5D tensor: (batch_size=1, channels=3, num_frames=1, height, width)
|
| 173 |
-
return frame_tensor.unsqueeze(0).unsqueeze(2)
|
|
|
|
|
|
| 170 |
frame_tensor = (frame_tensor * 2.0) - 1.0
|
| 171 |
|
| 172 |
# Create 5D tensor: (batch_size=1, channels=3, num_frames=1, height, width)
|
| 173 |
+
return frame_tensor.unsqueeze(0).unsqueeze(2)
|
| 174 |
+
|