MCPcopy
hub / github.com/dbolya/yolact / get_next_frame

Function get_next_frame

eval.py:683–690  ·  view source on GitHub ↗
(vid)

Source from the content-addressed store, hash-verified

681 exit()
682
683 def get_next_frame(vid):
684 frames = []
685 for idx in range(args.video_multiframe):
686 frame = vid.read()[1]
687 if frame is None:
688 return frames
689 frames.append(frame)
690 return frames
691
692 def transform_frame(frames):
693 with torch.no_grad():

Callers 1

evalvideoFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected