MCPcopy Index your code
hub / github.com/hzwer/ECCV2022-RIFE / make_inference

Function make_inference

inference_video.py:178–188  ·  view source on GitHub ↗
(I0, I1, n)

Source from the content-addressed store, hash-verified

176 read_buffer.put(None)
177
178def make_inference(I0, I1, n):
179 global model
180 middle = model.inference(I0, I1, args.scale)
181 if n == 1:
182 return [middle]
183 first_half = make_inference(I0, middle, n=n//2)
184 second_half = make_inference(middle, I1, n=n//2)
185 if n%2:
186 return [*first_half, middle, *second_half]
187 else:
188 return [*first_half, *second_half]
189
190def pad_image(img):
191 if(args.fp16):

Callers 1

inference_video.pyFile · 0.85

Calls 1

inferenceMethod · 0.45

Tested by

no test coverage detected