MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / load_image

Method load_image

moss_soundeffect_v2/diffsynth/trainers/utils.py:121–124  ·  view source on GitHub ↗
(self, file_path)

Source from the content-addressed store, hash-verified

119
120
121 def load_image(self, file_path):
122 image = Image.open(file_path).convert("RGB")
123 image = self.crop_and_resize(image, *self.get_height_width(image))
124 return image
125
126
127 def load_data(self, file_path):

Callers 1

load_dataMethod · 0.95

Calls 2

crop_and_resizeMethod · 0.95
get_height_widthMethod · 0.95

Tested by

no test coverage detected