Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
def
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
93
def
next_divisible(n, d):
Callers
1
_process_tile
Method · 0.85
Calls
1
crop
Method · 0.45
Tested by
no test coverage detected