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

Method work

netdissect/tool/allunitsample.py:169–170  ·  view source on GitHub ↗
(self, data, filename)

Source from the content-addressed store, hash-verified

167 # Saving images can be sped up by sending jpeg encoding and
168 # file-writing work to a pool.
169 def work(self, data, filename):
170 Image.fromarray(data).save(filename, optimize=True, quality=100)
171
172class MakeLinkWorker(WorkerBase):
173 # Creating symbolic links is a bit slow and can be done faster

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected