ktrapeznikov commited on
Commit
ebe5c06
·
verified ·
1 Parent(s): 929b44f

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +2 -1
script.py CHANGED
@@ -64,10 +64,11 @@ for el in tqdm.tqdm(dataset_remote):
64
  # el["video"]["path"] containts the filename. This is just for reference and you cant actually load it
65
 
66
  # if you are using libraries that expect a file. You can use BytesIO object
 
 
67
  try:
68
  file_like = io.BytesIO(el["video"]["bytes"])
69
  tensor = preprocess(file_like)
70
- print("processing", el["id"])
71
 
72
  with torch.no_grad():
73
  # soft decision (such as log likelihood score)
 
64
  # el["video"]["path"] containts the filename. This is just for reference and you cant actually load it
65
 
66
  # if you are using libraries that expect a file. You can use BytesIO object
67
+ print("processing", el["id"])
68
+
69
  try:
70
  file_like = io.BytesIO(el["video"]["bytes"])
71
  tensor = preprocess(file_like)
 
72
 
73
  with torch.no_grad():
74
  # soft decision (such as log likelihood score)