mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-08 20:42:32 +08:00
whitespace
This commit is contained in:
parent
9a48acb211
commit
446b086ef3
@ -76,7 +76,7 @@ class IndexListContextWindow(ContextWindowABC):
|
||||
idx = tuple([slice(None)] * dim + [self.index_list])
|
||||
full[idx] += to_add
|
||||
return full
|
||||
|
||||
|
||||
def get_region_index(self, num_regions: int) -> int:
|
||||
region_idx = int(self.center_ratio * num_regions)
|
||||
return min(max(region_idx, 0), num_regions - 1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user