MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / write

Method write

detrsmpl/utils/ffmpeg_utils.py:75–81  ·  view source on GitHub ↗
(self, image_array: np.ndarray)

Source from the content-addressed store, hash-verified

73 self.len = 0
74
75 def write(self, image_array: np.ndarray):
76 if self.len <= self.num_frame:
77 try:
78 self.process.stdin.write(image_array.tobytes())
79 self.len += 1
80 except KeyboardInterrupt:
81 self.__del__()
82
83 def __del__(self):
84 self.process.stdin.close()

Callers 13

train_one_epochFunction · 0.80
mainFunction · 0.80
array_to_videoFunction · 0.80
array_to_imagesFunction · 0.80
print_eval_resultMethod · 0.80
print_eval_resultMethod · 0.80
print_eval_resultMethod · 0.80
print_eval_resultMethod · 0.80
__getitem__Method · 0.80
print_eval_resultMethod · 0.80
print_eval_resultMethod · 0.80
dumpMethod · 0.80

Calls 1

__del__Method · 0.95

Tested by

no test coverage detected