ktrapeznikov commited on
Commit
70933bd
·
verified ·
1 Parent(s): dbb4a6c

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +4 -1
script.py CHANGED
@@ -35,6 +35,9 @@ def preprocess(file_like):
35
  if current_memory >= MAX_MEMORY:
36
  break
37
 
 
 
 
38
 
39
  class Model(torch.nn.Module):
40
  def __init__(self):
@@ -90,7 +93,7 @@ for el in tqdm.tqdm(dataset_remote):
90
  except Exception as e:
91
  print(e)
92
  print("failed", el["id"])
93
- raise e
94
  out.append(dict(id=el["id"]))
95
 
96
  # save the final result and that's it
 
35
  if current_memory >= MAX_MEMORY:
36
  break
37
 
38
+ video_tensor = torch.stack(frames)
39
+ return video_tensor
40
+
41
 
42
  class Model(torch.nn.Module):
43
  def __init__(self):
 
93
  except Exception as e:
94
  print(e)
95
  print("failed", el["id"])
96
+ # raise e
97
  out.append(dict(id=el["id"]))
98
 
99
  # save the final result and that's it