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

Function save_images_test

text2motion/utils/utils.py:77–84  ·  view source on GitHub ↗
(visuals, image_path, from_name, to_name)

Source from the content-addressed store, hash-verified

75
76
77def save_images_test(visuals, image_path, from_name, to_name):
78 if not os.path.exists(image_path):
79 os.makedirs(image_path)
80
81 for i, (label, img_numpy) in enumerate(visuals.items()):
82 img_name = "%s_%s_%s" % (from_name, to_name, label)
83 save_path = os.path.join(image_path, img_name)
84 save_image(img_numpy, save_path)
85
86
87def compose_and_save_img(img_list, save_dir, img_name, col=4, row=1, img_size=(256, 200)):

Callers

nothing calls this directly

Calls 1

save_imageFunction · 0.85

Tested by

no test coverage detected