MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / work

Method work

netdissect/aceoptimize.py:165–166  ·  view source on GitHub ↗
(self, data, filename)

Source from the content-addressed store, hash-verified

163
164class SaveImageWorker(WorkerBase):
165 def work(self, data, filename):
166 Image.fromarray(data).save(filename, optimize=True, quality=80)
167
168def plot_heatmap(output_filename, data, size=256):
169 fig = Figure(figsize=(1, 1), dpi=size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected