jimmycv07 commited on
Commit
661d490
β€’
1 Parent(s): 2ebea36

uploaded videos from users

Browse files
utils/__pycache__/batch_inference.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/batch_inference.cpython-310.pyc and b/utils/__pycache__/batch_inference.cpython-310.pyc differ
 
utils/__pycache__/helpers.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/helpers.cpython-310.pyc and b/utils/__pycache__/helpers.cpython-310.pyc differ
 
utils/batch_inference.py CHANGED
@@ -177,7 +177,7 @@ class InferenceLoop:
177
  ### set context for saving results
178
  self.loop_ctx["file_stem"].append(os.path.splitext(os.path.basename(file_path))[0])
179
  # import ipdb; ipdb.set_trace()
180
- self.args.final_size = (lqs[0].shape[0] * self.args.upscale, lqs[0].shape[1] * self.args.upscale)
181
  for i in range(self.args.n_samples):
182
  self.loop_ctx["repeat_idx"] = i
183
  yield np.array(lqs)
 
177
  ### set context for saving results
178
  self.loop_ctx["file_stem"].append(os.path.splitext(os.path.basename(file_path))[0])
179
  # import ipdb; ipdb.set_trace()
180
+ self.args.final_size = (int(lqs[0].shape[0] * self.args.upscale), int(lqs[0].shape[1] * self.args.upscale))
181
  for i in range(self.args.n_samples):
182
  self.loop_ctx["repeat_idx"] = i
183
  yield np.array(lqs)