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

Function compose_and_save_img

text2motion/utils/utils.py:87–94  ·  view source on GitHub ↗
(img_list, save_dir, img_name, col=4, row=1, img_size=(256, 200))

Source from the content-addressed store, hash-verified

85
86
87def compose_and_save_img(img_list, save_dir, img_name, col=4, row=1, img_size=(256, 200)):
88 # print(col, row)
89 compose_img = compose_image(img_list, col, row, img_size)
90 if not os.path.exists(save_dir):
91 os.makedirs(save_dir)
92 img_path = os.path.join(save_dir, img_name)
93 # print(img_path)
94 compose_img.save(img_path)
95
96
97def compose_image(img_list, col, row, img_size):

Callers

nothing calls this directly

Calls 2

compose_imageFunction · 0.85
saveMethod · 0.80

Tested by

no test coverage detected