Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -159,7 +159,7 @@ class CreateDatasetProd():
|
|
159 |
# Scaling the video to ML model's desired format
|
160 |
img = self.image_processor(img, return_tensors='pt') #, input_data_format='channels_first')
|
161 |
|
162 |
-
pixel_values = img['pixel_values']
|
163 |
|
164 |
# Force garbage collection
|
165 |
del img
|
|
|
159 |
# Scaling the video to ML model's desired format
|
160 |
img = self.image_processor(img, return_tensors='pt') #, input_data_format='channels_first')
|
161 |
|
162 |
+
pixel_values = img['pixel_values'] #.squeeze(0)
|
163 |
|
164 |
# Force garbage collection
|
165 |
del img
|