MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / unsqueeze_tile

Function unsqueeze_tile

diffusers/examples/community/tiled_upscaling.py:87–90  ·  view source on GitHub ↗
(tile, original_image_slice)

Source from the content-addressed store, hash-verified

85
86
87def unsqueeze_tile(tile, original_image_slice):
88 crop_rect = (original_image_slice * 4, 0, tile.size[0], tile.size[1])
89 tile = tile.crop(crop_rect)
90 return tile
91
92
93def next_divisible(n, d):

Callers 1

_process_tileMethod · 0.85

Calls 1

cropMethod · 0.45

Tested by

no test coverage detected