MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / buffered_writer

Function buffered_writer

src/diffusers/utils/export_utils.py:25–28  ·  view source on GitHub ↗
(raw_f)

Source from the content-addressed store, hash-verified

23
24@contextmanager
25def buffered_writer(raw_f):
26 f = io.BufferedWriter(raw_f)
27 yield f
28 f.flush()
29
30
31def export_to_gif(image: List[PIL.Image.Image], output_gif_path: str = None, fps: int = 10) -> str:

Callers 1

export_to_plyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected