MCPcopy
hub / github.com/richzhang/PerceptualSimilarity / save_image

Function save_image

util/util.py:23–25  ·  view source on GitHub ↗
(image_numpy, image_path, )

Source from the content-addressed store, hash-verified

21 return img
22
23def save_image(image_numpy, image_path, ):
24 image_pil = Image.fromarray(image_numpy)
25 image_pil.save(image_path)
26
27def mkdirs(paths):
28 if isinstance(paths, list) and not isinstance(paths, str):

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected