MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / save_images

Function save_images

text2motion/utils/utils.py:67–74  ·  view source on GitHub ↗
(visuals, image_path)

Source from the content-addressed store, hash-verified

65
66
67def save_images(visuals, image_path):
68 if not os.path.exists(image_path):
69 os.makedirs(image_path)
70
71 for i, (label, img_numpy) in enumerate(visuals.items()):
72 img_name = '%d_%s.jpg' % (i, label)
73 save_path = os.path.join(image_path, img_name)
74 save_image(img_numpy, save_path)
75
76
77def save_images_test(visuals, image_path, from_name, to_name):

Callers

nothing calls this directly

Calls 1

save_imageFunction · 0.85

Tested by

no test coverage detected