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

Function _pixel2latent_indices

diffusers/examples/community/mixture_tiling.py:67–69  ·  view source on GitHub ↗

Translates coordinates in pixel space to coordinates in latent space

(px_row_init, px_row_end, px_col_init, px_col_end)

Source from the content-addressed store, hash-verified

65
66
67def _pixel2latent_indices(px_row_init, px_row_end, px_col_init, px_col_end):
68 """Translates coordinates in pixel space to coordinates in latent space"""
69 return px_row_init // 8, px_row_end // 8, px_col_init // 8, px_col_end // 8
70
71
72def _tile2latent_indices(tile_row, tile_col, tile_width, tile_height, tile_row_overlap, tile_col_overlap):

Callers 2

_tile2latent_indicesFunction · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected