MCPcopy Create free account
hub / github.com/ali-vilab/ACE_plus / postprocess

Method postprocess

inference/utils.py:125–132  ·  view source on GitHub ↗
(self, image, slice_w, out_w, out_h)

Source from the content-addressed store, hash-verified

123
124
125 def postprocess(self, image, slice_w, out_w, out_h):
126 w, h = image.size
127 if slice_w > 0:
128 output_image = image.crop((slice_w + 30, 0, w, h))
129 output_image = output_image.resize((out_w, out_h))
130 else:
131 output_image = image
132 return output_image

Callers 2

__call__Method · 0.80
__call__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected