mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-14 12:16:41 +08:00
refactor(comfy/utils.py): remove unused variable
This commit is contained in:
parent
71b505f902
commit
3a3b5babf2
@ -965,7 +965,6 @@ def tiled_scale_multidim(samples, function, tile=(64, 64), overlap=8, upscale_am
|
|||||||
positions = [range(0, s.shape[d + 2] - overlap[d], tile[d] - overlap[d])
|
positions = [range(0, s.shape[d + 2] - overlap[d], tile[d] - overlap[d])
|
||||||
if s.shape[d + 2] > tile[d] else [0] for d in range(dims)]
|
if s.shape[d + 2] > tile[d] else [0] for d in range(dims)]
|
||||||
all_positions = list(itertools.product(*positions))
|
all_positions = list(itertools.product(*positions))
|
||||||
total_positions = len(all_positions)
|
|
||||||
|
|
||||||
if is_data_parallel:
|
if is_data_parallel:
|
||||||
target_tile_size = (tile[0], tile[1]) # H, W
|
target_tile_size = (tile[0], tile[1]) # H, W
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user